Assume http instead of https
This commit is contained in:
@@ -64,7 +64,7 @@ tests:
|
|||||||
template: templates/job.yaml
|
template: templates/job.yaml
|
||||||
set:
|
set:
|
||||||
enabled: true
|
enabled: true
|
||||||
giteaRootURL: "https://git.example.com:8443"
|
giteaRootURL: "http://git.example.com:80"
|
||||||
provisioning:
|
provisioning:
|
||||||
enabled: true
|
enabled: true
|
||||||
persistence:
|
persistence:
|
||||||
@@ -84,6 +84,6 @@ tests:
|
|||||||
path: spec.template.spec.initContainers[0].command[2]
|
path: spec.template.spec.initContainers[0].command[2]
|
||||||
value: |
|
value: |
|
||||||
echo 'Waiting for gitea...'
|
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
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ tests:
|
|||||||
- it: renders a StatefulSet http (with correct GITEA_INSTANCE_URL env from giteaRootURL)
|
- it: renders a StatefulSet http (with correct GITEA_INSTANCE_URL env from giteaRootURL)
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
set:
|
set:
|
||||||
giteaRootURL: "https://git.example.com"
|
giteaRootURL: "http://git.example.com"
|
||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: "my-secret"
|
existingSecret: "my-secret"
|
||||||
existingSecretKey: "my-secret-key"
|
existingSecretKey: "my-secret-key"
|
||||||
@@ -88,18 +88,18 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].env[4]
|
path: spec.template.spec.containers[0].env[4]
|
||||||
value:
|
value:
|
||||||
name: GITEA_INSTANCE_URL
|
name: GITEA_INSTANCE_URL
|
||||||
value: "https://git.example.com"
|
value: "http://git.example.com"
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[0].command[2]
|
path: spec.template.spec.initContainers[0].command[2]
|
||||||
value: |
|
value: |
|
||||||
echo 'Waiting for gitea...'
|
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
|
sleep 2
|
||||||
done
|
done
|
||||||
- it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL)
|
- it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL)
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
set:
|
set:
|
||||||
giteaRootURL: "https://git.example.com"
|
giteaRootURL: "http://git.example.com"
|
||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: "my-secret"
|
existingSecret: "my-secret"
|
||||||
existingSecretKey: "my-secret-key"
|
existingSecretKey: "my-secret-key"
|
||||||
@@ -114,18 +114,18 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].env[4]
|
path: spec.template.spec.containers[0].env[4]
|
||||||
value:
|
value:
|
||||||
name: GITEA_INSTANCE_URL
|
name: GITEA_INSTANCE_URL
|
||||||
value: "https://git.example.com"
|
value: "http://git.example.com"
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[0].command[2]
|
path: spec.template.spec.initContainers[0].command[2]
|
||||||
value: |
|
value: |
|
||||||
echo 'Waiting for gitea...'
|
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
|
sleep 2
|
||||||
done
|
done
|
||||||
- it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL)
|
- it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL)
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
set:
|
set:
|
||||||
giteaRootURL: "https://git.example.com"
|
giteaRootURL: "http://git.example.com"
|
||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: "my-secret"
|
existingSecret: "my-secret"
|
||||||
existingSecretKey: "my-secret-key"
|
existingSecretKey: "my-secret-key"
|
||||||
@@ -140,12 +140,12 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].env[4]
|
path: spec.template.spec.containers[0].env[4]
|
||||||
value:
|
value:
|
||||||
name: GITEA_INSTANCE_URL
|
name: GITEA_INSTANCE_URL
|
||||||
value: "https://git.example.com"
|
value: "http://git.example.com"
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[0].command[2]
|
path: spec.template.spec.initContainers[0].command[2]
|
||||||
value: |
|
value: |
|
||||||
echo 'Waiting for gitea...'
|
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
|
sleep 2
|
||||||
done
|
done
|
||||||
- it: allows adding custom environment variables to the docker-in-docker container
|
- it: allows adding custom environment variables to the docker-in-docker container
|
||||||
|
|||||||
Reference in New Issue
Block a user