Skip to content

Commit 0752b93

Browse files
committed
Updated Const class
1 parent a3343a1 commit 0752b93

File tree

3 files changed

+42
-40
lines changed

3 files changed

+42
-40
lines changed

src/test/java/common/Args.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/test/java/common/Const.java

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package common;
2+
3+
public final class Const {
4+
public static final class Config {
5+
public static final String ARGS_JSON = "E2E_ARGS_JSON";
6+
public static final String ENV = "E2E_ENV";
7+
public static final String IDENTITY_SCOPE = "E2E_IDENTITY_SCOPE";
8+
public static final String PHONE_SUPPORT = "E2E_PHONE_SUPPORT";
9+
10+
// Args used for Operator E2Es
11+
public static final class Operator {
12+
public static final String CLIENT_SITE = "UID2_OPERATOR_E2E_CLIENT_SITE";
13+
public static final String CLIENT_API_KEY = "UID2_OPERATOR_E2E_CLIENT_API_KEY";
14+
public static final String CLIENT_API_SECRET = "UID2_OPERATOR_E2E_CLIENT_API_SECRET";
15+
16+
// Optout policy check
17+
public static final String CLIENT_API_KEY_PRE_OPTOUT_POLICY = "UID2_OPERATOR_E2E_CLIENT_API_KEY_PRE_OPTOUT_POLICY";
18+
public static final String CLIENT_API_SECRET_PRE_OPTOUT_POLICY = "UID2_OPERATOR_E2E_CLIENT_API_SECRET_PRE_OPTOUT_POLICY";
19+
20+
// Sharing
21+
public static final String CLIENT_API_KEY_SHARING_PARTICIPANT = "UID2_OPERATOR_E2E_CLIENT_API_KEY_SHARING_PARTICIPANT";
22+
public static final String CLIENT_API_KEY_SHARING_NON_PARTICIPANT = "UID2_OPERATOR_E2E_CLIENT_API_KEY_SHARING_NON_PARTICIPANT";
23+
public static final String CLIENT_API_SECRET_SHARING_PARTICIPANT = "UID2_OPERATOR_E2E_CLIENT_API_SECRET_SHARING_PARTICIPANT";
24+
public static final String CLIENT_API_SECRET_NON_SHARING_PARTICIPANT = "UID2_OPERATOR_E2E_CLIENT_API_SECRET_NON_SHARING_PARTICIPANT";
25+
26+
// CSTG
27+
public static final String CSTG_SUBSCRIPTION_ID = "UID2_OPERATOR_E2E_CSTG_SUBSCRIPTION_ID";
28+
public static final String CSTG_PUBLIC_KEY = "UID2_OPERATOR_E2E_CSTG_PUBLIC_KEY";
29+
public static final String CSTG_ORIGIN = "UID2_OPERATOR_E2E_CSTG_ORIGIN";
30+
public static final String CSTG_INVALID_ORIGIN = "UID2_OPERATOR_E2E_CSTG_INVALID_ORIGIN";
31+
}
32+
33+
// Args used for Core E2Es
34+
public static final class Core {
35+
public static final String OPERATOR_API_KEY = "UID2_CORE_E2E_OPERATOR_API_KEY";
36+
public static final String OPTOUT_API_KEY = "UID2_CORE_E2E_OPTOUT_API_KEY";
37+
public static final String CORE_URL = "UID2_CORE_E2E_CORE_URL";
38+
public static final String OPTOUT_URL = "UID2_CORE_E2E_OPTOUT_URL";
39+
}
40+
}
41+
}

src/test/java/common/EnvUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public final class EnvUtil {
1515

1616
static {
1717
try {
18-
String args = getEnv(Args.ARGS_JSON);
18+
String args = getEnv(Const.Config.ARGS_JSON);
1919
TypeReference<HashMap<String,String>> typeRef = new TypeReference<>() {};
2020
ARGS = Mapper.OBJECT_MAPPER.readValue(args, typeRef);
2121
} catch (JsonProcessingException e) {

0 commit comments

Comments
 (0)