Skip to content

Commit dda480f

Browse files
Get username from auth for test #5025
- Fixes one test and moves the error down on another
1 parent a3871e3 commit dda480f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/edu/harvard/iq/dataverse/api/AdminIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public void testConvertShibUserToBuiltin() throws Exception {
269269
createUserToConvert.prettyPrint();
270270

271271
long idOfUserToConvert = createUserToConvert.body().jsonPath().getLong("data.authenticatedUser.id");
272-
String emailOfUserToConvert = createUserToConvert.body().jsonPath().getString("data.user.email");
272+
String emailOfUserToConvert = createUserToConvert.body().jsonPath().getString("data.authenticatedUser.email");
273273
String usernameOfUserToConvert = UtilIT.getUsernameFromResponse(createUserToConvert);
274274

275275
String password = usernameOfUserToConvert;
@@ -356,7 +356,7 @@ public void testConvertOAuthUserToBuiltin() throws Exception {
356356
createUserToConvert.prettyPrint();
357357

358358
long idOfUserToConvert = createUserToConvert.body().jsonPath().getLong("data.authenticatedUser.id");
359-
String emailOfUserToConvert = createUserToConvert.body().jsonPath().getString("data.user.email");
359+
String emailOfUserToConvert = createUserToConvert.body().jsonPath().getString("data.authenticatedUser.email");
360360
String usernameOfUserToConvert = UtilIT.getUsernameFromResponse(createUserToConvert);
361361

362362
String password = usernameOfUserToConvert;

0 commit comments

Comments
 (0)