optimising vmss tests (#50175)

This commit is contained in:
Zim Kalinowski 2018-12-20 10:48:21 +08:00 committed by GitHub
parent 806b90f6f1
commit 0127a75132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,11 +83,11 @@
azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}"
name: testVMSS{{ rpfx }}
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
admin_username: testuser
ssh_password_enabled: true
admin_password: "Password1234!"
capacity: 2
capacity: 1
virtual_network_name: testVnet
subnet_name: testSubnet
load_balancer: testLB
@ -128,11 +128,11 @@
azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}"
name: testVMSS{{ rpfx }}
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
admin_username: testuser
ssh_password_enabled: true
admin_password: "Password1234!"
capacity: 2
capacity: 1
virtual_network_name: testVnet
subnet_name: testSubnet
upgrade_policy: Manual
@ -159,11 +159,11 @@
azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}"
name: testVMSS{{ rpfx }}
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
admin_username: testuser
ssh_password_enabled: true
admin_password: "Password1234!"
capacity: 2
capacity: 1
virtual_network_name: testVnet
subnet_name: testSubnet
upgrade_policy: Automatic
@ -228,8 +228,8 @@
name: testVMSS{{ rpfx }}
state: absent
remove_on_absent: ['all']
vm_size: Standard_DS1_v2
capacity: 2
vm_size: Standard_B1s
capacity: 1
image:
offer: CoreOS
publisher: CoreOS
@ -338,7 +338,7 @@
azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}"
name: testVMSS{{ rpfx }}2
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
capacity: 1
virtual_network_name: testVnet
subnet_name: testSubnet
@ -367,7 +367,7 @@
name: testVMSS{{ rpfx }}2
state: absent
remove_on_absent: ['all']
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
capacity: 1
image:
offer: CoreOS
@ -379,7 +379,7 @@
azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}"
name: testVMSS{{ rpfx }}4
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
virtual_network_name: testVnet
subnet_name: testSubnet
admin_username: testuser
@ -438,7 +438,7 @@
resource_group: "{{ resource_group }}"
name: testvm002
state: present
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
image:
offer: UbuntuServer
register: fail_invalid_image_dict
@ -449,7 +449,7 @@
resource_group: "{{ resource_group }}"
name: testvm002
state: present
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
image:
- testing
register: fail_invalid_image_type
@ -460,7 +460,7 @@
resource_group: "{{ resource_group }}"
name: testvm002
state: present
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
image: invalid-image
register: fail_missing_custom_image
failed_when: fail_missing_custom_image.msg != "Error could not find image with name invalid-image"
@ -470,7 +470,7 @@
resource_group: "{{ resource_group }}"
name: testvm002
state: present
vm_size: Standard_DS1_v2
vm_size: Standard_B1s
image:
name: invalid-image
register: fail_missing_custom_image_dict