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

test: Enable disk encryption tests #611

Merged
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
4 changes: 0 additions & 4 deletions test/integration/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
})
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions test/integration/lke_clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}},
Expand Down