Skip to content

Commit

Permalink
Fix tests -.-
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Oct 27, 2023
1 parent fe12a83 commit af0da33
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ public void testUnlock2() {
}

@Test
@DisplayName("GET /vaults/7E57C0DE-0000-4000-8000-000100001111/access-token returns 200 using user access with ignoreArchivedFlag set")
@DisplayName("GET /vaults/7E57C0DE-0000-4000-8000-000100001111/access-token returns 200 using user access with evenIfArchived set")
public void testUnlock3() {
when().get("/vaults/{vaultId}/access-token?ignoreArchivedFlag=true", "7E57C0DE-0000-4000-8000-000100001111")
when().get("/vaults/{vaultId}/access-token?evenIfArchived=true", "7E57C0DE-0000-4000-8000-000100001111")
.then().statusCode(200)
.body(is("jwe.jwe.jwe.vault1.user1"));
}
Expand All @@ -154,16 +154,16 @@ public void testUnlockArchived1() {
}

@Test
@DisplayName("GET /vaults/7E57C0DE-0000-4000-8000-00010000AAAA/access-token returns 410 for archived vaults with ignoreArchivedFlag set to false")
@DisplayName("GET /vaults/7E57C0DE-0000-4000-8000-00010000AAAA/access-token returns 410 for archived vaults with evenIfArchived set to false")
public void testUnlockArchived2() {
when().get("/vaults/{vaultId}/access-token?ignoreArchivedFlag=false", "7E57C0DE-0000-4000-8000-00010000AAAA")
when().get("/vaults/{vaultId}/access-token?evenIfArchived=false", "7E57C0DE-0000-4000-8000-00010000AAAA")
.then().statusCode(410);
}

@Test
@DisplayName("GET /vaults/7E57C0DE-0000-4000-8000-00010000AAAA/access-token returns 403 for archived vaults with ignoreArchivedFlag set to true")
@DisplayName("GET /vaults/7E57C0DE-0000-4000-8000-00010000AAAA/access-token returns 403 for archived vaults with evenIfArchived set to true")
public void testUnlockArchived3() throws SQLException {
when().get("/vaults/{vaultId}/access-token?ignoreArchivedFlag=true", "7E57C0DE-0000-4000-8000-00010000AAAA")
when().get("/vaults/{vaultId}/access-token?evenIfArchived=true", "7E57C0DE-0000-4000-8000-00010000AAAA")
.then().statusCode(403);
}

Expand Down

0 comments on commit af0da33

Please sign in to comment.