Skip to content

Commit

Permalink
increased test coverage to handle verify set is working correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Sep 15, 2023
1 parent 0d278b0 commit 5b00365
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ void testInstallChartOptionsBuilder() {
.passCredentials(true)
.password("password")
.repo("repo")
.set(Set.of("set"))
.set(Set.of("set", "livenessProbe.exec.command=[cat,docroot/CHANGELOG.txt]"))
.skipCrds(true)
.timeout("timeout")
.username("username")
.values(Set.of("values"))
.values(Set.of("values1", "values2"))
.verify(true)
.version("version")
.waitFor(true)
Expand All @@ -57,11 +57,13 @@ void testInstallChartOptionsBuilder() {
assertTrue(options.passCredentials());
assertEquals("password", options.password());
assertEquals("repo", options.repo());
assertEquals("set", options.set().stream().findFirst().orElse(null));
assertTrue(options.set().stream().anyMatch("livenessProbe.exec.command=[cat,docroot/CHANGELOG.txt]"::equals));
assertTrue(options.set().stream().anyMatch("set"::equals));
assertTrue(options.skipCrds());
assertEquals("timeout", options.timeout());
assertEquals("username", options.username());
assertEquals("values", options.values().stream().findFirst().orElse(null));
assertTrue(options.values().stream().anyMatch("values1"::equals));
assertTrue(options.values().stream().anyMatch("values2"::equals));
assertTrue(options.verify());
assertEquals("version", options.version());
assertTrue(options.waitFor());
Expand Down

0 comments on commit 5b00365

Please sign in to comment.