Skip to content

Commit dce483e

Browse files
committed
Use CLOUD_PROVIDER instead of host to determine which tests to run
1 parent 25bebff commit dce483e

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

databricks-sdk-java/src/test/java/com/databricks/sdk/integration/CredentialsIT.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111

1212
@EnvContext("account")
1313
@DisabledIfEnvironmentVariable(named = "ARM_CLIENT_ID", matches = ".*")
14+
// Skipping this test for GCP because this api is not enabled in GCP.
15+
@DisabledIfEnvironmentVariable(named = "CLOUD_PROVIDER", matches = "GCP")
1416
@ExtendWith(EnvTest.class)
1517
public class CredentialsIT {
1618
@Test
1719
void lists(AccountClient a) {
18-
// Skipping this test for GCP because this api is not enabled in GCP.
19-
if (!a.config().isGcp()) {
20-
Iterable<Credential> list = a.credentials().list();
20+
Iterable<Credential> list = a.credentials().list();
2121

22-
java.util.List<Credential> all = CollectionUtils.asList(list);
22+
java.util.List<Credential> all = CollectionUtils.asList(list);
2323

24-
CollectionUtils.assertUnique(all);
25-
}
24+
CollectionUtils.assertUnique(all);
2625
}
2726
}

0 commit comments

Comments
 (0)