Fix unit test

This commit is contained in:
René Pfeuffer
2019-03-11 16:00:16 +01:00
parent 83baac3b18
commit d82f38e0f9
2 changed files with 3 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ public class GitConfigResourceTest {
}
@Test
@SubjectAware(username = "writeOnly")
@SubjectAware(username = "readWrite")
public void shouldReadDefaultRepositoryConfig() throws URISyntaxException, UnsupportedEncodingException {
when(repositoryManager.get(new NamespaceAndName("space", "X"))).thenReturn(new Repository("id", "git", "space", "X"));
@@ -193,7 +193,7 @@ public class GitConfigResourceTest {
}
@Test
@SubjectAware(username = "writeOnly")
@SubjectAware(username = "readOnly")
public void shouldReadStoredRepositoryConfig() throws URISyntaxException, UnsupportedEncodingException {
when(repositoryManager.get(new NamespaceAndName("space", "X"))).thenReturn(new Repository("id", "git", "space", "X"));
GitRepositoryConfig gitRepositoryConfig = new GitRepositoryConfig();

View File

@@ -7,7 +7,7 @@ admin = secret, admin
[roles]
reader = configuration:read:git
writer = configuration:write:git
readerWriter = configuration:*:git
readerWriter = configuration:*:git,repository:*:id
admin = *
repoRead = repository:read:*
repoWrite = repository:modify:*