Update op.#PushContainer test to use secrets
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
@@ -81,14 +81,8 @@ setup() {
|
||||
}
|
||||
|
||||
@test "op.#PushContainer" {
|
||||
skip_unless_secrets_available "$TESTDIR"/ops/push-container/inputs.yaml
|
||||
|
||||
# ensure the tests fail without credentials
|
||||
run "$DAGGER" compute "$TESTDIR"/ops/push-container/valid
|
||||
assert_failure
|
||||
|
||||
# check that they succeed with the credentials
|
||||
run "$DAGGER" compute --input-yaml "$TESTDIR"/ops/push-container/inputs.yaml "$TESTDIR"/ops/push-container
|
||||
dagger_new_with_env "$TESTDIR"/ops/push-container/
|
||||
run "$DAGGER" up -e push-container
|
||||
assert_success
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user