Fix integration tests

Every authenticated user should be able to see her own "Me" Resource.
This commit is contained in:
René Pfeuffer
2018-09-27 11:50:58 +02:00
parent 20f3f86f73
commit fdbc5077d2
3 changed files with 2 additions and 31 deletions

View File

@@ -93,21 +93,4 @@ public class UserITCase {
.assertType(s -> assertThat(s).isEqualTo(type))
.assertPasswordLinkDoesNotExists();
}
@Test
public void shouldGet403IfUserIsNotAdmin() {
String newUser = "user";
String password = "pass";
String type = "xml";
TestData.createUser(newUser, password, false, type);
ScmRequests.start()
.given()
.url(TestData.getMeUrl())
.usernameAndPassword(newUser, password)
.getUserResource()
.assertStatusCode(403);
}
}