Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
CapabilityBlockStorageMigrations string = "Block Storage Migrations"
CapabilityCloudFirewall string = "Cloud Firewall"
CapabilityDBAAS string = "Managed Databases"
CapabilityDiskEncryption string = "Disk Encryption"
CapabilityDiskEncryption string = "LA Disk Encryption"
CapabilityEdgePlans string = "Edge Plans"
CapabilityGPU string = "GPU Linodes"
CapabilityKubernetesEnterprise string = "Kubernetes Enterprise"
Expand Down
543 changes: 443 additions & 100 deletions test/integration/fixtures/TestLKECluster_APIEndpoints_List.yaml

Large diffs are not rendered by default.

354 changes: 172 additions & 182 deletions test/integration/fixtures/TestLKECluster_APLEnabled.yaml

Large diffs are not rendered by default.

451 changes: 347 additions & 104 deletions test/integration/fixtures/TestLKECluster_Dashboard_Get.yaml

Large diffs are not rendered by default.

273 changes: 142 additions & 131 deletions test/integration/fixtures/TestLKECluster_Enterprise_smoke.yaml

Large diffs are not rendered by default.

430 changes: 334 additions & 96 deletions test/integration/fixtures/TestLKECluster_GetFound.yaml

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions test/integration/fixtures/TestLKECluster_GetMissing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ interactions:
- HEAD, GET, OPTIONS, POST, PUT, DELETE
Access-Control-Allow-Origin:
- '*'
Akamai-Internal-Account:
- '*'
Cache-Control:
- private, max-age=0, s-maxage=0, no-cache, no-store
- max-age=0, no-cache, no-store
Connection:
- keep-alive
Content-Length:
- "37"
Content-Type:
- application/json
Server:
- nginx
Expires:
- Fri, 11 Apr 2025 16:52:16 GMT
Pragma:
- no-cache
Vary:
- Authorization, X-Filter
X-Accepted-Oauth-Scopes:
Expand All @@ -39,7 +45,7 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "400"
- "1600"
status: 404 Not Found
code: 404
duration: ""
676 changes: 417 additions & 259 deletions test/integration/fixtures/TestLKECluster_Kubeconfig_Delete.yaml

Large diffs are not rendered by default.

598 changes: 468 additions & 130 deletions test/integration/fixtures/TestLKECluster_Kubeconfig_Get.yaml

Large diffs are not rendered by default.

423 changes: 330 additions & 93 deletions test/integration/fixtures/TestLKECluster_Nodes_Recycle.yaml

Large diffs are not rendered by default.

458 changes: 351 additions & 107 deletions test/integration/fixtures/TestLKECluster_Update.yaml

Large diffs are not rendered by default.

652 changes: 538 additions & 114 deletions test/integration/fixtures/TestLKECluster_WaitForReady.yaml

Large diffs are not rendered by default.

107 changes: 10 additions & 97 deletions test/integration/fixtures/TestLKECluster_WaitForReady_Cluster.yaml

Large diffs are not rendered by default.

440 changes: 228 additions & 212 deletions test/integration/fixtures/TestLKECluster_withACL.yaml

Large diffs are not rendered by default.

440 changes: 344 additions & 96 deletions test/integration/fixtures/TestLKEClusters_List.yaml

Large diffs are not rendered by default.

442 changes: 151 additions & 291 deletions test/integration/fixtures/TestLKENodeEnterprisePoolNode_Get.yaml

Large diffs are not rendered by default.

341 changes: 166 additions & 175 deletions test/integration/fixtures/TestLKENodeEnterprisePoolNode_Update.yaml

Large diffs are not rendered by default.

550 changes: 375 additions & 175 deletions test/integration/fixtures/TestLKENodePoolNode_Delete.yaml

Large diffs are not rendered by default.

502 changes: 257 additions & 245 deletions test/integration/fixtures/TestLKENodePoolNode_Get.yaml

Large diffs are not rendered by default.

500 changes: 256 additions & 244 deletions test/integration/fixtures/TestLKENodePoolNode_Recycle.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,015 changes: 788 additions & 227 deletions test/integration/fixtures/TestLKENodePool_GetFound.yaml

Large diffs are not rendered by default.

39 changes: 32 additions & 7 deletions test/integration/fixtures/TestLKENodePool_GetFound_k8s.yaml

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions test/integration/fixtures/TestLKENodePool_GetMissing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ interactions:
- HEAD, GET, OPTIONS, POST, PUT, DELETE
Access-Control-Allow-Origin:
- '*'
Akamai-Internal-Account:
- '*'
Cache-Control:
- private, max-age=0, s-maxage=0, no-cache, no-store
- max-age=0, no-cache, no-store
Connection:
- keep-alive
Content-Length:
- "37"
Content-Type:
- application/json
Server:
- nginx
Expires:
- Fri, 11 Apr 2025 17:41:38 GMT
Pragma:
- no-cache
Vary:
- Authorization, X-Filter
X-Accepted-Oauth-Scopes:
Expand All @@ -39,7 +45,7 @@ interactions:
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "400"
- "1600"
status: 404 Not Found
code: 404
duration: ""
518 changes: 265 additions & 253 deletions test/integration/fixtures/TestLKENodePool_Recycle.yaml

Large diffs are not rendered by default.

570 changes: 386 additions & 184 deletions test/integration/fixtures/TestLKENodePool_Update.yaml

Large diffs are not rendered by default.

547 changes: 371 additions & 176 deletions test/integration/fixtures/TestLKENodePools_List.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/integration/lke_clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestLKECluster_Update(t *testing.T) {

updatedTags := []string{"test=true"}
updatedLabel := cluster.Label + "-updated"
updatedK8sVersion := "1.30"
updatedK8sVersion := "1.31"

updatedCluster, err := client.UpdateLKECluster(context.Background(), cluster.ID, linodego.LKEClusterUpdateOptions{
Tags: &updatedTags,
Expand Down Expand Up @@ -309,7 +309,7 @@ func setupLKECluster(t *testing.T, clusterModifiers []clusterModifier, fixturesY

createOpts := linodego.LKEClusterCreateOptions{
Label: label,
Region: getRegionsWithCaps(t, client, []string{"Kubernetes", "Disk Encryption"})[0],
Region: getRegionsWithCaps(t, client, []string{"Kubernetes", "LA Disk Encryption"})[0],
K8sVersion: "1.31",
Tags: []string{"testing"},
NodePools: []linodego.LKENodePoolCreateOptions{{Count: 1, Type: "g6-standard-2", Tags: []string{"test"}}},
Expand Down
10 changes: 5 additions & 5 deletions test/integration/lke_node_pools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func TestLKENodePool_GetFound(t *testing.T) {
t.Errorf("unexpected tags:\n%s", diff)
}

if i.DiskEncryption != linodego.InstanceDiskEncryptionEnabled {
t.Errorf("DiskEncryption not enabled, got: %s, want: %s", i.DiskEncryption, linodego.InstanceDiskEncryptionEnabled)
if i.DiskEncryption != linodego.InstanceDiskEncryptionDisabled {
t.Errorf("DiskEncryption enabled, got: %s, want: %s", i.DiskEncryption, linodego.InstanceDiskEncryptionEnabled)
}

wrapper, teardownClusterClient := transportRecorderWrapper(t, "fixtures/TestLKENodePool_GetFound_k8s")
Expand Down Expand Up @@ -314,7 +314,7 @@ func setupLKENodePool(t *testing.T, fixturesYaml string, nodePoolCreateOpts *lin
}

func TestLKEEnterpriseNodePoolK8sUpgrade_Get(t *testing.T) {
testLKENodePoolCreateOpts.K8sVersion = linodego.Pointer("v1.31.1+lke1")
testLKENodePoolCreateOpts.K8sVersion = linodego.Pointer("v1.31.1+lke4")
testLKENodePoolCreateOpts.UpdateStrategy = linodego.Pointer(linodego.LKENodePoolRollingUpdate)

_, _, nodePool, teardown, err := setupLKEEnterpriseNodePool(t, "fixtures/TestLKENodeEnterprisePoolNode_Get", &testLKENodePoolCreateOpts)
Expand All @@ -333,7 +333,7 @@ func TestLKEEnterpriseNodePoolK8sUpgrade_Get(t *testing.T) {
}

func TestLKEEnterpriseNodePoolK8sUpgrade_Update(t *testing.T) {
testLKENodePoolCreateOpts.K8sVersion = linodego.Pointer("v1.31.1+lke1")
testLKENodePoolCreateOpts.K8sVersion = linodego.Pointer("v1.31.1+lke4")
testLKENodePoolCreateOpts.UpdateStrategy = linodego.Pointer(linodego.LKENodePoolRollingUpdate)

client, lkeCluster, nodePool, teardown, err := setupLKEEnterpriseNodePool(t, "fixtures/TestLKENodeEnterprisePoolNode_Update", &testLKENodePoolCreateOpts)
Expand Down Expand Up @@ -365,7 +365,7 @@ func setupLKEEnterpriseNodePool(t *testing.T, fixturesYaml string, nodePoolCreat
client, lkeCluster, fixtureTeardown, err := setupLKECluster(t, []clusterModifier{func(createOpts *linodego.LKEClusterCreateOptions) {
createOpts.Tier = "enterprise"
createOpts.Region = "us-lax"
createOpts.K8sVersion = "v1.31.1+lke1"
createOpts.K8sVersion = "v1.31.1+lke4"
}}, fixturesYaml)
if err != nil {
t.Errorf("Error creating LKE enterprise cluster, got error %v", err)
Expand Down