Skip to content

Commit

Permalink
Merge pull request #33773 from Sgitario/33694_fix_tests
Browse files Browse the repository at this point in the history
Fix failing tests after removing the HTTPS port in Kubernetes
  • Loading branch information
iocanel authored Jun 1, 2023
2 parents ba2f517 + d4146a9 commit 64cc69e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ public void assertGeneratedResources() throws IOException {
});

assertThat(service.getSpec()).satisfies(spec -> {
assertThat(spec.getPorts()).hasSize(3);
assertThat(spec.getPorts()).hasSize(2);
assertThat(spec.getPorts()).satisfiesOnlyOnce(port -> assertThat(port.getName()).isEqualTo("http"));
assertThat(spec.getPorts()).satisfiesOnlyOnce(port -> assertThat(port.getName()).isEqualTo("https"));
assertThat(spec.getPorts()).satisfiesOnlyOnce(port -> assertThat(port.getName()).isEqualTo("management"));
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ public void assertGeneratedResources() throws IOException {
});

assertThat(s.getSpec()).satisfies(spec -> {
assertThat(spec.getPorts()).hasSize(2);
assertThat(spec.getPorts()).hasSize(1);
assertThat(spec.getPorts()).satisfiesOnlyOnce(port -> assertThat(port.getName()).isEqualTo("http"));
assertThat(spec.getPorts()).satisfiesOnlyOnce(port -> assertThat(port.getName()).isEqualTo("https"));
});
});
}
Expand Down

0 comments on commit 64cc69e

Please sign in to comment.