mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-15 00:02:28 +02:00
Move all tests to single directory "tests"
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
1
tests/integration/interpolation/.env
Normal file
1
tests/integration/interpolation/.env
Normal file
@ -0,0 +1 @@
|
||||
DOT_ENV_VARIABLE=This value is from the .env file
|
@ -0,0 +1,8 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
variables:
|
||||
image: busybox
|
||||
command: ["/bin/busybox", "sh", "-c", "export | grep EXAMPLE"]
|
||||
environment:
|
||||
EXAMPLE_COLON_QUESTION_ERROR: ${NOT_A_VARIABLE:?Missing variable}
|
||||
|
@ -0,0 +1,8 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
variables:
|
||||
image: busybox
|
||||
command: ["/bin/busybox", "sh", "-c", "export | grep EXAMPLE"]
|
||||
environment:
|
||||
EXAMPLE_QUESTION_ERROR: ${NOT_A_VARIABLE?Missing variable}
|
||||
|
14
tests/integration/interpolation/docker-compose.yml
Normal file
14
tests/integration/interpolation/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
variables:
|
||||
image: busybox
|
||||
command: ["/bin/busybox", "sh", "-c", "export | grep EXAMPLE"]
|
||||
environment:
|
||||
EXAMPLE_VARIABLE: "Host user: $USER"
|
||||
EXAMPLE_BRACES: "Host user: ${USER}"
|
||||
EXAMPLE_COLON_DASH_DEFAULT: ${NOT_A_VARIABLE:-My default}
|
||||
EXAMPLE_DASH_DEFAULT: ${NOT_A_VARIABLE-My other default}
|
||||
EXAMPLE_DOT_ENV: $DOT_ENV_VARIABLE
|
||||
EXAMPLE_LITERAL: This is a $$literal
|
||||
EXAMPLE_EMPTY: $NOT_A_VARIABLE
|
||||
|
Reference in New Issue
Block a user