Compare commits
2 Commits
ci/d4-reci
...
regression
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e03499ff1 | |||
| 5a481cc1f6 |
@ -4,6 +4,7 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nginx:1.29.0
|
image: nginx:1.29.0
|
||||||
|
command: ["sh", "-c", "mkdir -p /usr/share/nginx/html/.backup-data && echo backup-placeholder > /usr/share/nginx/html/.backup-data/placeholder.txt && exec nginx -g 'daemon off;'"]
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
deploy:
|
deploy:
|
||||||
@ -21,7 +22,7 @@ services:
|
|||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.11.0+1.29.0"
|
- "coop-cloud.${STACK_NAME}.version=1.11.0+1.29.0"
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.path=/usr/share/nginx/html"
|
- "backupbot.backup.path=/usr/share/nginx/html/.backup-data"
|
||||||
environment:
|
environment:
|
||||||
- DEFAULT_CONF_FILE=/etc/nginx/conf.d/default.conf
|
- DEFAULT_CONF_FILE=/etc/nginx/conf.d/default.conf
|
||||||
- REDIRECT_FROM_PATH
|
- REDIRECT_FROM_PATH
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
"""Recipe-local test shipped by the recipe repo (D4). Runs against the LIVE deployment via the
|
|
||||||
cc-ci contract env vars CCCI_BASE_URL / CCCI_APP_DOMAIN."""
|
|
||||||
import os, ssl, urllib.request
|
|
||||||
|
|
||||||
|
|
||||||
def test_recipe_local_serves_content():
|
|
||||||
base = os.environ["CCCI_BASE_URL"]
|
|
||||||
ctx = ssl.create_default_context(); ctx.check_hostname = False; ctx.verify_mode = ssl.CERT_NONE
|
|
||||||
with urllib.request.urlopen(base, timeout=15, context=ctx) as r:
|
|
||||||
body = r.read().decode(errors="replace")
|
|
||||||
assert r.status == 200
|
|
||||||
assert "nginx" in body.lower(), "recipe-local: expected the served nginx page"
|
|
||||||
Reference in New Issue
Block a user