From 993ee8582b563145ff979811cc47f4bdb8939794 Mon Sep 17 00:00:00 2001 From: kfox1111 Date: Wed, 20 Mar 2024 14:12:48 -0700 Subject: [PATCH] Change production example to be an integration test (#237) * Change production example to be an integration test The documentation is a better example then the test now. Separate the two. Signed-off-by: Kevin Fox * Fix job name reference Signed-off-by: Kevin Fox * Fix job name reference Signed-off-by: Kevin Fox * Update postgresql example Signed-off-by: Kevin Fox * Update mysql example Signed-off-by: Kevin Fox * Update nested and mysql Signed-off-by: Kevin Fox * Fix typo Signed-off-by: Kevin Fox * Add support for integration tests in the tests/integration dir Signed-off-by: Kevin Fox * Fix split issue and typo Signed-off-by: Kevin Fox * Fix split issue Signed-off-by: Kevin Fox * Try folding example your values into bash so that its not laying around in an fs for a user to accidently use. Signed-off-by: Kevin Fox * Fix test Signed-off-by: Kevin Fox * Fix test Signed-off-by: Kevin Fox * Fix test Signed-off-by: Kevin Fox * Fix test Signed-off-by: Kevin Fox * Fix test Signed-off-by: Kevin Fox * Fix test Signed-off-by: Kevin Fox * Cleanup Signed-off-by: Kevin Fox --------- Signed-off-by: Kevin Fox Signed-off-by: kfox1111 Co-authored-by: Faisal Memon --- .github/tests/common.sh | 20 ++++++ .github/workflows/helm-chart-ci.yaml | 2 +- examples/external-mysql/README.md | 10 ++- examples/external-mysql/run-tests.sh | 2 +- examples/external-postgresql/README.md | 10 ++- examples/external-postgresql/run-tests.sh | 4 +- .../values-node-pod-antiaffinity.yaml | 0 examples/nested/run-tests.sh | 2 +- examples/production/README.md | 66 ------------------- examples/production/example-your-values.yaml | 22 ------- examples/production/values.yaml | 4 -- .../integration}/production/run-tests.sh | 8 +-- ...federation-https-spiffe-ingress-nginx.yaml | 0 ...se-federation-https-web-ingress-nginx.yaml | 0 ...oidc-discovery-provider-ingress-nginx.yaml | 0 ...ues-expose-spire-server-ingress-nginx.yaml | 0 16 files changed, 36 insertions(+), 114 deletions(-) rename examples/{production => misc}/values-node-pod-antiaffinity.yaml (100%) delete mode 100644 examples/production/README.md delete mode 100644 examples/production/example-your-values.yaml delete mode 100644 examples/production/values.yaml rename {examples => tests/integration}/production/run-tests.sh (95%) rename {examples => tests/integration}/production/values-expose-federation-https-spiffe-ingress-nginx.yaml (100%) rename {examples => tests/integration}/production/values-expose-federation-https-web-ingress-nginx.yaml (100%) rename {examples => tests/integration}/production/values-expose-spiffe-oidc-discovery-provider-ingress-nginx.yaml (100%) rename {examples => tests/integration}/production/values-expose-spire-server-ingress-nginx.yaml (100%) diff --git a/.github/tests/common.sh b/.github/tests/common.sh index 6cb4f6e02..3211e3863 100755 --- a/.github/tests/common.sh +++ b/.github/tests/common.sh @@ -70,3 +70,23 @@ $(helm ls -A | sed 's/\t/ | /g' | sed 's/^/| /' | sed 's/$/ |/' | sed '/^| NAME. EOF } + +# Used just for testing. You should provide your own values as described in the install instructions. +common_test_your_values () { +cat > /tmp/$$.example-your-values.yaml <