Skip to content

Commit 4d5edd7

Browse files
authored
Fix create user tests
1 parent 92af7cc commit 4d5edd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractAccountApiTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,19 +422,19 @@ private ApiResponse createUser(List<String> subAccountsIds, Boolean enabled) thr
422422
}
423423

424424
private ApiResponse createUser(List<String> subAccountsIds, Account.Role role) throws Exception {
425-
String email = String.format("%s@%s.com", randomLetters(), randomLetters());
425+
String email = "sdk+" + SDK_TEST_TAG + randomLetters() + "@cloudinary.com";
426426
return createUser("TestName", email, role, subAccountsIds);
427427
}
428428

429429
private ApiResponse createUser(List<String> subAccountsIds, Account.Role role, Map<String, Object> options) throws Exception {
430-
String email = String.format("%s@%s.com", randomLetters(), randomLetters());
430+
String email = "sdk+" + SDK_TEST_TAG + randomLetters() + "@cloudinary.com";
431431
ApiResponse user = account.createUser("TestUserJava"+new Date().toString(), email, role, null, subAccountsIds, options);
432432
createdUserIds.add(user.get("id").toString());
433433
return user;
434434
}
435435

436436
private ApiResponse createUser(List<String> subAccountsIds, Account.Role role, Boolean enabled) throws Exception {
437-
String email = String.format("%s@%s.com", randomLetters(), randomLetters());
437+
String email = "sdk+" + SDK_TEST_TAG + randomLetters() + "@cloudinary.com";
438438
ApiResponse user = account.createUser("TestUserJava"+new Date().toString(), email, role, enabled, subAccountsIds, null);
439439
createdUserIds.add(user.get("id").toString());
440440
return user;

0 commit comments

Comments
 (0)