added tests for push-container with login
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -84,6 +84,11 @@ 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
|
||||
assert_success
|
||||
}
|
||||
|
Reference in New Issue
Block a user