diff --git a/tests/integration/targets/gcp_compute_route/tasks/autogen.yml b/tests/integration/targets/gcp_compute_route/tasks/autogen.yml index b687de9..bc32b37 100644 --- a/tests/integration/targets/gcp_compute_route/tasks/autogen.yml +++ b/tests/integration/targets/gcp_compute_route/tasks/autogen.yml @@ -87,6 +87,25 @@ assert: that: - result.changed == false +# --- +- name: update a route + google.cloud.gcp_compute_route: + name: "{{ resource_name }}" + dest_range: 192.168.6.0/28 + next_hop_gateway: global/gateways/default-internet-gateway + network: "{{ network }}" + tags: + - backends + - foobar + project: "{{ gcp_project }}" + auth_kind: "{{ gcp_cred_kind }}" + service_account_file: "{{ gcp_cred_file }}" + state: present + register: result +- name: assert changed is true + assert: + that: + - result.changed == true #---------------------------------------------------------- - name: delete a route google.cloud.gcp_compute_route: