From 86d05de3daa66415e9f5ec61cbfadf63dabe1d11 Mon Sep 17 00:00:00 2001 From: Youjung Kim <126618609+ykim-akamai@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:26:02 -0800 Subject: [PATCH] unskip disk encryption test (#611) --- test/integration/instances_test.go | 4 ---- test/integration/lke_clusters_test.go | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/test/integration/instances_test.go b/test/integration/instances_test.go index ab51a5044..97c06c68b 100644 --- a/test/integration/instances_test.go +++ b/test/integration/instances_test.go @@ -247,9 +247,7 @@ func TestInstance_Disks_List(t *testing.T) { } } -// TODO:: Un-skip this test once diskencryption is enabled func TestInstance_Disks_List_WithEncryption(t *testing.T) { - t.Skip("Skip disk encryption tests until it is enabled in region") client, instance, teardown, err := setupInstance(t, "fixtures/TestInstance_Disks_List_WithEncryption", true, func(c *linodego.Client, ico *linodego.InstanceCreateOptions) { ico.Region = getRegionsWithCaps(t, c, []string{"Disk Encryption"})[0] }) @@ -600,9 +598,7 @@ func TestInstance_Rebuild(t *testing.T) { } } -// TODO:: Un-skip this test once diskencryption is enabled func TestInstance_RebuildWithEncryption(t *testing.T) { - t.Skip("Skip disk encryption tests until it is enabled in region") client, instance, _, teardown, err := setupInstanceWithoutDisks( t, "fixtures/TestInstance_RebuildWithEncryption", diff --git a/test/integration/lke_clusters_test.go b/test/integration/lke_clusters_test.go index 3348cd47b..a419912aa 100644 --- a/test/integration/lke_clusters_test.go +++ b/test/integration/lke_clusters_test.go @@ -287,10 +287,9 @@ func setupLKECluster(t *testing.T, clusterModifiers []clusterModifier, fixturesY var fixtureTeardown func() client, fixtureTeardown := createTestClient(t, fixturesYaml) - // TODO:: Add "Disk Encryption" to Region once disk encryption is enabled createOpts := linodego.LKEClusterCreateOptions{ Label: label, - Region: getRegionsWithCaps(t, client, []string{"Kubernetes"})[0], + Region: getRegionsWithCaps(t, client, []string{"Kubernetes", "Disk Encryption"})[0], K8sVersion: "1.29", Tags: []string{"testing"}, NodePools: []linodego.LKENodePoolCreateOptions{{Count: 1, Type: "g6-standard-2", Tags: []string{"test"}}},