diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 42b6188..385293b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,12 +17,20 @@ jobs: chmod +x ./scripts/install.sh ./scripts/install.sh - - name: apply resources and verify - run: | + kubectl config view -o yaml + # we might need to set KUBECONFIG here as well + # - name: apply resources and verify + # run: | + + # chmod +x ./scripts/set-env-vars.sh + # . ./scripts/set-env-vars.sh - chmod +x ./scripts/set-env-vars.sh - . ./scripts/set-env-vars.sh + # echo $NAMESPACE + # chmod +x ./scripts/verify.sh + # ./scripts/verify.sh - echo $NAMESPACE - chmod +x ./scripts/verify.sh - ./scripts/verify.sh +# now I want to use both kuttl and terratest to validate the tests +# so I probably need the following +# in the tests dir -> split it out +# need a script to run the tests +# probably needs an image as well - unless we can install on ubuntu diff --git a/scripts/install.sh b/scripts/install.sh index c59cad5..21ae9b2 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -12,3 +12,8 @@ sudo chown runner $HOME/.kube/config sudo chmod go-r $HOME/.kube/config kubectl version +# install kuttl +curl -SSL "https://github.com/kudobuilder/kuttl/releases/download/v0.15.0/kuttl_0.15.0_linux_x86_64.tar.gz" | tar -xz -C /usr/local/bin + +kubectl kuttl version + diff --git a/scripts/verify.sh b/scripts/verify.sh index 6c822d2..fd3fb00 100644 --- a/scripts/verify.sh +++ b/scripts/verify.sh @@ -7,4 +7,7 @@ kubectl get ns kustomize build . | envsubst '$NAMESPACE' | kubectl apply -f- kubectl get ns -kubectl get pods -n $NAMESPACE \ No newline at end of file +kubectl get pods -n $NAMESPACE + +# need to invoke the tests here +# also wait for resources to come up \ No newline at end of file diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 0000000..e69de29