Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project: Linode Disk Encryption #541

Merged
merged 13 commits into from
Jul 23, 2024
Prev Previous commit
Next Next commit
Fix LKE tests
  • Loading branch information
zliang-akamai committed May 23, 2024
commit 6a6014f02272b09c3cde208cf48e22d2a73d9d57
22 changes: 11 additions & 11 deletions test/integration/fixtures/TestLKECluster_APIEndpoints_List.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/regions
url: https://api.linode.com/v4/regions
method: GET
response:
body: '{"data": [{"id": "ap-west", "label": "Mumbai, India", "country": "in",
Expand Down Expand Up @@ -119,7 +119,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"]}],"label":"go-lke-test-apiend","region":"us-east","k8s_version":"1.28","tags":["testing"]}'
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"]}],"label":"go-lke-test-apiend","region":"us-east","k8s_version":"1.29","tags":["testing"]}'
form: {}
headers:
Accept:
Expand All @@ -128,12 +128,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters
url: https://api.linode.com/v4/lke/clusters
method: POST
response:
body: '{"id": 7323, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
body: '{"id": 7456, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-lke-test-apiend", "region": "us-east", "k8s_version":
"1.28", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
"1.29", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -187,7 +187,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7323/api-endpoints
url: https://api.linode.com/v4/lke/clusters/7456/api-endpoints
method: GET
response:
body: '{"errors": [{"reason": "Cluster API Endpoints are not yet available. Please
Expand Down Expand Up @@ -230,12 +230,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7323/api-endpoints
url: https://api.linode.com/v4/lke/clusters/7456/api-endpoints
method: GET
response:
body: '{"page": 1, "pages": 1, "results": 4, "data": [{"endpoint": "https://2dfc5e68-f61d-4303-ab74-441e835acdaa.cpc1-cjj1-testing.linodelke.net:443"},
{"endpoint": "https://2dfc5e68-f61d-4303-ab74-441e835acdaa.cpc1-cjj1-testing.linodelke.net:6443"},
{"endpoint": "https://172.234.0.10:443"}, {"endpoint": "https://172.234.0.10:6443"}]}'
body: '{"page": 1, "pages": 1, "results": 4, "data": [{"endpoint": "https://fbb841d7-aa0a-4afd-89c7-0cf907d5fea1.cpc1-cjj1-testing.linodelke.net:443"},
{"endpoint": "https://fbb841d7-aa0a-4afd-89c7-0cf907d5fea1.cpc1-cjj1-testing.linodelke.net:6443"},
{"endpoint": "https://172.234.1.81:443"}, {"endpoint": "https://172.234.1.81:6443"}]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -291,7 +291,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7323
url: https://api.linode.com/v4/lke/clusters/7456
method: DELETE
response:
body: '{}'
Expand Down
22 changes: 11 additions & 11 deletions test/integration/fixtures/TestLKECluster_Dashboard_Get.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/regions
url: https://api.linode.com/v4/regions
method: GET
response:
body: '{"data": [{"id": "ap-west", "label": "Mumbai, India", "country": "in",
Expand Down Expand Up @@ -119,7 +119,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"]}],"label":"go-lke-test-dash","region":"us-east","k8s_version":"1.28","tags":["testing"]}'
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"]}],"label":"go-lke-test-dash","region":"us-east","k8s_version":"1.29","tags":["testing"]}'
form: {}
headers:
Accept:
Expand All @@ -128,12 +128,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters
url: https://api.linode.com/v4/lke/clusters
method: POST
response:
body: '{"id": 7325, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
body: '{"id": 7458, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-lke-test-dash", "region": "us-east", "k8s_version":
"1.28", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
"1.29", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -187,12 +187,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7325
url: https://api.linode.com/v4/lke/clusters/7458
method: GET
response:
body: '{"id": 7325, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
body: '{"id": 7458, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-lke-test-dash", "region": "us-east", "k8s_version":
"1.28", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
"1.29", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -248,10 +248,10 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7325/dashboard
url: https://api.linode.com/v4/lke/clusters/7458/dashboard
method: GET
response:
body: '{"url": "https://9808ce20-641e-45e2-8905-5bc8a3ee788a.dashboard.cpc1-cjj1-testing.linodelke.net"}'
body: '{"url": "https://5d026680-6439-49a1-9ca9-0408aba5f076.dashboard.cpc1-cjj1-testing.linodelke.net"}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -307,7 +307,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7325
url: https://api.linode.com/v4/lke/clusters/7458
method: DELETE
response:
body: '{}'
Expand Down
18 changes: 9 additions & 9 deletions test/integration/fixtures/TestLKECluster_GetFound.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/regions
url: https://api.linode.com/v4/regions
method: GET
response:
body: '{"data": [{"id": "ap-west", "label": "Mumbai, India", "country": "in",
Expand Down Expand Up @@ -119,7 +119,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"]}],"label":"go-lke-test-found","region":"us-east","k8s_version":"1.28","tags":["testing"]}'
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"]}],"label":"go-lke-test-found","region":"us-east","k8s_version":"1.29","tags":["testing"]}'
form: {}
headers:
Accept:
Expand All @@ -128,12 +128,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters
url: https://api.linode.com/v4/lke/clusters
method: POST
response:
body: '{"id": 7320, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
body: '{"id": 7453, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-lke-test-found", "region": "us-east", "k8s_version":
"1.28", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
"1.29", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -187,12 +187,12 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7320
url: https://api.linode.com/v4/lke/clusters/7453
method: GET
response:
body: '{"id": 7320, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
body: '{"id": 7453, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-lke-test-found", "region": "us-east", "k8s_version":
"1.28", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
"1.29", "control_plane": {"high_availability": false}, "tags": ["testing"]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand Down Expand Up @@ -248,7 +248,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/7320
url: https://api.linode.com/v4/lke/clusters/7453
method: DELETE
response:
body: '{}'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fixtures/TestLKECluster_GetMissing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/0
url: https://api.linode.com/v4/lke/clusters/0
method: GET
response:
body: '{"errors": [{"reason": "Not found"}]}'
Expand Down
Loading