mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-21 07:40:22 -07:00
cs_service_offering: Implement customizable compute offers (#54597)
This commit is contained in:
parent
2ef0946370
commit
b0d0a3a2f8
2 changed files with 64 additions and 1 deletions
|
@ -181,3 +181,43 @@
|
|||
assert:
|
||||
that:
|
||||
- so is not changed
|
||||
|
||||
- name: create custom service offering
|
||||
cs_service_offering:
|
||||
name: custom
|
||||
display_text: custom offer
|
||||
is_customized: yes
|
||||
host_tags: eco
|
||||
storage_tags:
|
||||
- eco
|
||||
- backup
|
||||
storage_type: local
|
||||
register: so
|
||||
- name: verify create custom service offering
|
||||
assert:
|
||||
that:
|
||||
- so is changed
|
||||
- so.name == "custom"
|
||||
- so.display_text == "custom offer"
|
||||
- so.is_customized == True
|
||||
- so.cpu_number is not defined
|
||||
- so.cpu_speed is not defined
|
||||
- so.memory is not defined
|
||||
- so.host_tags == ['eco']
|
||||
- so.storage_tags == ['eco', 'backup']
|
||||
- so.storage_type == "local"
|
||||
|
||||
- name: remove custom service offering
|
||||
cs_service_offering:
|
||||
name: custom
|
||||
state: absent
|
||||
register: so
|
||||
- name: verify remove service offering
|
||||
assert:
|
||||
that:
|
||||
- so is changed
|
||||
- so.name == "custom"
|
||||
- so.display_text == "custom offer"
|
||||
- so.host_tags == ['eco']
|
||||
- so.storage_tags == ['eco', 'backup']
|
||||
- so.storage_type == "local"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue