Skip to content

Commit 45fdfb9

Browse files
committed
Require testing region to be set
1 parent 44ca89d commit 45fdfb9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

plugin/trino-teradata/src/test/java/io/trino/plugin/teradata/integration/TeradataTestConstants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ public interface TeradataTestConstants
1717
{
1818
String ENV_CLEARSCAPE_URL = "https://api.clearscape.teradata.com";
1919
String ENV_CLEARSCAPE_USERNAME = "demo_user";
20-
String ENV_CLEARSCAPE_REGION = "asia-south";
2120
}

plugin/trino-teradata/src/test/java/io/trino/plugin/teradata/integration/TestingTeradataServer.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,14 @@ public TestingTeradataServer(String envName, boolean destroyEnv)
4646
// Initialize ClearScape Instance and Get the host name from ClearScape API in case config is using clearscape
4747
if (config.isUseClearScape()) {
4848
if (isEnvSet("CLEARSCAPE_DESTROY_ENV")) {
49-
String destroyEnvValue = requireEnv("CLEARSCAPE_DESTROY_ENV");
50-
destroyEnv = Boolean.parseBoolean(destroyEnvValue);
51-
}
52-
String region = TeradataTestConstants.ENV_CLEARSCAPE_REGION;
53-
if (isEnvSet("CLEARSCAPE_REGION")) {
54-
region = requireEnv("CLEARSCAPE_REGION");
49+
destroyEnv = Boolean.parseBoolean(requireEnv("CLEARSCAPE_DESTROY_ENV"));
5550
}
5651
clearScapeSetup = new ClearScapeSetup(
5752
requireEnv("CLEARSCAPE_TOKEN"),
5853
requireEnv("CLEARSCAPE_PASSWORD"),
5954
config.getClearScapeEnvName(),
6055
destroyEnv,
61-
region);
56+
requireEnv("CLEARSCAPE_REGION"));
6257
Model model = clearScapeSetup.initialize();
6358
hostName = model.getHostName();
6459
}

0 commit comments

Comments
 (0)