Skip to content

Commit

Permalink
Add k3s:v1.17.17 test for backwards compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeens committed Oct 18, 2023
1 parent 03188a0 commit bbb2695
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@ public class Fabric8K3sContainerTest {

@Test
public void shouldStartAndHaveListableNode() {
runK3s(DockerImageName.parse("rancher/k3s:v1.21.3-k3s1"));
}

@Test
public void shouldStartAndHaveListableNode_backwardsCompat() {
runK3s(DockerImageName.parse("rancher/k3s:v1.17.17-k3s1"));
}

private void runK3s(DockerImageName k3sDockerImage) {
try (
// starting_k3s {
K3sContainer k3s = new K3sContainer(DockerImageName.parse("rancher/k3s:v1.21.3-k3s1"))
K3sContainer k3s = new K3sContainer(k3sDockerImage)
.withLogConsumer(new Slf4jLogConsumer(log))
// }
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ public class OfficialClientK3sContainerTest {

@Test
public void shouldStartAndHaveListableNode() throws IOException, ApiException {
runK3s(DockerImageName.parse("rancher/k3s:v1.21.3-k3s1"));
}

@Test
public void shouldStartAndHaveListableNode_backwardsCompat() throws IOException, ApiException {
runK3s(DockerImageName.parse("rancher/k3s:v1.17.17-k3s1"));
}

private void runK3s(DockerImageName k3sDockerImage) throws IOException, ApiException {
try (
// starting_k3s {
K3sContainer k3s = new K3sContainer(DockerImageName.parse("rancher/k3s:v1.21.3-k3s1"))
K3sContainer k3s = new K3sContainer(k3sDockerImage)
.withLogConsumer(new Slf4jLogConsumer(log))
// }
) {
Expand Down

0 comments on commit bbb2695

Please sign in to comment.