Fix tests for default owner permission

Therefore add explicit methods to change the permission collection
of a repository.
This commit is contained in:
René Pfeuffer
2018-11-09 10:13:36 +01:00
parent 1f4f6226fb
commit afbffa5978
8 changed files with 42 additions and 35 deletions

View File

@@ -99,10 +99,10 @@ public class TestData {
;
}
public static List<Object> getUserPermissions(String username, String password, String repositoryType) {
public static List<Map> getUserPermissions(String username, String password, String repositoryType) {
return callUserPermissions(username, password, repositoryType, HttpStatus.SC_OK)
.extract()
.body().jsonPath().getList("_embedded.permissions");
.body().jsonPath().<Map>getList("_embedded.permissions");
}
public static ValidatableResponse callUserPermissions(String username, String password, String repositoryType, int expectedStatusCode) {