tests: updating the route test

validating the update of a route works as per concerns raised in #542
This commit is contained in:
Yusuke Tsutsumi 2023-01-14 19:57:41 +00:00 committed by Yusuke Tsutsumi
parent 5d56d3f2d2
commit 75d4ded736

View file

@ -87,6 +87,25 @@
assert: assert:
that: that:
- result.changed == false - 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 - name: delete a route
google.cloud.gcp_compute_route: google.cloud.gcp_compute_route: