From cadc966f366a6ff19f69192d381f301a2a2c93bf Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Fri, 27 Sep 2024 14:28:00 +0200 Subject: [PATCH] tests: rename disk offering --- .../targets/cs_disk_offering/aliases | 2 - .../integration/targets/disk_offering/aliases | 3 + .../meta/main.yml | 0 .../tasks/main.yml | 90 +++++++++---------- 4 files changed, 48 insertions(+), 47 deletions(-) delete mode 100644 tests/integration/targets/cs_disk_offering/aliases create mode 100644 tests/integration/targets/disk_offering/aliases rename tests/integration/targets/{cs_disk_offering => disk_offering}/meta/main.yml (100%) rename tests/integration/targets/{cs_disk_offering => disk_offering}/tasks/main.yml (55%) diff --git a/tests/integration/targets/cs_disk_offering/aliases b/tests/integration/targets/cs_disk_offering/aliases deleted file mode 100644 index c89c86d..0000000 --- a/tests/integration/targets/cs_disk_offering/aliases +++ /dev/null @@ -1,2 +0,0 @@ -cloud/cs -shippable/cs/group1 diff --git a/tests/integration/targets/disk_offering/aliases b/tests/integration/targets/disk_offering/aliases new file mode 100644 index 0000000..2ce8657 --- /dev/null +++ b/tests/integration/targets/disk_offering/aliases @@ -0,0 +1,3 @@ +cloud/cs +cs/group1 +cs/group3 diff --git a/tests/integration/targets/cs_disk_offering/meta/main.yml b/tests/integration/targets/disk_offering/meta/main.yml similarity index 100% rename from tests/integration/targets/cs_disk_offering/meta/main.yml rename to tests/integration/targets/disk_offering/meta/main.yml diff --git a/tests/integration/targets/cs_disk_offering/tasks/main.yml b/tests/integration/targets/disk_offering/tasks/main.yml similarity index 55% rename from tests/integration/targets/cs_disk_offering/tasks/main.yml rename to tests/integration/targets/disk_offering/tasks/main.yml index fd55788..fb806d6 100644 --- a/tests/integration/targets/cs_disk_offering/tasks/main.yml +++ b/tests/integration/targets/disk_offering/tasks/main.yml @@ -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: @@ -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: @@ -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: @@ -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 @@ -68,13 +68,13 @@ - 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 @@ -82,14 +82,14 @@ - 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 @@ -97,14 +97,14 @@ - 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 @@ -112,32 +112,32 @@ - 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