Skip to content

Commit

Permalink
more instances fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed Nov 26, 2024
1 parent b996458 commit c66bbe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
that:
- instance is changed
- instance.display_name == cs_resource_prefix + "-vm-" + instance_number|string
- instance.service_offering == "{{ test_cs_instance_offering_2 }}"
- instance.service_offering == test_cs_instance_offering_2
- instance.state == "Stopped"

- name: test starting instance with display_name
Expand Down
7 changes: 2 additions & 5 deletions tests/integration/targets/instance/tasks/sshkeys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
assert:
that:
- instance is failed
- 'instance.msg == "SSH key not found:" + cs_resource_prefix + "-sshkey-does-not-exist"'
- 'instance.msg == "SSH key not found: " + cs_resource_prefix + "-sshkey-does-not-exist"'

- name: test create instance without keypair in check mode
ngine_io.cloudstack.instance:
Expand All @@ -25,7 +25,6 @@
- name: verify create instance without keypair in check mode
assert:
that:
- instance is successful
- instance is changed

- name: test create instance without keypair
Expand All @@ -38,7 +37,6 @@
- name: verify create instance without keypair
assert:
that:
- instance is successful
- instance is changed
- instance.ssh_keys is not defined

Expand All @@ -52,7 +50,6 @@
- name: verify create instance without keypair idempotence
assert:
that:
- instance is successful
- instance is not changed
- instance.ssh_keys is not defined

Expand Down Expand Up @@ -127,7 +124,7 @@
assert:
that:
- instance is failed
- 'instance.msg == "SSH key not found: {{ cs_resource_prefix }}-sshkey2"'
- 'instance.msg == "SSH key not found: " + cs_resource_prefix + "-sshkey2"'

- name: test update instance ssh key in check mode
ngine_io.cloudstack.instance:
Expand Down

0 comments on commit c66bbe7

Please sign in to comment.