Skip to content

Commit

Permalink
tests: rename disk offering
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed Sep 27, 2024
1 parent c87ca4f commit cadc966
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 47 deletions.
2 changes: 0 additions & 2 deletions tests/integration/targets/cs_disk_offering/aliases

This file was deleted.

3 changes: 3 additions & 0 deletions tests/integration/targets/disk_offering/aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cloud/cs
cs/group1
cs/group3
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
- name: setup disk offering
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
state: absent
register: do
- name: verify setup disk offering
assert:
that:
- do is successful
- do is successful

- name: create disk offering in check mode
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
disk_size: 10
storage_tags:
Expand All @@ -22,10 +22,10 @@
- name: verify create disk offering in check mode
assert:
that:
- do is changed
- do is changed

- name: create disk offering
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
disk_size: 10
storage_tags:
Expand All @@ -36,13 +36,13 @@
- name: verify create disk offering
assert:
that:
- do is changed
- do.name == "Small"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is changed
- do.name == "Small"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: create disk offering idempotence
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
disk_size: 10
storage_tags:
Expand All @@ -53,13 +53,13 @@
- name: verify create disk offering idempotence
assert:
that:
- do is not changed
- do.name == "Small"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is not changed
- do.name == "Small"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: update disk offering in check mode
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
disk_size: 10
display_text: Small 10GB
Expand All @@ -68,76 +68,76 @@
- name: verify create update offering in check mode
assert:
that:
- do is changed
- do.name == "Small"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is changed
- do.name == "Small"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: update disk offering
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
disk_size: 10
display_text: Small 10GB
register: do
- name: verify update disk offerin
assert:
that:
- do is changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: update disk offering idempotence
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
disk_size: 10
display_text: Small 10GB
register: do
- name: verify update disk offering idempotence
assert:
that:
- do is not changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is not changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: remove disk offering in check mode
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
state: absent
check_mode: true
register: do
- name: verify remove disk offering in check mode
assert:
that:
- do is changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: remove disk offering
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
state: absent
register: do
- name: verify remove disk offering
assert:
that:
- do is changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"
- do is changed
- do.name == "Small"
- do.display_text == "Small 10GB"
- do.storage_tags == ['eco', 'backup']
- do.storage_type == "local"

- name: remove disk offering idempotence
cs_disk_offering:
ngine_io.cloudstack.disk_offering:
name: Small
state: absent
register: do
- name: verify remove disk offering idempotence
assert:
that:
- do is not changed
- do is not changed

0 comments on commit cadc966

Please sign in to comment.