diff --git a/driver-core/src/test/functional/com/mongodb/ClusterFixture.java b/driver-core/src/test/functional/com/mongodb/ClusterFixture.java index fe76ef68668..934c83f113b 100644 --- a/driver-core/src/test/functional/com/mongodb/ClusterFixture.java +++ b/driver-core/src/test/functional/com/mongodb/ClusterFixture.java @@ -198,10 +198,11 @@ public static List getVersionList(final String versionString) { } public static boolean hasEncryptionTestsEnabled() { - List requiredSystemProperties = asList("awsAccessKeyId", "awsSecretAccessKey", "azureTenantId", "azureClientId", - "azureClientSecret", "gcpEmail", "gcpPrivateKey", "tmpAwsAccessKeyId", "tmpAwsSecretAccessKey", "tmpAwsSessionToken"); + List requiredSystemProperties = asList("AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AZURE_TENANT_ID", "AZURE_CLIENT_ID", + "AZURE_CLIENT_SECRET", "GCP_EMAIL", "GCP_PRIVATE_KEY", "AWS_TEMP_ACCESS_KEY_ID", "AWS_TEMP_SECRET_ACCESS_KEY", + "AWS_TEMP_SESSION_TOKEN"); return requiredSystemProperties.stream() - .map(name -> getEnv("org.mongodb.test." + name, "")) + .map(name -> getEnv(name, "")) .filter(s -> !s.isEmpty()) .count() == requiredSystemProperties.size(); }