2016-02-02 20:19:10 +01:00
|
|
|
---
|
|
|
|
- name: test configuration storage
|
|
|
|
cs_configuration:
|
|
|
|
name: storage.overprovisioning.factor
|
|
|
|
storage: "{{ test_cs_configuration_storage }}"
|
|
|
|
value: 2.0
|
|
|
|
register: config
|
|
|
|
- name: verify test configuration storage
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
2016-02-02 20:19:10 +01:00
|
|
|
|
2017-05-26 12:19:47 +02:00
|
|
|
- name: test update configuration storage in check mode
|
|
|
|
cs_configuration:
|
|
|
|
name: storage.overprovisioning.factor
|
|
|
|
storage: "{{ test_cs_configuration_storage }}"
|
|
|
|
value: 3.0
|
|
|
|
register: config
|
|
|
|
check_mode: true
|
|
|
|
- name: verify update configuration storage in check mode
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2017-05-26 12:19:47 +02:00
|
|
|
- config.value == "2.0"
|
|
|
|
- config.name == "storage.overprovisioning.factor"
|
|
|
|
- config.scope == "storagepool"
|
|
|
|
- config.storage == "{{ test_cs_configuration_storage }}"
|
|
|
|
|
2016-02-02 20:19:10 +01:00
|
|
|
- name: test update configuration storage
|
|
|
|
cs_configuration:
|
|
|
|
name: storage.overprovisioning.factor
|
|
|
|
storage: "{{ test_cs_configuration_storage }}"
|
|
|
|
value: 3.0
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration storage
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2016-02-02 20:19:10 +01:00
|
|
|
- config.value == "3.0"
|
|
|
|
- config.name == "storage.overprovisioning.factor"
|
|
|
|
- config.scope == "storagepool"
|
|
|
|
- config.storage == "{{ test_cs_configuration_storage }}"
|
|
|
|
|
|
|
|
- name: test update configuration storage idempotence
|
|
|
|
cs_configuration:
|
|
|
|
name: storage.overprovisioning.factor
|
|
|
|
storage: "{{ test_cs_configuration_storage }}"
|
|
|
|
value: 3.0
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration storage idempotence
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is not changed
|
2016-02-02 20:19:10 +01:00
|
|
|
- config.value == "3.0"
|
|
|
|
- config.name == "storage.overprovisioning.factor"
|
|
|
|
- config.scope == "storagepool"
|
|
|
|
- config.storage == "{{ test_cs_configuration_storage }}"
|
|
|
|
|
|
|
|
- name: test reset configuration storage
|
|
|
|
cs_configuration:
|
|
|
|
name: storage.overprovisioning.factor
|
|
|
|
storage: "{{ test_cs_configuration_storage }}"
|
|
|
|
value: 2.0
|
|
|
|
register: config
|
|
|
|
- name: verify reset configuration storage
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2016-02-02 20:19:10 +01:00
|
|
|
- config.value == "2.0"
|
|
|
|
- config.name == "storage.overprovisioning.factor"
|
|
|
|
- config.scope == "storagepool"
|
|
|
|
- config.storage == "{{ test_cs_configuration_storage }}"
|