File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
airbyte-config/models/src/test/java/io/airbyte/config Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,21 @@ void testTrackingStrategy() {
177
177
assertEquals (Configs .TrackingStrategy .LOGGING , config .getTrackingStrategy ());
178
178
}
179
179
180
+ @ Test
181
+ void testDeploymentMode () {
182
+ envMap .put (EnvConfigs .DEPLOYMENT_MODE , null );
183
+ assertEquals (Configs .DeploymentMode .OSS , config .getDeploymentMode ());
184
+
185
+ envMap .put (EnvConfigs .DEPLOYMENT_MODE , "CLOUD" );
186
+ assertEquals (Configs .DeploymentMode .CLOUD , config .getDeploymentMode ());
187
+
188
+ envMap .put (EnvConfigs .DEPLOYMENT_MODE , "oss" );
189
+ assertEquals (Configs .DeploymentMode .OSS , config .getDeploymentMode ());
190
+
191
+ envMap .put (EnvConfigs .DEPLOYMENT_MODE , "OSS" );
192
+ assertEquals (Configs .DeploymentMode .OSS , config .getDeploymentMode ());
193
+ }
194
+
180
195
@ Test
181
196
void testworkerKubeTolerations () {
182
197
final String airbyteServer = "airbyte-server" ;
You can’t perform that action at this time.
0 commit comments