diff options
author | The Magician <magic-modules@google.com> | 2019-04-29 12:50:30 -0700 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2019-04-29 15:50:29 -0400 |
commit | ef3607f1e7502badc95eb61e8c4f84878436f4ba (patch) | |
tree | db33a031e7984baf151b2a4198ddf5c1ac2bd70a /test/integration/targets/gcp_iam_service_account | |
parent | 4a371ec84e16feea12b03d78cf3435bb4a0b6164 (diff) | |
download | ansible-ef3607f1e7502badc95eb61e8c4f84878436f4ba.tar.gz |
Bug fixes for GCP modules (#55361)
Diffstat (limited to 'test/integration/targets/gcp_iam_service_account')
-rw-r--r-- | test/integration/targets/gcp_iam_service_account/defaults/main.yml | 4 | ||||
-rw-r--r-- | test/integration/targets/gcp_iam_service_account/tasks/main.yml | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/integration/targets/gcp_iam_service_account/defaults/main.yml b/test/integration/targets/gcp_iam_service_account/defaults/main.yml index aa87a2a8e0..5595dfb48e 100644 --- a/test/integration/targets/gcp_iam_service_account/defaults/main.yml +++ b/test/integration/targets/gcp_iam_service_account/defaults/main.yml @@ -1,3 +1,3 @@ --- -# defaults file -resource_name: '{{resource_prefix}}' +resource_name: "{{ resource_prefix }}" +sa_name: sa-{{ 100000 | random }}@graphite-playground.google.com.iam.gserviceaccount.com diff --git a/test/integration/targets/gcp_iam_service_account/tasks/main.yml b/test/integration/targets/gcp_iam_service_account/tasks/main.yml index 496b31b15b..f302e82e97 100644 --- a/test/integration/targets/gcp_iam_service_account/tasks/main.yml +++ b/test/integration/targets/gcp_iam_service_account/tasks/main.yml @@ -15,7 +15,7 @@ # Pre-test setup - name: delete a service account gcp_iam_service_account: - name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"' + name: "{{ sa_name }}" display_name: My Ansible test key project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" @@ -24,7 +24,7 @@ #---------------------------------------------------------- - name: create a service account gcp_iam_service_account: - name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"' + name: "{{ sa_name }}" display_name: My Ansible test key project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" @@ -50,7 +50,7 @@ # ---------------------------------------------------------------------------- - name: create a service account that already exists gcp_iam_service_account: - name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"' + name: "{{ sa_name }}" display_name: My Ansible test key project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" @@ -64,7 +64,7 @@ #---------------------------------------------------------- - name: delete a service account gcp_iam_service_account: - name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"' + name: "{{ sa_name }}" display_name: My Ansible test key project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" @@ -90,7 +90,7 @@ # ---------------------------------------------------------------------------- - name: delete a service account that does not exist gcp_iam_service_account: - name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"' + name: "{{ sa_name }}" display_name: My Ansible test key project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" |