Skip to content

Commit

Permalink
Explicitly store fixture in setupVPCWithSubnetWithInstance (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai authored Nov 6, 2023
1 parent 7baa4f1 commit a9ac19b
Show file tree
Hide file tree
Showing 7 changed files with 847 additions and 161 deletions.
160 changes: 137 additions & 23 deletions test/integration/fixtures/TestInstance_ConfigInterface_Update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"region":"es-mad","type":"g6-nanode-1","label":"go-test-ins-wo-disk-p67uc1u33z0e","booted":false}'
body: '{"region":"es-mad","type":"g6-nanode-1","label":"go-test-ins-wo-disk-94oh76dtq5q9","booted":false}'
form: {}
headers:
Accept:
Expand All @@ -250,9 +250,9 @@ interactions:
url: https://api.linode.com/v4beta/linode/instances
method: POST
response:
body: '{"id": 51687525, "label": "go-test-ins-wo-disk-p67uc1u33z0e", "group":
body: '{"id": 51696212, "label": "go-test-ins-wo-disk-94oh76dtq5q9", "group":
"", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
"type": "g6-nanode-1", "ipv4": ["172.233.110.106"], "ipv6": "1234::5678/128",
"type": "g6-nanode-1", "ipv4": ["172.233.111.128"], "ipv6": "1234::5678/128",
"image": null, "region": "es-mad", "specs": {"disk": 25600, "memory": 1024,
"vcpus": 1, "gpus": 0, "transfer": 1000}, "alerts": {"cpu": 90, "network_in":
10, "network_out": 10, "transfer_quota": 80, "io": 10000}, "backups": {"enabled":
Expand Down Expand Up @@ -303,7 +303,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"label":"go-test-conf-z82rm8eb58k9","devices":{},"interfaces":null}'
body: '{"label":"go-test-conf-ahx01xo7709c","devices":{},"interfaces":null}'
form: {}
headers:
Accept:
Expand All @@ -312,10 +312,10 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/51687525/configs
url: https://api.linode.com/v4beta/linode/instances/51696212/configs
method: POST
response:
body: '{"id": 54672869, "label": "go-test-conf-z82rm8eb58k9", "helpers": {"updatedb_disabled":
body: '{"id": 54681856, "label": "go-test-conf-ahx01xo7709c", "helpers": {"updatedb_disabled":
true, "distro": true, "modules_dep": true, "network": true, "devtmpfs_automount":
true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created":
"2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda",
Expand Down Expand Up @@ -366,7 +366,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"label":"go-test-vpc-1699289566596805000","region":"es-mad"}'
body: '{"label":"go-test-vpc-1699301187871294000","region":"es-mad"}'
form: {}
headers:
Accept:
Expand All @@ -378,7 +378,7 @@ interactions:
url: https://api.linode.com/v4beta/vpcs
method: POST
response:
body: '{"id": 7033, "label": "go-test-vpc-1699289566596805000", "description":
body: '{"id": 7379, "label": "go-test-vpc-1699301187871294000", "description":
"", "region": "es-mad", "subnets": [], "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05"}'
headers:
Expand Down Expand Up @@ -425,7 +425,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"label":"linodego-vpc-test-1699289566861781000","ipv4":"192.168.0.0/25"}'
body: '{"label":"linodego-vpc-test-1699301188013974000","ipv4":"192.168.0.0/25"}'
form: {}
headers:
Accept:
Expand All @@ -434,10 +434,10 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/vpcs/7033/subnets
url: https://api.linode.com/v4beta/vpcs/7379/subnets
method: POST
response:
body: '{"id": 7954, "label": "linodego-vpc-test-1699289566861781000", "ipv4":
body: '{"id": 8278, "label": "linodego-vpc-test-1699301188013974000", "ipv4":
"192.168.0.0/25", "linodes": [], "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05"}'
headers:
Expand Down Expand Up @@ -484,7 +484,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"purpose":"vpc","subnet_id":7954}'
body: '{"purpose":"vpc","subnet_id":8278}'
form: {}
headers:
Accept:
Expand All @@ -493,11 +493,11 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/51687525/configs/54672869/interfaces
url: https://api.linode.com/v4beta/linode/instances/51696212/configs/54681856/interfaces
method: POST
response:
body: '{"id": 797897, "purpose": "vpc", "primary": false, "active": false, "ipam_address":
null, "label": null, "vpc_id": 7033, "subnet_id": 7954, "ipv4": {"vpc": "192.168.0.2",
body: '{"id": 799678, "purpose": "vpc", "primary": false, "active": false, "ipam_address":
null, "label": null, "vpc_id": 7379, "subnet_id": 8278, "ipv4": {"vpc": "192.168.0.2",
"nat_1_1": ""}}'
headers:
Access-Control-Allow-Credentials:
Expand Down Expand Up @@ -552,11 +552,11 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/51687525/configs/54672869/interfaces/797897
url: https://api.linode.com/v4beta/linode/instances/51696212/configs/54681856/interfaces/799678
method: PUT
response:
body: '{"id": 797897, "purpose": "vpc", "primary": true, "active": false, "ipam_address":
null, "label": null, "vpc_id": 7033, "subnet_id": 7954, "ipv4": {"vpc": "192.168.0.2",
body: '{"id": 799678, "purpose": "vpc", "primary": true, "active": false, "ipam_address":
null, "label": null, "vpc_id": 7379, "subnet_id": 8278, "ipv4": {"vpc": "192.168.0.2",
"nat_1_1": ""}}'
headers:
Access-Control-Allow-Credentials:
Expand Down Expand Up @@ -611,12 +611,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/51687525/configs/54672869/interfaces/797897
url: https://api.linode.com/v4beta/linode/instances/51696212/configs/54681856/interfaces/799678
method: PUT
response:
body: '{"id": 797897, "purpose": "vpc", "primary": true, "active": false, "ipam_address":
null, "label": null, "vpc_id": 7033, "subnet_id": 7954, "ipv4": {"vpc": "192.168.0.10",
"nat_1_1": "172.233.110.106"}}'
body: '{"id": 799678, "purpose": "vpc", "primary": true, "active": false, "ipam_address":
null, "label": null, "vpc_id": 7379, "subnet_id": 8278, "ipv4": {"vpc": "192.168.0.10",
"nat_1_1": "172.233.111.128"}}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -670,7 +670,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/51687525
url: https://api.linode.com/v4beta/linode/instances/51696212
method: DELETE
response:
body: '{}'
Expand Down Expand Up @@ -717,3 +717,117 @@ interactions:
status: 200 OK
code: 200
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/vpcs/7379/subnets/8278
method: DELETE
response:
body: '{}'
headers:
Access-Control-Allow-Credentials:
- "true"
Access-Control-Allow-Headers:
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
Access-Control-Allow-Methods:
- HEAD, GET, OPTIONS, POST, PUT, DELETE
Access-Control-Allow-Origin:
- '*'
Access-Control-Expose-Headers:
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
Cache-Control:
- private, max-age=60, s-maxage=60
Connection:
- keep-alive
Content-Length:
- "2"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization, X-Filter
X-Accepted-Oauth-Scopes:
- vpc:read_write
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
- DENY
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/vpcs/7379
method: DELETE
response:
body: '{}'
headers:
Access-Control-Allow-Credentials:
- "true"
Access-Control-Allow-Headers:
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
Access-Control-Allow-Methods:
- HEAD, GET, OPTIONS, POST, PUT, DELETE
Access-Control-Allow-Origin:
- '*'
Access-Control-Expose-Headers:
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
Cache-Control:
- private, max-age=60, s-maxage=60
Connection:
- keep-alive
Content-Length:
- "2"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization, X-Filter
X-Accepted-Oauth-Scopes:
- vpc:read_write
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
- DENY
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
duration: ""
Loading

0 comments on commit a9ac19b

Please sign in to comment.