mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-01 23:01:27 -07:00
cloudstack: fix pep8 cs_domain
This commit is contained in:
parent
1778e23fad
commit
439f0beca5
3 changed files with 42 additions and 35 deletions
|
@ -56,6 +56,17 @@
|
|||
- dom.path == "ROOT/{{ cs_resource_prefix }}_domain"
|
||||
- dom.name == "{{ cs_resource_prefix }}_domain"
|
||||
|
||||
- name: test fail to create a subdomain for inexistent domain
|
||||
cs_domain:
|
||||
path: ROOT/inexistent/{{ cs_resource_prefix }}_subdomain
|
||||
register: dom
|
||||
ignore_errors: true
|
||||
- name: test fail to create a subdomain for inexistent domain
|
||||
assert:
|
||||
that:
|
||||
- dom|failed
|
||||
- dom.msg == "Parent domain path ROOT/inexistent does not exist"
|
||||
|
||||
- name: test create a subdomain in check mode
|
||||
cs_domain: path=ROOT/{{ cs_resource_prefix }}_domain/{{ cs_resource_prefix }}_subdomain
|
||||
register: dom
|
||||
|
|
|
@ -165,7 +165,6 @@ lib/ansible/modules/cloud/azure/azure_rm_virtualnetwork_facts.py
|
|||
lib/ansible/modules/cloud/centurylink/clc_loadbalancer.py
|
||||
lib/ansible/modules/cloud/cloudscale/cloudscale_server.py
|
||||
lib/ansible/modules/cloud/cloudstack/cs_configuration.py
|
||||
lib/ansible/modules/cloud/cloudstack/cs_domain.py
|
||||
lib/ansible/modules/cloud/cloudstack/cs_facts.py
|
||||
lib/ansible/modules/cloud/cloudstack/cs_instance.py
|
||||
lib/ansible/modules/cloud/cloudstack/cs_instance_facts.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue