Skip to content

Commit

Permalink
Ensuring the domain Two is available for some IT cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Mar 13, 2024
1 parent 45da018 commit d956939
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,15 @@ public void domainCreateMaster() {

@Test
public void domainCreateDuplicateKey() {
assumeTrue(domainOps.list().stream().anyMatch(d -> "Two".equals(d.getKey())));

assertThrows(KeymasterException.class, () -> domainOps.create(new JPADomain.Builder("Two").build()));
}

@Test
public void domainUpdateAdminPassword() throws Exception {
assumeTrue(domainOps.list().stream().anyMatch(d -> "Two".equals(d.getKey())));

List<Domain> initial = domainOps.list();
assertNotNull(initial);
assumeTrue(initial.stream().anyMatch(domain -> "Two".equals(domain.getKey())));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public class MultitenancyITCase extends AbstractITCase {

@BeforeEach
public void multitenancyCheck() {
assumeTrue(domainOps.list().stream().anyMatch(d -> "Two".equals(d.getKey())));

List<Domain> initial = domainOps.list();
assertNotNull(initial);
assumeTrue(initial.stream().anyMatch(domain -> "Two".equals(domain.getKey())));
Expand Down

0 comments on commit d956939

Please sign in to comment.