Skip to content

Commit 769ed12

Browse files
authored
Merge pull request #44 from IABTechLab/ian-UID2-2145-update-test-identities
update test identities
2 parents 4e686f7 + 56f1bc0 commit 769ed12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/uid2/client/PublisherTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void integrationGenerateAndRefresh() {
4343

4444
@Test //this test requires these env vars to be configured: UID2_BASE_URL, UID2_API_KEY, UID2_SECRET_KEY
4545
public void integrationOptOut() {
46-
TokenGenerateResponse tokenGenerateResponse = publisherUid2Client.generateTokenResponse(TokenGenerateInput.fromEmail("optout@email.com"));
46+
TokenGenerateResponse tokenGenerateResponse = publisherUid2Client.generateTokenResponse(TokenGenerateInput.fromEmail("refresh-optout@example.com"));
4747
assertFalse(tokenGenerateResponse.isOptout());
4848
IdentityTokens identity = tokenGenerateResponse.getIdentity();
4949
assertNotNull(identity);
@@ -435,7 +435,7 @@ public void nullJsonStringThrowsNullException() {
435435

436436
@Test
437437
public void optOutRefreshResponse() {
438-
final String refreshResponseKey = "WL0AYr41Db9m6dCIPtQlTz2kE4NMx3nLmloGHkQPGSQ="; //derived by sending "optout@email.com" in a token generate request
438+
final String refreshResponseKey = "WL0AYr41Db9m6dCIPtQlTz2kE4NMx3nLmloGHkQPGSQ="; //derived by sending "refresh-optout@example.com" in a token generate request
439439
final String encryptedRefreshOptOutResponse = "d9I6qCdlJ6mkWYLyw2iGnCnJ5OocyQDtbbvW6YXAYKpxTXaOePQzPPJIrHnI7Io="; //derived by sending a refresh request using the refresh token from the generate request above
440440

441441
JsonObject json = new Gson().fromJson(expectedDecryptedJsonForTokenGenerateResponse, JsonObject.class);
@@ -452,7 +452,7 @@ public void optOutRefreshResponse() {
452452

453453
@Test
454454
public void optOutGenerateTokenResponse() {
455-
EnvelopeV2 envelope = createEnvelopeForTokenGenerateRequest(IdentityType.Email, "optout@email.com", null, true);
455+
EnvelopeV2 envelope = createEnvelopeForTokenGenerateRequest(IdentityType.Email, "refresh-optout@example.com", null, true);
456456
final String encryptedOptOutResponse = encrypt("{\"status\":\"optout\"}");
457457
TokenGenerateResponse tokenGenerateResponse = publisherUid2Helper.createTokenGenerateResponse(encryptedOptOutResponse, envelope);
458458
assertTrue(tokenGenerateResponse.isOptout());

0 commit comments

Comments
 (0)