Skip to content

Commit f00359f

Browse files
committed
Added v2/token/logout test
1 parent ac597c8 commit f00359f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/test/java/com/uid2/operator/UIDOperatorVerticleTest.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2805,13 +2805,24 @@ void optOutStatusUnauthorized(String contentType, Vertx vertx, VertxTestContext
28052805
}
28062806

28072807
@ParameterizedTest
2808-
@ValueSource(strings = {"text/plain", "application/octet-stream"})
2809-
void logoutV2(String contentType, Vertx vertx, VertxTestContext testContext) {
2808+
@CsvSource(value = {
2809+
"true,text/plain",
2810+
"true,application/octet-stream",
2811+
2812+
"false,text/plain",
2813+
"false,application/octet-stream"
2814+
})
2815+
void logoutV2(boolean useV4Uid, String contentType, Vertx vertx, VertxTestContext testContext) {
28102816
final int clientSiteId = 201;
28112817
fakeAuth(clientSiteId, Role.OPTOUT);
2812-
setupSalts();
28132818
setupKeys();
28142819

2820+
if (useV4Uid) {
2821+
setupSaltsForV4UidAndV4PrevUid();
2822+
} else {
2823+
setupSalts();
2824+
}
2825+
28152826
JsonObject req = new JsonObject();
28162827
req.put("email", "[email protected]");
28172828

0 commit comments

Comments
 (0)