summaryrefslogtreecommitdiffstats
path: root/ansible_collections/netapp/azure/tests/integration
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/netapp/azure/tests/integration
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/netapp/azure/tests/integration')
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/aliases3
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/meta/main.yml2
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/tasks/main.yml41
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/aliases3
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/meta/main.yml2
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/tasks/main.yml47
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/aliases3
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/meta/main.yml2
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/tasks/main.yml51
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/aliases3
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/meta/main.yml2
-rw-r--r--ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/tasks/main.yml57
12 files changed, 216 insertions, 0 deletions
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/aliases b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/aliases
new file mode 100644
index 000000000..759eafa2d
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/aliases
@@ -0,0 +1,3 @@
+cloud/azure
+shippable/azure/group3
+destructive
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/meta/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/meta/main.yml
new file mode 100644
index 000000000..95e1952f9
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+ - setup_azure
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/tasks/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/tasks/main.yml
new file mode 100644
index 000000000..9fa627e48
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_account/tasks/main.yml
@@ -0,0 +1,41 @@
+- name: Create Azure NetApp account
+ azure_rm_netapp_account:
+ resource_group: laurentngroupnodash
+ name: tests-netapp1
+ location: eastus
+ tags: {'test1': 'tesssttt', 'abc': 'xyz'}
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Create Azure NetApp account (Idempotency)
+ azure_rm_netapp_account:
+ resource_group: laurentngroupnodash
+ name: tests-netapp1
+ location: eastus
+ tags: {'test1': 'tesssttt', 'abc': 'xyz'}
+ register: output
+
+- assert:
+ that: not output.changed
+
+- name: Delete Azure NetApp account
+ azure_rm_netapp_account:
+ state: absent
+ resource_group: laurentngroupnodash
+ name: tests-netapp1
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Delete Azure NetApp account (Idempotency)
+ azure_rm_netapp_account:
+ state: absent
+ resource_group: laurentngroupnodash
+ name: tests-netapp1
+ register: output
+
+- assert:
+ that: not output.changed
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/aliases b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/aliases
new file mode 100644
index 000000000..3a0c0dc68
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/aliases
@@ -0,0 +1,3 @@
+cloud/azure
+shippable/azure/group3
+destructive \ No newline at end of file
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/meta/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/meta/main.yml
new file mode 100644
index 000000000..48f5726d8
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+ - setup_azure \ No newline at end of file
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/tasks/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/tasks/main.yml
new file mode 100644
index 000000000..9bbae4ae7
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_capacity_pool/tasks/main.yml
@@ -0,0 +1,47 @@
+- name: Create Azure NetApp capacity pool
+ azure_rm_netapp_capacity_pool:
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ name: tests-poolsss
+ location: eastus
+ size: 2
+ service_level: Standard
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Create Azure NetApp capacity pool (Idempotency)
+ azure_rm_netapp_capacity_pool:
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ name: tests-poolsss
+ location: eastus
+ size: 2
+ service_level: Standard
+ register: output
+
+- assert:
+ that: not output.changed
+
+- name: Delete Azure NetApp capacity pool
+ azure_rm_netapp_capacity_pool:
+ state: absent
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ name: tests-poolsss
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Delete Azure NetApp capacity pool (Idempotency)
+ azure_rm_netapp_capacity_pool:
+ state: absent
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ name: tests-poolsss
+ register: output
+
+- assert:
+ that: not output.changed \ No newline at end of file
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/aliases b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/aliases
new file mode 100644
index 000000000..759eafa2d
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/aliases
@@ -0,0 +1,3 @@
+cloud/azure
+shippable/azure/group3
+destructive
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/meta/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/meta/main.yml
new file mode 100644
index 000000000..95e1952f9
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+ - setup_azure
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/tasks/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/tasks/main.yml
new file mode 100644
index 000000000..c1c1cf5c2
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_snapshot/tasks/main.yml
@@ -0,0 +1,51 @@
+- name: Create Azure NetApp snapshot
+ azure_rm_netapp_snapshot:
+ resource_group: laurentngroupnodash
+ account_name: tests-netapp
+ pool_name: test-pool
+ volume_name: tes
+ name: tests-snapshot
+ location: eastus
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Create Azure NetApp snapshot (Idempotency)
+ azure_rm_netapp_snapshot:
+ resource_group: laurentngroupnodash
+ account_name: tests-netapp
+ pool_name: test-pool
+ volume_name: tes
+ name: tests-snapshot
+ location: eastus
+ register: output
+
+- assert:
+ that: not output.changed
+
+- name: Delete Azure NetApp snapshot
+ azure_rm_netapp_snapshot:
+ state: absent
+ resource_group: laurentngroupnodash
+ account_name: tests-netapp
+ pool_name: test-pool
+ volume_name: tes
+ name: tests-snapshot
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Delete Azure NetApp snapshot (Idempotency)
+ azure_rm_netapp_snapshot:
+ state: absent
+ resource_group: laurentngroupnodash
+ account_name: tests-netapp
+ pool_name: test-pool
+ volume_name: tes
+ name: tests-snapshot
+ register: output
+
+- assert:
+ that: not output.changed
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/aliases b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/aliases
new file mode 100644
index 000000000..759eafa2d
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/aliases
@@ -0,0 +1,3 @@
+cloud/azure
+shippable/azure/group3
+destructive
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/meta/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/meta/main.yml
new file mode 100644
index 000000000..95e1952f9
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+ - setup_azure
diff --git a/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/tasks/main.yml b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/tasks/main.yml
new file mode 100644
index 000000000..c5b2a4262
--- /dev/null
+++ b/ansible_collections/netapp/azure/tests/integration/targets/azure_rm_netapp_volume/tasks/main.yml
@@ -0,0 +1,57 @@
+- name: Create Azure NetApp volume
+ azure_rm_netapp_volume:
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ pool_name: tests-pool
+ name: tests-volume2
+ location: eastus
+ size: 150
+ file_path: tests-volume2
+ virtual_network: azure_ansible
+ subnet_id: test
+ service_level: Standard
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Create Azure NetApp volume (Idempotency)
+ azure_rm_netapp_volume:
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ pool_name: tests-pool
+ name: tests-volume2
+ location: eastus
+ size: 150
+ file_path: tests-volume2
+ virtual_network: azure_ansible
+ subnet_id: test
+ service_level: Standard
+ register: output
+
+- assert:
+ that: not output.changed
+
+- name: Delete Azure NetApp volume
+ azure_rm_netapp_volume:
+ state: absent
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ pool_name: tests-pool
+ name: tests-volume2
+ register: output
+
+- assert:
+ that: output.changed
+
+- name: Delete Azure NetApp volume (Idempotency)
+ azure_rm_netapp_volume:
+ state: absent
+ resource_group: NetworkWatcherRG
+ account_name: ansibleazure
+ pool_name: tests-pool
+ name: tests-volume2
+ register: output
+
+- assert:
+ that: not output.changed