Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public void testRetrieveMyDataAsJsonString() throws InterruptedException {
// Test getting a list of collections that the user can add datasets to
@Test
public void testRetrieveMyDataCollections() throws InterruptedException {
int rootCount = 1; // everyone has access to this dataverse
List<Map<String, String>> items;
Response createDataverseResponse;
Response retrieveMyCollectionListResponse;
Expand All @@ -137,6 +136,11 @@ public void testRetrieveMyDataCollections() throws InterruptedException {
String User3Username = UtilIT.getUsernameFromResponse(createUserResponse);
String User3ApiToken = UtilIT.getApiTokenFromResponse(createUserResponse);

// Get the base number of collections since it's not always 1 for root.
// There may be others left from another test that everyone can access
retrieveMyCollectionListResponse = UtilIT.retrieveMyCollectionList(User1ApiToken, null);
int rootCount = retrieveMyCollectionListResponse.getBody().jsonPath().getList("data.items").size();

// User1 creates 15 Dataverses and adds a role to each allowing User2 access
List<String> dataverses = new ArrayList<>();
int user1DataverseCount = 15;
Expand Down
Loading