forked from toolshed/abra-test-recipe
Compare commits
11 Commits
09f1708a4d
...
180122518f
Author | SHA1 | Date | |
---|---|---|---|
180122518f | |||
9d82fb8704 | |||
8f9dd819f7 | |||
0c13aae2e4 | |||
1e8ec66339 | |||
1a0747eda2 | |||
e8e9e1f690 | |||
da3359aec5 | |||
ef18b9d3fc | |||
44756cd11c | |||
1921ebce8f |
10
.env.sample
10
.env.sample
@ -1,14 +1,20 @@
|
||||
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`'
|
||||
|
||||
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
|
||||
|
||||
NETWORK_WITH_COMMENT=BAZ # should be removed
|
||||
#SECRET_LONG_SECRET_VERSION=v1
|
||||
|
@ -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
11
abra.sh
@ -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
7
compose.extra_env.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
environment:
|
||||
- FOO=bar
|
12
compose.long_secret.yml
Normal file
12
compose.long_secret.yml
Normal 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}
|
@ -4,8 +4,11 @@ version: "3.8"
|
||||
services:
|
||||
app:
|
||||
image: nginx:1.21.0
|
||||
environment:
|
||||
- TEST_ENV_STANZA=DING # should be removed
|
||||
networks:
|
||||
- proxy
|
||||
- net_with_comment
|
||||
volumes:
|
||||
- test-volume:/var/www
|
||||
secrets:
|
||||
@ -42,7 +45,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}
|
||||
@ -53,3 +56,5 @@ volumes:
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
net_with_comment:
|
||||
name: ${NETWORK_WITH_COMMENT}
|
||||
|
Loading…
x
Reference in New Issue
Block a user