mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-28 07:31:29 -07:00
feat: add support for using application default credentials when running integration tests
This commit is contained in:
parent
611e6d96db
commit
bf74697b3f
90 changed files with 856 additions and 793 deletions
|
@ -23,7 +23,7 @@
|
|||
config: regional-us-central1
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: present
|
||||
register: instance
|
||||
- name: delete a database
|
||||
|
@ -32,7 +32,7 @@
|
|||
instance: "{{ instance }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a database
|
||||
|
@ -41,7 +41,7 @@
|
|||
instance: "{{ instance }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: present
|
||||
register: result
|
||||
- name: assert changed is true
|
||||
|
@ -53,7 +53,7 @@
|
|||
# instance: "{{ instance }}"
|
||||
# project: "{{ gcp_project }}"
|
||||
# auth_kind: "{{ gcp_cred_kind }}"
|
||||
# service_account_file: "{{ gcp_cred_file }}"
|
||||
# service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
# scopes:
|
||||
# - https://www.googleapis.com/auth/spanner.admin
|
||||
# register: results
|
||||
|
@ -68,7 +68,7 @@
|
|||
instance: "{{ instance }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: present
|
||||
register: result
|
||||
- name: assert changed is false
|
||||
|
@ -82,7 +82,7 @@
|
|||
instance: "{{ instance }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: absent
|
||||
register: result
|
||||
- name: assert changed is true
|
||||
|
@ -98,7 +98,7 @@
|
|||
# instance: "{{ instance }}"
|
||||
# project: "{{ gcp_project }}"
|
||||
# auth_kind: "{{ gcp_cred_kind }}"
|
||||
# service_account_file: "{{ gcp_cred_file }}"
|
||||
# service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
# scopes:
|
||||
# - https://www.googleapis.com/auth/spanner.admin
|
||||
# register: results
|
||||
|
@ -113,7 +113,7 @@
|
|||
instance: "{{ instance }}"
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: absent
|
||||
register: result
|
||||
- name: assert changed is false
|
||||
|
@ -133,7 +133,7 @@
|
|||
config: regional-us-central1
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
service_account_file: "{{ gcp_cred_file | default(omit) }}"
|
||||
state: absent
|
||||
register: instance
|
||||
ignore_errors: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue