Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# List any vulnerability that are to be accepted
# See https://aquasecurity.github.io/trivy/v0.35/docs/vulnerability/examples/filter/
# for more details


#skip this cve to unblock debug testing
CVE-2025-55163
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.uid2</groupId>
<artifactId>uid2-e2e</artifactId>
<version>4.1.0</version>
<version>4.1.1-alpha-73-SNAPSHOT</version>

<properties>
<maven.compiler.source>21</maven.compiler.source>
Expand Down
11 changes: 11 additions & 0 deletions src/test/java/suite/operator/OperatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,18 @@ public void testV2TokenValidate(String label, Operator operator, String operator
"suite.operator.TestData#identityMapBatchBadPhoneArgs"
})
public void testV2IdentityMapUnmapped(String label, Operator operator, String operatorName, String payload) throws Exception {
System.out.println("========================================");
System.out.println("TEST: testV2IdentityMapUnmapped");
System.out.println("Label: " + label);
System.out.println("Operator: " + operatorName);
System.out.println("Payload: " + payload);

JsonNode response = operator.v2IdentityMap(payload);

System.out.println("Response: " + response.toString());
System.out.println("Status: " + response.at("/status").asText());
System.out.println("Unmapped reason: " + response.at("/body/unmapped/0/reason").asText());
System.out.println("========================================");

assertThat(response.at("/status").asText()).isEqualTo("success");
assertThat(response.at("/body/unmapped/0/reason").asText()).isEqualTo("invalid identifier");
Expand Down
9 changes: 9 additions & 0 deletions src/test/java/suite/operator/TestData.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,12 @@ public static Set<Arguments> identityMapBatchBadEmailArgs() {
);

Set<Arguments> args = new HashSet<>();
int index = 0;
for (Operator operator : operators) {
for (List<String> input : inputs) {
System.out.println("[EMAIL-BAD-" + index + "] " + input.get(0) + " | Operator: " + operator.getName());
args.add(Arguments.of(input.get(0), operator, operator.getName(), input.get(1)));
index++;
}
}
return args;
Expand All @@ -297,11 +300,17 @@ public static Set<Arguments> identityMapBatchBadPhoneArgs() {

Set<Arguments> args = new HashSet<>();
if (App.PHONE_SUPPORT) {
System.out.println("PHONE_SUPPORT is TRUE - generating phone tests");
int index = 0;
for (Operator operator : operators) {
for (List<String> input : inputs) {
System.out.println("[PHONE-BAD-" + index + "] " + input.get(0) + " | Operator: " + operator.getName());
args.add(Arguments.of(input.get(0), operator, operator.getName(), input.get(1)));
index++;
}
}
} else {
System.out.println("PHONE_SUPPORT is FALSE - skipping phone tests");
}
return args;
}
Expand Down