Compare commits

...

17 Commits

7 changed files with 45 additions and 8 deletions

View File

@ -1,14 +1,18 @@
TYPE=abra-integration-test-recipe
TYPE=abra-test-recipe
DOMAIN=abra-integration-test-recipe.example.com
DOMAIN=abra-test-recipe.example.com
COMPOSE_FILE="compose.yml"
#COMPOSE_FILE="$COMPOSE_FILE:compose.extra_env.yml"
## Domain aliases
#EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`'
#EXTRA_DOMAINS=', `www.abra-test-recipe.example.com`'
LETS_ENCRYPT_ENV=production
WITH_COMMENT=foo # should be removed
SECRET_TEST_PASS_ONE_VERSION=v1
SECRET_TEST_PASS_TWO_VERSION=v1 # length=10
#SECRET_EXTRA_PASS_VERSION=v1
#SECRET_LONG_SECRET_VERSION=v1

View File

@ -1,6 +1,6 @@
# `abra-integration-test-recipe`
# `abra-test-recipe`
Test recipe used in the Abra integration test suite.
Simple app configuration used for the Abra test suite.
<!-- metadata -->

11
abra.sh
View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
export OUTER_FOO=baz
test_cmd(){
echo "baz"
}
@ -11,3 +13,12 @@ test_cmd_arg(){
test_cmd_args(){
echo "$1 $2"
}
test_cmd_export(){
export INNER_FOO=bar
}
# NOTE(d1): ensure "export ()" doesn't match on parsing of abra.sh env vars
test_cmd_export (){
export INNER_BAZ=bing
}

7
compose.extra_env.yml Normal file
View File

@ -0,0 +1,7 @@
---
version: "3.8"
services:
app:
environment:
- FOO=bar

12
compose.long_secret.yml Normal file
View File

@ -0,0 +1,12 @@
---
version: "3.8"
services:
app:
secrets:
- long_secret
secrets:
long_secret:
external: true
name: ${STACK_NAME}_long_secret1234567890_${SECRET_LONG_SECRET_VERSION}

View File

@ -3,7 +3,9 @@ version: "3.8"
services:
app:
image: nginx:1.20.0
image: nginx:1.21.0
environment:
- TEST_ENV_STANZA=DING # should be removed
networks:
- proxy
volumes:
@ -21,7 +23,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.0+1.20.0"
- "coop-cloud.${STACK_NAME}.version=0.3.1+1.21.0"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
- "backupbot.backup=true"
@ -42,7 +44,7 @@ services:
secrets:
test_pass_one:
external: true
name: ${STACK_NAME}_test_pass_one_${SECRET_TEST_PASS_ONE_VERSION}
name: ${STACK_NAME}_test_pass_one_${SECRET_TEST_PASS_ONE_VERSION} # should be removed
test_pass_two:
external: true
name: ${STACK_NAME}_test_pass_two_${SECRET_TEST_PASS_TWO_VERSION}

1
release/0.3.0+1.21.0 Normal file
View File

@ -0,0 +1 @@
A release note added after the release