diff --git a/unittests/helm/job.yaml b/unittests/helm/job.yaml index bb2e0c5..d05763f 100644 --- a/unittests/helm/job.yaml +++ b/unittests/helm/job.yaml @@ -64,7 +64,7 @@ tests: template: templates/job.yaml set: enabled: true - giteaRootURL: "https://git.example.com:8443" + giteaRootURL: "http://git.example.com:80" provisioning: enabled: true persistence: @@ -84,6 +84,6 @@ tests: path: spec.template.spec.initContainers[0].command[2] value: | echo 'Waiting for gitea...' - while ! wget -qO- https://git.example.com:8443 > /dev/null; do + while ! wget -qO- http://git.example.com:80 > /dev/null; do sleep 2 done diff --git a/unittests/helm/statefulset.yaml b/unittests/helm/statefulset.yaml index 915859b..a4641ce 100644 --- a/unittests/helm/statefulset.yaml +++ b/unittests/helm/statefulset.yaml @@ -73,7 +73,7 @@ tests: - it: renders a StatefulSet http (with correct GITEA_INSTANCE_URL env from giteaRootURL) template: templates/statefulset.yaml set: - giteaRootURL: "https://git.example.com" + giteaRootURL: "http://git.example.com" enabled: true existingSecret: "my-secret" existingSecretKey: "my-secret-key" @@ -88,18 +88,18 @@ tests: path: spec.template.spec.containers[0].env[4] value: name: GITEA_INSTANCE_URL - value: "https://git.example.com" + value: "http://git.example.com" - equal: path: spec.template.spec.initContainers[0].command[2] value: | echo 'Waiting for gitea...' - while ! wget -qO- https://git.example.com > /dev/null; do + while ! wget -qO- http://git.example.com > /dev/null; do sleep 2 done - it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL) template: templates/statefulset.yaml set: - giteaRootURL: "https://git.example.com" + giteaRootURL: "http://git.example.com" enabled: true existingSecret: "my-secret" existingSecretKey: "my-secret-key" @@ -114,18 +114,18 @@ tests: path: spec.template.spec.containers[0].env[4] value: name: GITEA_INSTANCE_URL - value: "https://git.example.com" + value: "http://git.example.com" - equal: path: spec.template.spec.initContainers[0].command[2] value: | echo 'Waiting for gitea...' - while ! wget -qO- https://git.example.com > /dev/null; do + while ! wget -qO- http://git.example.com > /dev/null; do sleep 2 done - it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL) template: templates/statefulset.yaml set: - giteaRootURL: "https://git.example.com" + giteaRootURL: "http://git.example.com" enabled: true existingSecret: "my-secret" existingSecretKey: "my-secret-key" @@ -140,12 +140,12 @@ tests: path: spec.template.spec.containers[0].env[4] value: name: GITEA_INSTANCE_URL - value: "https://git.example.com" + value: "http://git.example.com" - equal: path: spec.template.spec.initContainers[0].command[2] value: | echo 'Waiting for gitea...' - while ! wget -qO- https://git.example.com > /dev/null; do + while ! wget -qO- http://git.example.com > /dev/null; do sleep 2 done - it: allows adding custom environment variables to the docker-in-docker container