Skip to content

Commit

Permalink
Fix failing tests after removing the HTTPS port
Browse files Browse the repository at this point in the history
After quarkusio#33696 being merged, the port https is no longer bound by default.
The problem is that I merged quarkusio#33694 without rebasing and these two tests needed to be updated.
  • Loading branch information
Sgitario authored and sberyozkin committed Jun 21, 2023
1 parent 686f7a6 commit cea0812
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 cea0812

Please sign in to comment.