|
|
@ -14,6 +14,22 @@
|
|
|
|
register: rax_clb
|
|
|
|
register: rax_clb
|
|
|
|
|
|
|
|
|
|
|
|
- name: Validate results of rax_clb with no args
|
|
|
|
- name: Validate results of rax_clb with no args
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- rax_clb|failed
|
|
|
|
|
|
|
|
- rax_clb.msg == 'missing required arguments: name'
|
|
|
|
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
- name: Test rax_clb with name
|
|
|
|
|
|
|
|
rax_clb:
|
|
|
|
|
|
|
|
name: fail
|
|
|
|
|
|
|
|
ignore_errors: true
|
|
|
|
|
|
|
|
register: rax_clb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Validate results of rax_clb with only creds
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- rax_clb|failed
|
|
|
|
- rax_clb|failed
|
|
|
@ -23,10 +39,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ============================================================
|
|
|
|
# ============================================================
|
|
|
|
- name: Test rax_clb with credentials
|
|
|
|
- name: Test rax_clb with name and credentials
|
|
|
|
rax_clb:
|
|
|
|
rax_clb:
|
|
|
|
username: "{{ rackspace_username }}"
|
|
|
|
username: "{{ rackspace_username }}"
|
|
|
|
api_key: "{{ rackspace_api_key }}"
|
|
|
|
api_key: "{{ rackspace_api_key }}"
|
|
|
|
|
|
|
|
name: fail
|
|
|
|
ignore_errors: true
|
|
|
|
ignore_errors: true
|
|
|
|
register: rax_clb
|
|
|
|
register: rax_clb
|
|
|
|
|
|
|
|
|
|
|
@ -48,13 +65,11 @@
|
|
|
|
ignore_errors: true
|
|
|
|
ignore_errors: true
|
|
|
|
register: rax_clb
|
|
|
|
register: rax_clb
|
|
|
|
|
|
|
|
|
|
|
|
## This assertion is currently failing, due to the module not providing the correct name of the missing argument
|
|
|
|
|
|
|
|
- name: Validate rax_clb creds and region
|
|
|
|
- name: Validate rax_clb creds and region
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- rax_clb|failed
|
|
|
|
- rax_clb|failed
|
|
|
|
- rax_clb.msg == 'name is required for rax_clb'
|
|
|
|
- rax_clb.msg == 'missing required arguments: name'
|
|
|
|
ignore_errors: true
|
|
|
|
|
|
|
|
# ============================================================
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|