Skip to content

Commit

Permalink
test: add test to verify new checks are being populated
Browse files Browse the repository at this point in the history
  • Loading branch information
tginiotis-at-work committed May 17, 2024
1 parent c8c7b30 commit e4a7af4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/org/kohsuke/github/GHBranchProtectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,21 @@ public void testSignedCommits() throws Exception {
assertThat(protection.getRequiredSignatures(), is(false));
}

/**
* Checks with app ids are being populated
*
* @throws Exception
* the exception
*/
@Test
public void testChecksWithAppIds() throws Exception {
GHBranchProtection protection = branch.enableProtection()
.addRequiredChecksWithAppIds(new GHBranchProtection.Check("context", -1))
.enable();

assertThat(protection.getRequiredStatusChecks().getChecks().isEmpty(), is(false));
}

/**
* Test get protection.
*
Expand Down

0 comments on commit e4a7af4

Please sign in to comment.