Skip to content

Commit 4d50c7b

Browse files
authored
Enable Encryption Keys test (#506)
## What changes are proposed in this pull request? This test was disabled because the test account didn't have the right privileges to perform this action. But it does now, so I'm enabling the test again. ## How is this tested? This is a test. NO_CHANGELOG=true
1 parent 06e9a66 commit 4d50c7b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
package com.databricks.sdk.integration;
22

3+
import com.databricks.sdk.AccountClient;
4+
import com.databricks.sdk.integration.framework.CollectionUtils;
35
import com.databricks.sdk.integration.framework.EnvContext;
46
import com.databricks.sdk.integration.framework.EnvTest;
7+
import com.databricks.sdk.service.provisioning.CustomerManagedKey;
8+
import org.junit.jupiter.api.Test;
59
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
610
import org.junit.jupiter.api.extension.ExtendWith;
711

812
@EnvContext("account")
913
@DisabledIfEnvironmentVariable(named = "ARM_CLIENT_ID", matches = ".*")
1014
@ExtendWith(EnvTest.class)
1115
public class EncryptionKeysIT {
12-
// TODO: Enable this test when the test account is updated to support this.
13-
// Either by upgrading the test account tier to Enterprise or by adding this
14-
// feature to the test account.
15-
// @Test
16-
// void lists(AccountClient a) {
17-
// Iterable<CustomerManagedKey> list = a.encryptionKeys().list();
16+
@Test
17+
void lists(AccountClient a) {
18+
Iterable<CustomerManagedKey> list = a.encryptionKeys().list();
1819

19-
// java.util.List<CustomerManagedKey> all = CollectionUtils.asList(list);
20+
java.util.List<CustomerManagedKey> all = CollectionUtils.asList(list);
2021

21-
// CollectionUtils.assertUnique(all);
22-
// }
22+
CollectionUtils.assertUnique(all);
23+
}
2324
}

0 commit comments

Comments
 (0)