aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2023-02-07 22:45:48 +0300
committerGitHub <noreply@github.com>2023-02-07 22:45:48 +0300
commit4a9929f96485061e3778b35848e21d7c3c193480 (patch)
tree7f483a2cacb4aaa431e7bcf1ae0d52c454f1d3f5 /test
parent36d7664ebab393f0033bbc25394c67e3aed3efb1 (diff)
kubectl-helm-minikube: Allow none (#442)feature_kubectl-helm-minikube_1.1.4
Diffstat (limited to 'test')
-rw-r--r--test/kubectl-helm-minikube/install_only_kubectl.sh22
-rw-r--r--test/kubectl-helm-minikube/scenarios.json12
-rwxr-xr-xtest/kubectl-helm-minikube/test.sh1
3 files changed, 35 insertions, 0 deletions
diff --git a/test/kubectl-helm-minikube/install_only_kubectl.sh b/test/kubectl-helm-minikube/install_only_kubectl.sh
new file mode 100644
index 0000000..442ef64
--- /dev/null
+++ b/test/kubectl-helm-minikube/install_only_kubectl.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+set +e
+ kubectl
+ exit_code=$?
+ check "kubectl-is-not-installed" bash -c "echo ${exit_code} | grep 127"
+
+ helm version
+ exit_code=$?
+ check "helm-is-not-installed" bash -c "echo ${exit_code} | grep 127"
+
+ minikube version
+ exit_code=$?
+ check "minikube is-not-installed" bash -c "echo ${exit_code} | grep 127"
+set -e
+
+# Report result
+reportResults
diff --git a/test/kubectl-helm-minikube/scenarios.json b/test/kubectl-helm-minikube/scenarios.json
new file mode 100644
index 0000000..08ff8cc
--- /dev/null
+++ b/test/kubectl-helm-minikube/scenarios.json
@@ -0,0 +1,12 @@
+{
+ "install_only_kubectl": {
+ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
+ "features": {
+ "kubectl-helm-minikube": {
+ "version": "none",
+ "helm": "none",
+ "minikube": "none"
+ }
+ }
+ }
+}
diff --git a/test/kubectl-helm-minikube/test.sh b/test/kubectl-helm-minikube/test.sh
index 94a024a..9dc4141 100755
--- a/test/kubectl-helm-minikube/test.sh
+++ b/test/kubectl-helm-minikube/test.sh
@@ -8,6 +8,7 @@ source dev-container-features-test-lib
# Definition specific tests
check "kube" kubectl
check "helm" helm version
+check "minikune" minikube version
# Report result
reportResults \ No newline at end of file