summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/azure_rm_postgresqlserver
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/azure_rm_postgresqlserver')
-rw-r--r--test/integration/targets/azure_rm_postgresqlserver/aliases1
-rw-r--r--test/integration/targets/azure_rm_postgresqlserver/tasks/main.yml31
2 files changed, 31 insertions, 1 deletions
diff --git a/test/integration/targets/azure_rm_postgresqlserver/aliases b/test/integration/targets/azure_rm_postgresqlserver/aliases
index 73725907d7..7e5b111d5b 100644
--- a/test/integration/targets/azure_rm_postgresqlserver/aliases
+++ b/test/integration/targets/azure_rm_postgresqlserver/aliases
@@ -6,4 +6,3 @@ azure_rm_postgresqldatabase
azure_rm_postgresqldatabase_facts
azure_rm_postgresqlfirewallrule
azure_rm_postgresqlfirewallrule_facts
-disabled
diff --git a/test/integration/targets/azure_rm_postgresqlserver/tasks/main.yml b/test/integration/targets/azure_rm_postgresqlserver/tasks/main.yml
index 2612cf00ea..169dd4c67c 100644
--- a/test/integration/targets/azure_rm_postgresqlserver/tasks/main.yml
+++ b/test/integration/targets/azure_rm_postgresqlserver/tasks/main.yml
@@ -60,6 +60,37 @@
- output.changed == false
- output.state == 'Ready'
+- name: Update instance of PostgreSQL Server, change storage size
+ azure_rm_postgresqlserver:
+ resource_group: "{{ resource_group }}"
+ name: postgresqlsrv{{ rpfx }}
+ sku:
+ name: B_Gen5_1
+ tier: Basic
+ location: westus2
+ storage_mb: 128000
+ enforce_ssl: True
+ admin_username: zimxyz
+ admin_password: Testpasswordxyz12!
+ register: output
+- name: Assert the state has not changed
+ assert:
+ that:
+ - output.changed
+ - output.state == 'Ready'
+- debug:
+ var: output
+
+- name: Gather facts postgresql Server
+ azure_rm_postgresqlserver_facts:
+ resource_group: "{{ resource_group }}"
+ name: postgresqlsrv{{ rpfx }}
+ register: output
+- name: Assert that storage size is correct
+ assert:
+ that:
+ - output.servers[0]['storage_mb'] == 128000
+
- name: Create second instance of PostgreSQL Server
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"