mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
cloudstack: cs_domain: tests: add update tests (#27791)
This commit is contained in:
parent
e1cfcdbbc6
commit
f1ef61da4e
2 changed files with 108 additions and 34 deletions
|
@ -40,13 +40,10 @@ options:
|
|||
network_domain:
|
||||
description:
|
||||
- Network domain for networks in the domain.
|
||||
required: false
|
||||
default: null
|
||||
clean_up:
|
||||
description:
|
||||
- Clean up all domain resources like child domains and accounts.
|
||||
- Considered on C(state=absent).
|
||||
required: false
|
||||
default: false
|
||||
state:
|
||||
description:
|
||||
|
@ -57,29 +54,28 @@ options:
|
|||
poll_async:
|
||||
description:
|
||||
- Poll async jobs until job has finished.
|
||||
required: false
|
||||
default: true
|
||||
extends_documentation_fragment: cloudstack
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# Create a domain
|
||||
local_action:
|
||||
module: cs_domain
|
||||
path: ROOT/customers
|
||||
network_domain: customers.example.com
|
||||
- name: Create a domain
|
||||
local_action:
|
||||
module: cs_domain
|
||||
path: ROOT/customers
|
||||
network_domain: customers.example.com
|
||||
|
||||
# Create another subdomain
|
||||
local_action:
|
||||
module: cs_domain
|
||||
path: ROOT/customers/xy
|
||||
network_domain: xy.customers.example.com
|
||||
- name: Create another subdomain
|
||||
local_action:
|
||||
module: cs_domain
|
||||
path: ROOT/customers/xy
|
||||
network_domain: xy.customers.example.com
|
||||
|
||||
# Remove a domain
|
||||
local_action:
|
||||
module: cs_domain
|
||||
path: ROOT/customers/xy
|
||||
state: absent
|
||||
- name: Remove a domain
|
||||
local_action:
|
||||
module: cs_domain
|
||||
path: ROOT/customers/xy
|
||||
state: absent
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue