Skip to content

Commit a1b9e17

Browse files
authored
Merge pull request #656 from ansible-collections/add-pubsub-update-test
Add a test that updates a pubsub subscription
2 parents e23c44c + cc17840 commit a1b9e17

File tree

1 file changed

+15
-0
lines changed
  • tests/integration/targets/gcp_pubsub_subscription/tasks

1 file changed

+15
-0
lines changed

tests/integration/targets/gcp_pubsub_subscription/tasks/autogen.yml

+15
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,21 @@
7373
that:
7474
- result.changed == false
7575
#----------------------------------------------------------
76+
- name: Update a subscription
77+
google.cloud.gcp_pubsub_subscription:
78+
name: "{{ resource_name }}"
79+
topic: "{{ topic }}"
80+
ack_deadline_seconds: 60
81+
project: "{{ gcp_project }}"
82+
auth_kind: "{{ gcp_cred_kind }}"
83+
service_account_file: "{{ gcp_cred_file | default(omit) }}"
84+
state: present
85+
register: result
86+
- name: Assert changed is true
87+
ansible.builtin.assert:
88+
that:
89+
- result.changed == true
90+
#----------------------------------------------------------
7691
- name: Delete a subscription
7792
google.cloud.gcp_pubsub_subscription:
7893
name: "{{ resource_name }}"

0 commit comments

Comments
 (0)