Skip to content

Commit eeb4bfa

Browse files
lizk886cursoragent
andcommitted
UID2-6472: Replace opted-out hash in identityMapBatchBadEmailArgs
The hash eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc= (SHA256 of user@example without .com) was opted out in production, causing testV2IdentityMapUnmapped to fail — the test expects only "abc" to be unmapped as "invalid identifier", but the opted-out hash also appeared as unmapped with reason "optout". Replaced with rYsn2sTT1lRlZerX+4DXZMQ+DfcejOXoMVczcF2jCLM= (SHA256 of uid2.e2e.test.user@uidapi.com) in the email_hash entries of identityMapBatchBadEmailArgs in both operator and validator TestData. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e339af0 commit eeb4bfa

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/java/suite/operator/TestData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ public static Set<Arguments> identityMapBatchBadEmailArgs() {
272272
Set<Operator> operators = AppsMap.getApps(Operator.class);
273273
Set<List<String>> inputs = Set.of(
274274
List.of("bad email list policy=1", "{\"email\":[\"abc\",\"user2@example.com\"], \"policy\":1}"),
275-
List.of("bad email hash list policy=1", "{\"email_hash\":[\"eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc=\",\"abc\"], \"policy\":1}"),
275+
List.of("bad email hash list policy=1", "{\"email_hash\":[\"rYsn2sTT1lRlZerX+4DXZMQ+DfcejOXoMVczcF2jCLM=\",\"abc\"], \"policy\":1}"),
276276
List.of("bad email list optout_check=1", "{\"email\":[\"abc\",\"user2@example.com\"], \"optout_check\":1}"),
277-
List.of("bad email hash list optout_check=1", "{\"email_hash\":[\"eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc=\",\"abc\"], \"optout_check\":1}")
277+
List.of("bad email hash list optout_check=1", "{\"email_hash\":[\"rYsn2sTT1lRlZerX+4DXZMQ+DfcejOXoMVczcF2jCLM=\",\"abc\"], \"optout_check\":1}")
278278
);
279279

280280
Set<Arguments> args = new HashSet<>();

src/test/java/suite/validator/TestData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ public static Set<Arguments> identityMapBatchBadEmailArgs() {
142142
Prometheus prometheus = getPrometheus();
143143
Set<List<String>> inputs = Set.of(
144144
List.of("bad email list policy=1", "{\"email\":[\"abc\",\"user2@example.com\"], \"policy\":1}"),
145-
List.of("bad email hash list policy=1", "{\"email_hash\":[\"eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc=\",\"abc\"], \"policy\":1}"),
145+
List.of("bad email hash list policy=1", "{\"email_hash\":[\"rYsn2sTT1lRlZerX+4DXZMQ+DfcejOXoMVczcF2jCLM=\",\"abc\"], \"policy\":1}"),
146146
List.of("bad email list optout_check=1", "{\"email\":[\"abc\",\"user2@example.com\"], \"optout_check\":1}"),
147-
List.of("bad email hash list optout_check=1", "{\"email_hash\":[\"eVvLS/Vg+YZ6+z3i0NOpSXYyQAfEXqCZ7BTpAjFUBUc=\",\"abc\"], \"optout_check\":1}")
147+
List.of("bad email hash list optout_check=1", "{\"email_hash\":[\"rYsn2sTT1lRlZerX+4DXZMQ+DfcejOXoMVczcF2jCLM=\",\"abc\"], \"optout_check\":1}")
148148
);
149149

150150
Set<Arguments> args = new HashSet<>();

0 commit comments

Comments
 (0)