Skip to content

Commit

Permalink
point cross-repo workflow at TF resty removal branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Sep 30, 2024
1 parent 5d250dc commit 554b8df
Show file tree
Hide file tree
Showing 22 changed files with 2,136 additions and 881 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-cross-repo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
- name: checkout terraform repo
uses: actions/checkout@v4
with:
repository: linode/terraform-provider-linode
repository: lgarber-akamai/terraform-provider-linode
ref: 'ref/changes-for-resty-removal'
fetch-depth: 0
submodules: 'recursive'

Expand Down
4 changes: 2 additions & 2 deletions test/integration/fixtures/TestIPv6Pool_Get.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ interactions:
- application/json
Content-Type:
- application/json
url: https://api.linode.com/v4beta/networking/ipv6/pools/2600:3c00::%2F32
url: https://api.linode.com/v4beta/networking/ipv6/pools/1234::5678%2F32
method: GET
response:
body: '{"range": "2600:3c00::/32", "region": "us-east", "route_target": "2600:3c00::/32"}'
body: '{"range": "1234::5678/32", "region": "us-east", "route_target": "1234::5678/32"}'
headers:
Content-Type:
- application/json
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fixtures/TestIPv6Pool_List.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
url: https://api.linode.com/v4beta/networking/ipv6/pools?page=1
method: GET
response:
body: '{"data": [{"range": "2600:3c00::/32", "region": "us-east", "route_target": "2600:3c00::/32"}], "page": 1, "pages": 1, "results": 1}'
body: '{"data": [{"range": "1234::5678/32", "region": "us-east", "route_target": "1234::5678/32"}], "page": 1, "pages": 1, "results": 1}'
headers:
Content-Type:
- application/json
Expand Down
72 changes: 36 additions & 36 deletions test/integration/fixtures/TestInstance_AddReservedIPToInstance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 1
interactions:
- request:
body: '{"region":"us-east","type":"g6-nanode-1","label":"test-instance-for-ip-reservation","root_pass":"5vJy-=\\NV\u003c1w`6!2Yf~6.2zN4L-zz5w\\2nWk0lH6Zq/}BN8[3Ou#37shHE-C3|rV"}'
body: '{"region":"us-east","type":"g6-nanode-1","label":"test-instance-for-ip-reservation","root_pass":"YO46''!\u003c*b15F6o)Ix(god3lF8L5\\u9#K02DI]c9O)Jzl\u00262PB\\yt3:5e1o?RzY\\T|"}'
form: {}
headers:
Accept:
Expand All @@ -14,15 +14,15 @@ interactions:
url: https://api.linode.com/v4beta/linode/instances
method: POST
response:
body: '{"id": 63837282, "label": "test-instance-for-ip-reservation", "group":
body: '{"id": 64414065, "label": "test-instance-for-ip-reservation", "group":
"", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
"type": "g6-nanode-1", "ipv4": ["45.79.160.146"], "ipv6": "2600:3c03::f03c:95ff:fe46:25ac/128",
"type": "g6-nanode-1", "ipv4": ["45.33.87.38"], "ipv6": "1234::5678/128",
"image": null, "region": "us-east", "site_type": "core", "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": false, "available": false, "schedule": {"day": null,
"window": null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled":
true, "tags": [], "host_uuid": "aab21dc7e975cd72af77bb1dee30b501acd7d3b9", "has_user_data":
"backups": {"enabled": true, "available": false, "schedule": {"day": null, "window":
null}, "last_successful": null}, "hypervisor": "kvm", "watchdog_enabled": true,
"tags": [], "host_uuid": "e45fac5bf69dfc0a587fc49f41a65b0a0a0c6e93", "has_user_data":
false, "placement_group": null, "disk_encryption": "disabled", "lke_cluster_id":
null, "capabilities": []}'
headers:
Expand All @@ -43,13 +43,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "858"
- "855"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Thu, 12 Sep 2024 19:53:07 GMT
- Wed, 25 Sep 2024 15:27:40 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down Expand Up @@ -85,8 +85,8 @@ interactions:
url: https://api.linode.com/v4beta/networking/reserved/ips
method: POST
response:
body: '{"address": "45.79.150.200", "gateway": "45.79.150.1", "subnet_mask": "255.255.255.0",
"prefix": 24, "type": "ipv4", "public": true, "rdns": "45-79-150-200.ip.linodeusercontent.com",
body: '{"address": "172.104.17.197", "gateway": "172.104.17.1", "subnet_mask":
"255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-104-17-197.ip.linodeusercontent.com",
"linode_id": null, "region": "us-east", "vpc_nat_1_1": null, "reserved": true}'
headers:
Access-Control-Allow-Credentials:
Expand All @@ -106,13 +106,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "261"
- "264"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Thu, 12 Sep 2024 19:53:08 GMT
- Wed, 25 Sep 2024 15:27:40 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand All @@ -136,7 +136,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"type":"ipv4","public":true,"address":"45.79.150.200"}'
body: '{"type":"ipv4","public":true,"address":"172.104.17.197"}'
form: {}
headers:
Accept:
Expand All @@ -145,12 +145,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/63837282/ips
url: https://api.linode.com/v4beta/linode/instances/64414065/ips
method: POST
response:
body: '{"address": "45.79.150.200", "gateway": "45.79.150.1", "subnet_mask": "255.255.255.0",
"prefix": 24, "type": "ipv4", "public": true, "rdns": "45-79-150-200.ip.linodeusercontent.com",
"linode_id": 63837282, "region": "us-east", "vpc_nat_1_1": null, "reserved":
body: '{"address": "172.104.17.197", "gateway": "172.104.17.1", "subnet_mask":
"255.255.255.0", "prefix": 24, "type": "ipv4", "public": true, "rdns": "172-104-17-197.ip.linodeusercontent.com",
"linode_id": 64414065, "region": "us-east", "vpc_nat_1_1": null, "reserved":
true}'
headers:
Access-Control-Allow-Credentials:
Expand All @@ -170,13 +170,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "265"
- "268"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Thu, 12 Sep 2024 19:53:08 GMT
- Wed, 25 Sep 2024 15:27:41 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down Expand Up @@ -209,22 +209,22 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/63837282/ips
url: https://api.linode.com/v4beta/linode/instances/64414065/ips
method: GET
response:
body: '{"ipv4": {"public": [{"address": "45.79.150.200", "gateway": "45.79.150.1",
body: '{"ipv4": {"public": [{"address": "45.33.87.38", "gateway": "45.33.87.1",
"subnet_mask": "255.255.255.0", "prefix": 24, "type": "ipv4", "public": true,
"rdns": "45-79-150-200.ip.linodeusercontent.com", "linode_id": 63837282, "region":
"us-east", "vpc_nat_1_1": null, "reserved": true}, {"address": "45.79.160.146",
"gateway": "45.79.160.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type":
"ipv4", "public": true, "rdns": "45-79-160-146.ip.linodeusercontent.com", "linode_id":
63837282, "region": "us-east", "vpc_nat_1_1": null, "reserved": false}], "private":
"rdns": "45-33-87-38.ip.linodeusercontent.com", "linode_id": 64414065, "region":
"us-east", "vpc_nat_1_1": null, "reserved": false}, {"address": "172.104.17.197",
"gateway": "172.104.17.1", "subnet_mask": "255.255.255.0", "prefix": 24, "type":
"ipv4", "public": true, "rdns": "172-104-17-197.ip.linodeusercontent.com", "linode_id":
64414065, "region": "us-east", "vpc_nat_1_1": null, "reserved": true}], "private":
[], "shared": [], "reserved": [], "vpc": []}, "ipv6": {"slaac": {"address":
"2600:3c03::f03c:95ff:fe46:25ac", "gateway": "fe80::1", "subnet_mask": "ffff:ffff:ffff:ffff::",
"prefix": 64, "type": "ipv6", "rdns": null, "linode_id": 63837282, "region":
"us-east", "public": true}, "link_local": {"address": "fe80::f03c:95ff:fe46:25ac",
"gateway": "fe80::1", "subnet_mask": "ffff:ffff:ffff:ffff::", "prefix": 64,
"type": "ipv6", "rdns": null, "linode_id": 63837282, "region": "us-east", "public":
"1234::5678", "gateway": "1234::5678", "subnet_mask": "1234::5678",
"prefix": 64, "type": "ipv6", "rdns": null, "linode_id": 64414065, "region":
"us-east", "public": true}, "link_local": {"address": "1234::5678",
"gateway": "1234::5678", "subnet_mask": "1234::5678", "prefix": 64,
"type": "ipv6", "rdns": null, "linode_id": 64414065, "region": "us-east", "public":
false}, "global": []}}'
headers:
Access-Control-Allow-Credentials:
Expand All @@ -248,7 +248,7 @@ interactions:
Content-Type:
- application/json
Expires:
- Thu, 12 Sep 2024 19:53:08 GMT
- Wed, 25 Sep 2024 15:27:41 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down Expand Up @@ -283,7 +283,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/networking/reserved/ips/45.79.150.200
url: https://api.linode.com/v4beta/networking/reserved/ips/172.104.17.197
method: DELETE
response:
body: '{}'
Expand Down Expand Up @@ -311,7 +311,7 @@ interactions:
Content-Type:
- application/json
Expires:
- Thu, 12 Sep 2024 19:53:08 GMT
- Wed, 25 Sep 2024 15:27:41 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down Expand Up @@ -344,7 +344,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/linode/instances/63837282
url: https://api.linode.com/v4beta/linode/instances/64414065
method: DELETE
response:
body: '{}'
Expand Down Expand Up @@ -372,7 +372,7 @@ interactions:
Content-Type:
- application/json
Expires:
- Thu, 12 Sep 2024 19:53:10 GMT
- Wed, 25 Sep 2024 15:27:43 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down
Loading

0 comments on commit 554b8df

Please sign in to comment.