Assume http instead of https
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user