|
|
|
@ -152,54 +152,6 @@
|
|
|
|
|
that:
|
|
|
|
|
- result is changed
|
|
|
|
|
|
|
|
|
|
- name: test resize server without disk
|
|
|
|
|
hcloud_server:
|
|
|
|
|
name: "{{ hcloud_server_name }}"
|
|
|
|
|
server_type: "cx21"
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
|
- name: verify resize server without disk
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- result is changed
|
|
|
|
|
- result.hcloud_server.server_type == "cx21"
|
|
|
|
|
|
|
|
|
|
- name: test resize server idempotence
|
|
|
|
|
hcloud_server:
|
|
|
|
|
name: "{{ hcloud_server_name }}"
|
|
|
|
|
server_type: "cx21"
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
|
- name: verify resize server idempotence
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- result is not changed
|
|
|
|
|
|
|
|
|
|
- name: test resize server to smaller plan
|
|
|
|
|
hcloud_server:
|
|
|
|
|
name: "{{ hcloud_server_name }}"
|
|
|
|
|
server_type: "cx11"
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
|
- name: verify resize server to smaller plan
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- result is changed
|
|
|
|
|
- result.hcloud_server.server_type == "cx11"
|
|
|
|
|
|
|
|
|
|
- name: test resize server with disk
|
|
|
|
|
hcloud_server:
|
|
|
|
|
name: "{{ hcloud_server_name }}"
|
|
|
|
|
server_type: "cx21"
|
|
|
|
|
upgrade_disk: true
|
|
|
|
|
state: stopped
|
|
|
|
|
register: result
|
|
|
|
|
- name: verify resize server with disk
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- result is changed
|
|
|
|
|
- result.hcloud_server.server_type == "cx21"
|
|
|
|
|
|
|
|
|
|
- name: test enable backups with check mode
|
|
|
|
|
hcloud_server:
|
|
|
|
|
name: "{{ hcloud_server_name }}"
|
|
|
|
|