mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-05 10:20:26 -07:00
tests: fix gcp_storage_bucket test
- gcp_storage_bucket had a hard-coded bucket name. Making it based on the GCP project name to allow some attribution in the case of garbage detection.
This commit is contained in:
parent
cfbc4d8be5
commit
d03d7beda2
3 changed files with 7 additions and 8 deletions
|
@ -1,2 +1 @@
|
|||
cloud/gcp
|
||||
unsupported
|
||||
cloud/gcp
|
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
resource_name: "{{ resource_prefix }}"
|
||||
resource_name: "{{ gcp_project }}-ansible-test-bucket"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# Pre-test setup
|
||||
- name: delete a bucket
|
||||
google.cloud.gcp_storage_bucket:
|
||||
name: ansible-storage-module
|
||||
name: "{{ resource_name }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
|
@ -23,7 +23,7 @@
|
|||
#----------------------------------------------------------
|
||||
- name: create a bucket
|
||||
google.cloud.gcp_storage_bucket:
|
||||
name: ansible-storage-module
|
||||
name: "{{ resource_name }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
|
@ -36,7 +36,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
- name: create a bucket that already exists
|
||||
google.cloud.gcp_storage_bucket:
|
||||
name: ansible-storage-module
|
||||
name: "{{ resource_name }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
|
@ -49,7 +49,7 @@
|
|||
#----------------------------------------------------------
|
||||
- name: delete a bucket
|
||||
google.cloud.gcp_storage_bucket:
|
||||
name: ansible-storage-module
|
||||
name: "{{ resource_name }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
|
@ -62,7 +62,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
- name: delete a bucket that does not exist
|
||||
google.cloud.gcp_storage_bucket:
|
||||
name: ansible-storage-module
|
||||
name: "{{ resource_name }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue