mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-19 14:50:21 -07:00
fixing container instance sanity & integration tests (#40774)
This commit is contained in:
parent
bf5cd98a2b
commit
dde48560fb
5 changed files with 14 additions and 13 deletions
|
@ -14,18 +14,18 @@
|
|||
ports:
|
||||
- 80
|
||||
- 81
|
||||
- name: mycontainer2
|
||||
image: httpd
|
||||
memory: 1.5
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
var: output
|
||||
|
||||
- name: Assert the container instance is well created
|
||||
assert:
|
||||
that:
|
||||
- output.changed
|
||||
- output.provisioning_state == 'Creating'
|
||||
- output.provisioning_state == 'Succeeded'
|
||||
|
||||
- name: Create sample container instance
|
||||
- name: Create sample container instance -- same parameters
|
||||
azure_rm_containerinstance:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
|
||||
|
@ -41,9 +41,6 @@
|
|||
ports:
|
||||
- 80
|
||||
- 81
|
||||
- name: mycontainer2
|
||||
image: httpd
|
||||
memory: 1.5
|
||||
register: output
|
||||
|
||||
- name: Assert the container instance is well created
|
||||
|
@ -51,7 +48,7 @@
|
|||
that:
|
||||
- output.changed == False
|
||||
|
||||
- name: Create sample container instance
|
||||
- name: Create sample container instance -- force update
|
||||
azure_rm_containerinstance:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}"
|
||||
|
@ -74,7 +71,7 @@
|
|||
assert:
|
||||
that:
|
||||
- output.changed
|
||||
- output.provisioning_state == 'Creating'
|
||||
- output.provisioning_state == 'Succeeded'
|
||||
|
||||
- name: Remove container instance
|
||||
azure_rm_containerinstance:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue