mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-28 02:34:30 +00:00
Makes stack module compatible with new sdk version
Change-Id: Iec99be0f422f1fab9b17e581b7b47a7540de749c
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
# template is searched related to playbook location or as absolute path
|
||||
template: "roles/orchestration/files/hello-world.yaml"
|
||||
name: "{{ stack_name }}"
|
||||
register: minimal_stack
|
||||
|
||||
- name: Assert fields returned by create stack
|
||||
assert:
|
||||
that: item in minimal_stack.stack
|
||||
loop: "{{ expected_fields }}"
|
||||
|
||||
- name: List stacks
|
||||
openstack.cloud.stack_info:
|
||||
@@ -21,6 +27,11 @@
|
||||
name: "{{ stack_name }}"
|
||||
register: test_stack
|
||||
|
||||
- name: Assert fields returned by stack info
|
||||
assert:
|
||||
that: item in test_stack.stack[0]
|
||||
loop: "{{ expected_fields }}"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- test_stack is defined
|
||||
|
||||
Reference in New Issue
Block a user