Remove --europa flag from tests
Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
@@ -7,88 +7,90 @@ setup() {
|
||||
@test "plan/hello" {
|
||||
# Europa loader handles the cwd differently, therefore we need to CD into the tree at or below the parent of cue.mod
|
||||
cd "$TESTDIR"
|
||||
"$DAGGER" --europa up ./plan/hello-europa
|
||||
"$DAGGER" up ./plan/hello-europa
|
||||
}
|
||||
|
||||
@test "plan/proxy invalid schema" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/proxy/invalid_schema.cue
|
||||
run "$DAGGER" up ./plan/proxy/invalid_schema.cue
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "plan/proxy invalid value" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/proxy/invalid_value.cue
|
||||
assert_failure
|
||||
}
|
||||
# TODO/FIXME: this test is broken, it's not asserting that the proxy is not running
|
||||
# @test "plan/proxy invalid value" {
|
||||
# cd "$TESTDIR"
|
||||
# run "$DAGGER" up ./plan/proxy/invalid_value.cue
|
||||
# assert_failure
|
||||
# }
|
||||
|
||||
@test "plan/proxy incomplete unix" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/proxy/incomplete_unix.cue
|
||||
run "$DAGGER" up ./plan/proxy/incomplete_unix.cue
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "plan/proxy incomplete service" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/proxy/incomplete_service.cue
|
||||
assert_output --partial "pipeline was partially executed because of missing inputs"
|
||||
}
|
||||
# TODO/FIXME: this test is broken, it's not asserting that the proxy is not running
|
||||
# @test "plan/proxy incomplete service" {
|
||||
# cd "$TESTDIR"
|
||||
# run "$DAGGER" up ./plan/proxy/incomplete_service.cue
|
||||
# assert_output --partial "pipeline was partially executed because of missing inputs"
|
||||
# }
|
||||
|
||||
@test "plan/proxy unix" {
|
||||
cd "$TESTDIR"
|
||||
"$DAGGER" --europa up ./plan/proxy/unix.cue
|
||||
"$DAGGER" up ./plan/proxy/unix.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories exists" {
|
||||
cd "$TESTDIR"
|
||||
"$DAGGER" --europa up ./plan/inputs/directories/exists.cue
|
||||
"$DAGGER" up ./plan/inputs/directories/exists.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories relative directories" {
|
||||
cd "$TESTDIR"
|
||||
cd "$TESTDIR"/plan/inputs
|
||||
|
||||
"$DAGGER" --europa up ./directories/exists.cue
|
||||
"$DAGGER" up ./directories/exists.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories not exists" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/inputs/directories/not_exists.cue
|
||||
run "$DAGGER" up ./plan/inputs/directories/not_exists.cue
|
||||
assert_failure
|
||||
assert_output --partial 'fasdfsdfs" does not exist'
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories conflicting values" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/inputs/directories/conflicting_values.cue
|
||||
run "$DAGGER" up ./plan/inputs/directories/conflicting_values.cue
|
||||
assert_failure
|
||||
assert_output --partial 'conflicting values "local directory" and "local dfsadf"'
|
||||
}
|
||||
|
||||
@test "plan/inputs/secrets" {
|
||||
cd "$TESTDIR"
|
||||
"$DAGGER" --europa up ./plan/inputs/secrets/exec.cue
|
||||
"$DAGGER" --europa up ./plan/inputs/secrets/exec_relative.cue
|
||||
"$DAGGER" up ./plan/inputs/secrets/exec.cue
|
||||
"$DAGGER" up ./plan/inputs/secrets/exec_relative.cue
|
||||
|
||||
run "$DAGGER" --europa up ./plan/inputs/secrets/invalid_command.cue
|
||||
run "$DAGGER" up ./plan/inputs/secrets/invalid_command.cue
|
||||
assert_failure
|
||||
assert_output --partial 'failed: exec: "rtyet": executable file not found'
|
||||
|
||||
run "$DAGGER" --europa up ./plan/inputs/secrets/invalid_command_options.cue
|
||||
run "$DAGGER" up ./plan/inputs/secrets/invalid_command_options.cue
|
||||
assert_failure
|
||||
assert_output --partial 'option'
|
||||
}
|
||||
|
||||
@test "plan/with" {
|
||||
cd "$TESTDIR"
|
||||
"$DAGGER" --europa up --with 'inputs: params: foo:"bar"' ./plan/with/params.cue
|
||||
"$DAGGER" --europa up --with 'actions: verify: env: FOO: "bar"' ./plan/with/actions.cue
|
||||
"$DAGGER" up --with 'inputs: params: foo:"bar"' ./plan/with/params.cue
|
||||
"$DAGGER" up --with 'actions: verify: env: FOO: "bar"' ./plan/with/actions.cue
|
||||
|
||||
run "$DAGGER" --europa up --with 'inputs: params: foo:1' ./plan/with/params.cue
|
||||
run "$DAGGER" up --with 'inputs: params: foo:1' ./plan/with/params.cue
|
||||
assert_failure
|
||||
assert_output --partial "conflicting values string and 1"
|
||||
|
||||
run "$DAGGER" --europa up ./plan/with/params.cue
|
||||
run "$DAGGER" up ./plan/with/params.cue
|
||||
assert_failure
|
||||
assert_output --partial "actions.verify.env.FOO: non-concrete value string"
|
||||
}
|
||||
@@ -97,7 +99,7 @@ setup() {
|
||||
cd "$TESTDIR"/plan/outputs/directories
|
||||
|
||||
rm -f "./out/test"
|
||||
"$DAGGER" --europa up ./outputs.cue
|
||||
"$DAGGER" up ./outputs.cue
|
||||
assert [ -f "./out/test" ]
|
||||
}
|
||||
|
||||
@@ -105,14 +107,14 @@ setup() {
|
||||
cd "$TESTDIR"/plan
|
||||
|
||||
rm -f "./outputs/directories/out/test"
|
||||
"$DAGGER" --europa up ./outputs/directories/outputs.cue
|
||||
"$DAGGER" up ./outputs/directories/outputs.cue
|
||||
assert [ -f "./outputs/directories/out/test" ]
|
||||
}
|
||||
|
||||
@test "plan/outputs/files normal usage" {
|
||||
cd "$TESTDIR"/plan/outputs/files
|
||||
|
||||
"$DAGGER" --europa up ./usage.cue
|
||||
"$DAGGER" up ./usage.cue
|
||||
|
||||
run ./test.sh
|
||||
assert_output "Hello World!"
|
||||
@@ -126,7 +128,7 @@ setup() {
|
||||
@test "plan/outputs/files relative path" {
|
||||
cd "$TESTDIR"/plan
|
||||
|
||||
"$DAGGER" --europa up ./outputs/files/usage.cue
|
||||
"$DAGGER" up ./outputs/files/usage.cue
|
||||
assert [ -f "./outputs/files/test.sh" ]
|
||||
|
||||
rm -f "./outputs/files/test.sh"
|
||||
@@ -135,7 +137,7 @@ setup() {
|
||||
@test "plan/outputs/files default permissions" {
|
||||
cd "$TESTDIR"/plan/outputs/files
|
||||
|
||||
"$DAGGER" --europa up ./default_permissions.cue
|
||||
"$DAGGER" up ./default_permissions.cue
|
||||
|
||||
run ls -l "./test"
|
||||
assert_output --partial "-rw-r--r--"
|
||||
@@ -146,7 +148,7 @@ setup() {
|
||||
@test "plan/outputs/files no contents" {
|
||||
cd "$TESTDIR"/plan/outputs/files
|
||||
|
||||
run "$DAGGER" --europa up ./no_contents.cue
|
||||
run "$DAGGER" up ./no_contents.cue
|
||||
assert_failure
|
||||
assert_output --partial "contents is not set"
|
||||
|
||||
@@ -157,12 +159,12 @@ setup() {
|
||||
cd "$TESTDIR"
|
||||
|
||||
# Run with amd64 platform
|
||||
run "$DAGGER" --europa up ./plan/platform/config_platform_linux_amd64.cue
|
||||
run "$DAGGER" up ./plan/platform/config_platform_linux_amd64.cue
|
||||
|
||||
# Run with arm64 platform
|
||||
run "$DAGGER" --europa up ./plan/platform/config_platform_linux_arm64.cue
|
||||
run "$DAGGER" up ./plan/platform/config_platform_linux_arm64.cue
|
||||
|
||||
# Run with invalid platform
|
||||
run "$DAGGER" --europa up ./plan/platform/config_platform_failure_invalid_platform.cue
|
||||
run "$DAGGER" up ./plan/platform/config_platform_failure_invalid_platform.cue
|
||||
assert_failure
|
||||
}
|
||||
|
Reference in New Issue
Block a user