fixing mysql and postgresql test failures (#35587)

This commit is contained in:
Zim Kalinowski 2018-02-01 15:00:05 +08:00 committed by Jordan Borean
parent abbc1ed4e6
commit fef684d457
8 changed files with 24 additions and 12 deletions

View file

@ -1,2 +1,3 @@
cloud/azure
destructive
posix/ci/cloud/group2/azure

View file

@ -11,6 +11,7 @@
name: MYSQLB50
tier: basic
location: westus
storage_mb: 51200
version: 5.6
enforce_ssl: True
admin_username: zimxyz

View file

@ -1,2 +1,3 @@
cloud/azure
destructive
posix/ci/cloud/group2/azure

View file

@ -6,11 +6,12 @@
- name: Create instance of MySQL Server -- check mode
azure_rm_mysqlserver:
resource_group: "{{ resource_group }}"
name: "mysqlsrv{{ rpfx }}"
name: mysqlsrv{{ rpfx }}
sku:
name: MYSQLB50
tier: basic
location: westus
storage_mb: 51200
version: 5.6
enforce_ssl: True
admin_username: zimxyz
@ -25,11 +26,12 @@
- name: Create instance of MySQL Server
azure_rm_mysqlserver:
resource_group: "{{ resource_group }}"
name: "mysqlsrv{{ rpfx }}"
name: mysqlsrv{{ rpfx }}
sku:
name: MYSQLB50
tier: basic
location: westus
storage_mb: 51200
version: 5.6
enforce_ssl: True
admin_username: zimxyz
@ -44,11 +46,12 @@
- name: Create again instance of MySQL Server
azure_rm_mysqlserver:
resource_group: "{{ resource_group }}"
name: "mysqlsrv{{ rpfx }}"
name: mysqlsrv{{ rpfx }}
sku:
name: MYSQLB50
tier: basic
location: westus
storage_mb: 51200
version: 5.6
enforce_ssl: True
admin_username: zimxyz
@ -63,7 +66,7 @@
- name: Delete instance of MySQL Server -- check mode
azure_rm_mysqlserver:
resource_group: "{{ resource_group }}"
name: "mysqlsrv{{ rpfx }}"
name: mysqlsrv{{ rpfx }}
state: absent
check_mode: yes
register: output
@ -75,7 +78,7 @@
- name: Delete instance of MySQL Server
azure_rm_mysqlserver:
resource_group: "{{ resource_group }}"
name: "mysqlsrv{{ rpfx }}"
name: mysqlsrv{{ rpfx }}
state: absent
register: output
- name: Assert the state has changed
@ -86,7 +89,7 @@
- name: Delete unexisting instance of MySQL Server
azure_rm_mysqlserver:
resource_group: "{{ resource_group }}"
name: "mysqlsrv{{ rpfx }}"
name: mysqlsrv{{ rpfx }}
state: absent
register: output
- name: Assert the state has changed

View file

@ -1,2 +1,3 @@
cloud/azure
destructive
posix/ci/cloud/group2/azure

View file

@ -11,6 +11,7 @@
name: PGSQLS100
tier: basic
location: westus
storage_mb: 51200
enforce_ssl: True
admin_username: zimxyz
admin_password: Testpasswordxyz12!

View file

@ -1,2 +1,3 @@
cloud/azure
destructive
posix/ci/cloud/group2/azure

View file

@ -6,11 +6,12 @@
- name: Create instance of PostgreSQL Server -- check mode
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"
name: "postgresqlsrv{{ rpfx }}"
name: postgresqlsrv{{ rpfx }}
sku:
name: PGSQLS100
tier: basic
location: westus
storage_mb: 51200
enforce_ssl: True
admin_username: zimxyz
admin_password: Testpasswordxyz12!
@ -24,11 +25,12 @@
- name: Create instance of PostgreSQL Server
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"
name: "postgresqlsrv{{ rpfx }}"
name: postgresqlsrv{{ rpfx }}
sku:
name: PGSQLS100
tier: basic
location: westus
storage_mb: 51200
enforce_ssl: True
admin_username: zimxyz
admin_password: Testpasswordxyz12!
@ -42,11 +44,12 @@
- name: Create again instance of PostgreSQL Server
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"
name: "postgresqlsrv{{ rpfx }}"
name: postgresqlsrv{{ rpfx }}
sku:
name: PGSQLS100
tier: basic
location: westus
storage_mb: 51200
enforce_ssl: True
admin_username: zimxyz
admin_password: Testpasswordxyz12!
@ -60,7 +63,7 @@
- name: Delete instance of PostgreSQL Server -- check mode
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"
name: "postgresqlsrv{{ rpfx }}"
name: postgresqlsrv{{ rpfx }}
state: absent
check_mode: yes
register: output
@ -72,7 +75,7 @@
- name: Delete instance of PostgreSQL Server
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"
name: "postgresqlsrv{{ rpfx }}"
name: postgresqlsrv{{ rpfx }}
state: absent
register: output
- name: Assert the state has changed
@ -83,7 +86,7 @@
- name: Delete unexisting instance of PostgreSQL Server
azure_rm_postgresqlserver:
resource_group: "{{ resource_group }}"
name: "postgresqlsrv{{ rpfx }}"
name: postgresqlsrv{{ rpfx }}
state: absent
register: output
- name: Assert the state has changed