fix(backend): fix tests

This commit is contained in:
MiniDigger | Martin 2022-12-28 02:01:35 +01:00
parent f513e2bd5d
commit 8f690a66d1

View File

@ -63,14 +63,14 @@ class PermissionsControllerTest {
@Test
void testHiddenProjectSeeHidden() throws Exception {
this.mockMvc.perform(get("/api/v1/permissions/?author=paper&slug=Test")
this.mockMvc.perform(get("/api/v1/permissions?author=paper&slug=Test")
.header("Authorization", "HangarAuth " + this.getJwt(seeHidden)))
.andExpect(jsonPath("$.permissionBinString").value("10000000000000000000000000"));
}
@Test
void testHiddenProjectProjectOnly() throws Exception {
this.mockMvc.perform(get("/api/v1/permissions/?author=paper&slug=Test")
this.mockMvc.perform(get("/api/v1/permissions?author=paper&slug=Test")
.header("Authorization", "HangarAuth " + this.getJwt(projectOnly)))
.andExpect(jsonPath("$.permissionBinString").value("100000000"));
}