Skip to content

Commit

Permalink
VPC Test Create Helper Function Update (#426)
Browse files Browse the repository at this point in the history
* createVPCWithSubnet now creates subnet within VPC creation API call

* Update fixtures
  • Loading branch information
zliang-akamai authored Nov 28, 2023
1 parent b6e7b85 commit 24720a6
Show file tree
Hide file tree
Showing 19 changed files with 1,228 additions and 2,052 deletions.
242 changes: 64 additions & 178 deletions test/integration/fixtures/TestInstance_ConfigInterface_Update.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

245 changes: 67 additions & 178 deletions test/integration/fixtures/TestInstance_ConfigInterfaces_List.yaml

Large diffs are not rendered by default.

254 changes: 71 additions & 183 deletions test/integration/fixtures/TestInstance_ConfigInterfaces_Reorder.yaml

Large diffs are not rendered by default.

269 changes: 79 additions & 190 deletions test/integration/fixtures/TestInstance_ConfigInterfaces_Update.yaml

Large diffs are not rendered by default.

266 changes: 203 additions & 63 deletions test/integration/fixtures/TestInstance_Config_Update.yaml

Large diffs are not rendered by default.

264 changes: 202 additions & 62 deletions test/integration/fixtures/TestInstance_Configs_List.yaml

Large diffs are not rendered by default.

74 changes: 37 additions & 37 deletions test/integration/fixtures/TestVPC_CreateGet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,42 +89,42 @@ interactions:
1234::5678, 1234::5678, 1234::5678,
1234::5678"}}, {"id": "es-mad", "label": "Madrid, ES", "country":
"es", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Premium Plans"],
"status": "ok", "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21,
172.233.111.25, 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16,
172.233.111.18, 172.233.111.9", "ipv6": "1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678"}}, {"id": "in-maa",
"label": "Chennai, IN", "country": "in", "capabilities": ["Linodes", "NodeBalancers",
"Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans",
"Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.96.17,
172.232.96.26, 172.232.96.19, 172.232.96.20, 172.232.96.25, 172.232.96.21, 172.232.96.18,
172.232.96.22, 172.232.96.23, 172.232.96.24", "ipv6": "1234::5678,
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium
Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17,
172.233.111.21, 172.233.111.25, 172.233.111.19, 172.233.111.12, 172.233.111.26,
172.233.111.16, 172.233.111.18, 172.233.111.9", "ipv6": "1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678"}},
{"id": "jp-osa", "label": "Osaka, JP", "country": "jp", "capabilities": ["Linodes",
{"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": ["Linodes",
"NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall",
"Vlans", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4":
"172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46,
172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38",
"Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers":
{"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, 172.232.96.25,
172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24",
"ipv6": "1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678"}}, {"id": "it-mil", "label": "Milan, IT", "country":
"it", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Metadata", "Premium Plans"],
"status": "ok", "resolvers": {"ipv4": "172.232.192.19, 172.232.192.18, 172.232.192.16,
172.232.192.20, 172.232.192.24, 172.232.192.21, 172.232.192.22, 172.232.192.17,
172.232.192.15, 172.232.192.23", "ipv6": "1234::5678, 1234::5678,
1234::5678"}}, {"id": "jp-osa", "label": "Osaka, JP", "country":
"jp", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium
Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.64.44, 172.233.64.43,
172.233.64.37, 172.233.64.40, 172.233.64.46, 172.233.64.41, 172.233.64.39, 172.233.64.42,
172.233.64.45, 172.233.64.38", "ipv6": "1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678"}}, {"id": "us-mia",
"label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "NodeBalancers",
1234::5678, 1234::5678"}}, {"id": "it-mil",
"label": "Milan, IT", "country": "it", "capabilities": ["Linodes", "NodeBalancers",
"Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans",
"VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4":
"172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32,
"Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.192.19,
172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, 172.232.192.21,
172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", "ipv6": "1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678"}},
{"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes",
"NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall",
"Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers":
{"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32,
172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31",
"ipv6": "1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
Expand Down Expand Up @@ -231,14 +231,14 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
- "400"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
duration: ""
- request:
body: '{"label":"go-test-vpc-1698762176794940000","region":"es-mad"}'
body: '{"label":"go-test-vpc-1700036168866478000","region":"es-mad"}'
form: {}
headers:
Accept:
Expand All @@ -250,7 +250,7 @@ interactions:
url: https://api.linode.com/v4beta/vpcs
method: POST
response:
body: '{"id": 6055, "label": "go-test-vpc-1698762176794940000", "description":
body: '{"id": 10252, "label": "go-test-vpc-1700036168866478000", "description":
"", "region": "es-mad", "subnets": [], "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05"}'
headers:
Expand All @@ -269,7 +269,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "178"
- "179"
Content-Security-Policy:
- default-src 'none'
Content-Type:
Expand All @@ -290,7 +290,7 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
- "400"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
Expand All @@ -306,10 +306,10 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/vpcs/6055
url: https://api.linode.com/v4beta/vpcs/10252
method: GET
response:
body: '{"id": 6055, "label": "go-test-vpc-1698762176794940000", "description":
body: '{"id": 10252, "label": "go-test-vpc-1700036168866478000", "description":
"", "region": "es-mad", "subnets": [], "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05"}'
headers:
Expand All @@ -329,7 +329,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "178"
- "179"
Content-Security-Policy:
- default-src 'none'
Content-Type:
Expand All @@ -351,7 +351,7 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
- "400"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
Expand All @@ -367,7 +367,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/vpcs/6055
url: https://api.linode.com/v4beta/vpcs/10252
method: DELETE
response:
body: '{}'
Expand Down Expand Up @@ -408,7 +408,7 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
- "400"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
Expand Down
58 changes: 29 additions & 29 deletions test/integration/fixtures/TestVPC_Create_Invalid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,42 +89,42 @@ interactions:
1234::5678, 1234::5678, 1234::5678,
1234::5678"}}, {"id": "es-mad", "label": "Madrid, ES", "country":
"es", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Premium Plans"],
"status": "ok", "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17, 172.233.111.21,
172.233.111.25, 172.233.111.19, 172.233.111.12, 172.233.111.26, 172.233.111.16,
172.233.111.18, 172.233.111.9", "ipv6": "1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678"}}, {"id": "in-maa",
"label": "Chennai, IN", "country": "in", "capabilities": ["Linodes", "NodeBalancers",
"Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans",
"Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.96.17,
172.232.96.26, 172.232.96.19, 172.232.96.20, 172.232.96.25, 172.232.96.21, 172.232.96.18,
172.232.96.22, 172.232.96.23, 172.232.96.24", "ipv6": "1234::5678,
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium
Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.111.6, 172.233.111.17,
172.233.111.21, 172.233.111.25, 172.233.111.19, 172.233.111.12, 172.233.111.26,
172.233.111.16, 172.233.111.18, 172.233.111.9", "ipv6": "1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678"}},
{"id": "jp-osa", "label": "Osaka, JP", "country": "jp", "capabilities": ["Linodes",
{"id": "in-maa", "label": "Chennai, IN", "country": "in", "capabilities": ["Linodes",
"NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall",
"Vlans", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4":
"172.233.64.44, 172.233.64.43, 172.233.64.37, 172.233.64.40, 172.233.64.46,
172.233.64.41, 172.233.64.39, 172.233.64.42, 172.233.64.45, 172.233.64.38",
"Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers":
{"ipv4": "172.232.96.17, 172.232.96.26, 172.232.96.19, 172.232.96.20, 172.232.96.25,
172.232.96.21, 172.232.96.18, 172.232.96.22, 172.232.96.23, 172.232.96.24",
"ipv6": "1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678"}}, {"id": "it-mil", "label": "Milan, IT", "country":
"it", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Metadata", "Premium Plans"],
"status": "ok", "resolvers": {"ipv4": "172.232.192.19, 172.232.192.18, 172.232.192.16,
172.232.192.20, 172.232.192.24, 172.232.192.21, 172.232.192.22, 172.232.192.17,
172.232.192.15, 172.232.192.23", "ipv6": "1234::5678, 1234::5678,
1234::5678"}}, {"id": "jp-osa", "label": "Osaka, JP", "country":
"jp", "capabilities": ["Linodes", "NodeBalancers", "Block Storage", "Object
Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium
Plans"], "status": "ok", "resolvers": {"ipv4": "172.233.64.44, 172.233.64.43,
172.233.64.37, 172.233.64.40, 172.233.64.46, 172.233.64.41, 172.233.64.39, 172.233.64.42,
172.233.64.45, 172.233.64.38", "ipv6": "1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678"}}, {"id": "us-mia",
"label": "Miami, FL", "country": "us", "capabilities": ["Linodes", "NodeBalancers",
1234::5678, 1234::5678"}}, {"id": "it-mil",
"label": "Milan, IT", "country": "it", "capabilities": ["Linodes", "NodeBalancers",
"Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans",
"VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4":
"172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32,
"Metadata", "Premium Plans"], "status": "ok", "resolvers": {"ipv4": "172.232.192.19,
172.232.192.18, 172.232.192.16, 172.232.192.20, 172.232.192.24, 172.232.192.21,
172.232.192.22, 172.232.192.17, 172.232.192.15, 172.232.192.23", "ipv6": "1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678"}},
{"id": "us-mia", "label": "Miami, FL", "country": "us", "capabilities": ["Linodes",
"NodeBalancers", "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall",
"Vlans", "VPCs", "Metadata", "Premium Plans"], "status": "ok", "resolvers":
{"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32,
172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31",
"ipv6": "1234::5678, 1234::5678, 1234::5678,
1234::5678, 1234::5678, 1234::5678,
Expand Down Expand Up @@ -231,14 +231,14 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
- "400"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
duration: ""
- request:
body: '{"label":"gotest_vpc_invalid_label1699291691000431000","region":"es-mad"}'
body: '{"label":"gotest_vpc_invalid_label1700036170984729000","region":"es-mad"}'
form: {}
headers:
Accept:
Expand Down Expand Up @@ -274,7 +274,7 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
- "400"
status: 400 BAD REQUEST
code: 400
duration: ""
Loading

0 comments on commit 24720a6

Please sign in to comment.