Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] integration testing setup #320

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
added first test
  • Loading branch information
bbensky committed Jul 17, 2024
commit a7da90ebe7bb04b2be39611d822cd95bb1ea2ff1
24 changes: 19 additions & 5 deletions e2e/testsuite.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
name: Nova Tests
description: Collection of e2e tests for Nova.
testcases:
- name: Title of First TestCase
- name: install helm charts
steps:
- script: echo 'foo'
- script: |
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
# helm install ingress-nginx-current ingress-nginx/ingress-nginx
helm install --version 4.6.0 ingress-nginx-old ingress-nginx/ingress-nginx
assertions:
- result.code ShouldEqual 0
- script: echo 'bar'

- name: nova_run
steps:
- type: exec
script: nova find --output-file output.json

- name: validate outdated chart version
steps:
- type: exec
script: |
jq '.helm[] | select(.release == "ingress-nginx-old" and .outdated == true)' ./output.json
assertions:
- result.systemout ShouldNotContainSubstring foo
- result.timeseconds ShouldBeLessThan 1
- result.code ShouldEqual 0
- result.systemoutjson ShouldNotBeEmpty