Add secrets deployment for GCP

Signed-off-by: Benjamin Grandfond <benjamin.grandfond@gmail.com>
This commit is contained in:
Benjamin Grandfond
2021-08-30 00:43:17 +02:00
committed by Sam Alba
parent f29de14a2f
commit 45ea30da55
6 changed files with 154 additions and 0 deletions

View File

@@ -172,6 +172,16 @@ setup() {
dagger -e google-gke up
}
@test "google cloud: secretmanager" {
run dagger -e google-secretmanager up
assert_success
# ensure the secret has been created
run dagger query -e google-secretmanager TestSecrets.secret.references.databasePassword -f text
assert_success
assert_output --regexp '^projects\/[0-9]+\/secrets\/databasePassword'
}
@test "google cloud: cloudrun" {
dagger -e google-cloudrun up
}