mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-29 19:24:29 +00:00
Added assertions on endpoint module results
Signed-off-by: Jakob Meng <code@jakobmeng.de> Change-Id: If8befd62ac59ef19debf0d63abe76f11b47c2da3
This commit is contained in:
@@ -9,10 +9,13 @@
|
||||
state: present
|
||||
register: endpoint_test
|
||||
|
||||
- name: Ensure service endpoint was created
|
||||
- debug: var=endpoint_test
|
||||
|
||||
- name: Assert return values of endpoint module
|
||||
assert:
|
||||
that:
|
||||
- endpoint_test.endpoint.id is defined
|
||||
# allow new fields to be introduced but prevent fields from being removed
|
||||
- expected_fields|difference(endpoint_test.endpoint.keys())|length == 0
|
||||
|
||||
- name: Ensure service have the proper endpoint
|
||||
assert:
|
||||
|
||||
Reference in New Issue
Block a user