Refactored catalog_service{,_info} and auth modules

Replaced service_catalog return value in auth module with new
catalog_service_info module.

Change-Id: I1ca5082d643eb97e8cb951a4bccf92b78537d917
This commit is contained in:
Jakob Meng
2022-09-22 10:42:16 +02:00
parent 00ec3f1c92
commit 1ca6f208f7
8 changed files with 272 additions and 140 deletions

View File

@@ -0,0 +1,2 @@
expected_fields:
- auth_token

View File

@@ -2,5 +2,10 @@
- name: Authenticate to the cloud
openstack.cloud.auth:
cloud={{ cloud }}
register: auth
- debug: var=service_catalog
- name: Assert return values of auth module
assert:
that:
# allow new fields to be introduced but prevent fields from being removed
- expected_fields|difference(auth.keys())|length == 0