Skip to content

Commit 63bf18b

Browse files
committed
test assertion
1 parent c8a4dc7 commit 63bf18b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

service/src/test/java/bio/terra/workspace/service/resource/controlled/cloud/azure/database/AzureDatabaseUtilsRunnerTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ public class AzureDatabaseUtilsRunnerTest extends BaseMockitoStrictStubbingTest
4949
@Mock private ApiAzureLandingZoneDeployedResource mockDatabase;
5050
@Mock private ApiAzureLandingZoneDeployedResource mockAdminIdentity;
5151

52+
private final String AZURE_ENV = "AzureCloud";
53+
5254
@BeforeEach
5355
public void createAzureDatabaseUtilsRunner() {
54-
when(mockAzureConfig.getAzureEnvironmentConfigString()).thenReturn("AzureCloud");
56+
when(mockAzureConfig.getAzureEnvironmentConfigString()).thenReturn(AZURE_ENV);
5557
azureDatabaseUtilsRunner =
5658
new AzureDatabaseUtilsRunner(
5759
mockAzureConfig,
@@ -172,6 +174,8 @@ private void assertResults(Map<String, String> expectedEnv) {
172174
var expectedEnvWithCommon = new HashMap<>(expectedEnv);
173175
expectedEnvWithCommon.putAll(
174176
Map.of(
177+
"AZURE_ENVIRONMENT",
178+
AZURE_ENV,
175179
"DB_SERVER_NAME",
176180
mockDatabase.getResourceId(),
177181
"ADMIN_DB_USER_NAME",

0 commit comments

Comments
 (0)