2016-02-02 20:19:10 +01:00
|
|
|
---
|
|
|
|
- name: test configuration account
|
|
|
|
cs_configuration:
|
|
|
|
name: allow.public.user.templates
|
|
|
|
account: "{{ test_cs_configuration_account }}"
|
|
|
|
value: true
|
|
|
|
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 account in check mode
|
|
|
|
cs_configuration:
|
|
|
|
name: allow.public.user.templates
|
|
|
|
account: "{{ test_cs_configuration_account }}"
|
|
|
|
value: false
|
|
|
|
register: config
|
|
|
|
check_mode: true
|
|
|
|
- name: verify update configuration account 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 == "true"
|
|
|
|
- config.name == "allow.public.user.templates"
|
|
|
|
- config.scope == "account"
|
|
|
|
- config.account == "{{ test_cs_configuration_account }}"
|
|
|
|
|
2016-02-02 20:19:10 +01:00
|
|
|
- name: test update configuration account
|
|
|
|
cs_configuration:
|
|
|
|
name: allow.public.user.templates
|
|
|
|
account: "{{ test_cs_configuration_account }}"
|
|
|
|
value: false
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration account
|
|
|
|
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 == "false"
|
|
|
|
- config.name == "allow.public.user.templates"
|
|
|
|
- config.scope == "account"
|
|
|
|
- config.account == "{{ test_cs_configuration_account }}"
|
|
|
|
|
|
|
|
- name: test update configuration account idempotence
|
|
|
|
cs_configuration:
|
|
|
|
name: allow.public.user.templates
|
|
|
|
account: "{{ test_cs_configuration_account }}"
|
|
|
|
value: false
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration account 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 == "false"
|
|
|
|
- config.name == "allow.public.user.templates"
|
|
|
|
- config.scope == "account"
|
|
|
|
- config.account == "{{ test_cs_configuration_account }}"
|
|
|
|
|
|
|
|
- name: test reset configuration account
|
|
|
|
cs_configuration:
|
|
|
|
name: allow.public.user.templates
|
|
|
|
account: "{{ test_cs_configuration_account }}"
|
|
|
|
value: true
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration account
|
|
|
|
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 == "true"
|
|
|
|
- config.name == "allow.public.user.templates"
|
|
|
|
- config.scope == "account"
|
|
|
|
- config.account == "{{ test_cs_configuration_account }}"
|