Skip to content

Commit

Permalink
fix: don't run helm native goals in unsupported OS
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Dec 9, 2024
1 parent 3d71a24 commit 3c7ad8a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
path: ./it/target/jkube-test-report.txt

minikube-legacy:
name: K8S
name: K8S (Minikube Legacy)
needs: build-jkube
runs-on: ubuntu-20.04
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;

import java.io.ByteArrayOutputStream;
import java.io.File;
Expand Down Expand Up @@ -118,6 +119,7 @@ void k8sHelmPush() throws Exception {

@Test
@DisplayName("k8s:helm-uninstall, no release present, display error message")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void k8sHelmUninstall_whenNoReleasePresent_thenErrorMessageDisplayed() throws Exception {
// Given
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Expand All @@ -133,6 +135,7 @@ void k8sHelmUninstall_whenNoReleasePresent_thenErrorMessageDisplayed() throws Ex
@Test
@Order(4)
@DisplayName("k8s:helm-install, should install the charts")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void k8sHelmInstall() throws Exception {
// Given
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Expand All @@ -150,6 +153,7 @@ void k8sHelmInstall() throws Exception {
@Test
@Order(5)
@DisplayName("k8s:helm-uninstall, should uninstall the charts")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void k8sHelmUninstall() throws Exception {
// Given
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;

import java.io.ByteArrayOutputStream;
import java.io.File;
Expand Down Expand Up @@ -101,6 +102,7 @@ void ocHelm() throws Exception {
@Test
@Order(3)
@DisplayName("oc:helm-push, should push the charts")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void ocHelmPush() throws Exception {
// Given
final Properties properties = properties(
Expand All @@ -120,6 +122,7 @@ void ocHelmPush() throws Exception {

@Test
@DisplayName("oc:helm-uninstall, no release present, display error message")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void ocHelmUninstall_whenNoReleasePresent_thenErrorMessageDisplayed() throws Exception {
// Given
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Expand All @@ -135,6 +138,7 @@ void ocHelmUninstall_whenNoReleasePresent_thenErrorMessageDisplayed() throws Exc
@Test
@Order(4)
@DisplayName("oc:helm-install, should install the charts")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void ocHelmInstall() throws Exception {
// Given
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Expand All @@ -152,6 +156,7 @@ void ocHelmInstall() throws Exception {
@Test
@Order(5)
@DisplayName("oc:helm-uninstall, should uninstall the charts")
@DisabledIfEnvironmentVariable(named = "ImageOS", matches = "ubuntu20")
void ocHelmUninstall() throws Exception {
// Given
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Expand Down

0 comments on commit 3c7ad8a

Please sign in to comment.