Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Added a new unit test for getDeploymentMode() in the EnvConfigs.java (
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheryl0402 authored and Jordan Scott committed Jun 1, 2022
1 parent 44f54a9 commit 0c70c93
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,21 @@ void testTrackingStrategy() {
assertEquals(Configs.TrackingStrategy.LOGGING, config.getTrackingStrategy());
}

@Test
void testDeploymentMode() {
envMap.put(EnvConfigs.DEPLOYMENT_MODE, null);
assertEquals(Configs.DeploymentMode.OSS, config.getDeploymentMode());

envMap.put(EnvConfigs.DEPLOYMENT_MODE, "CLOUD");
assertEquals(Configs.DeploymentMode.CLOUD, config.getDeploymentMode());

envMap.put(EnvConfigs.DEPLOYMENT_MODE, "oss");
assertEquals(Configs.DeploymentMode.OSS, config.getDeploymentMode());

envMap.put(EnvConfigs.DEPLOYMENT_MODE, "OSS");
assertEquals(Configs.DeploymentMode.OSS, config.getDeploymentMode());
}

@Test
void testworkerKubeTolerations() {
final String airbyteServer = "airbyte-server";
Expand Down

0 comments on commit 0c70c93

Please sign in to comment.