summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/azure_rm_postgresqlserver
diff options
context:
space:
mode:
authorZim Kalinowski <zikalino@microsoft.com>2019-02-15 10:46:52 +0100
committerGitHub <noreply@github.com>2019-02-15 10:46:52 +0100
commit2f3960558deb50be80c612f8e35123648a05a1f8 (patch)
tree0ea32b12e3154aa11a694c58e2f5bd0040fb2c14 /test/integration/targets/azure_rm_postgresqlserver
parentFix for MySQL server update and storage_mb (#51661) (diff)
downloadansible-2f3960558deb50be80c612f8e35123648a05a1f8.tar.xz
ansible-2f3960558deb50be80c612f8e35123648a05a1f8.zip
Fix for PostgresSQL server update and storage_mb (#51653)
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 }}"