mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
714 B
YAML
29 lines
714 B
YAML
8 years ago
|
# GCE Labels Integration Tests.
|
||
|
|
||
|
## Parameter checking tests ##
|
||
|
# ============================================================
|
||
|
- name: "test unknown resource_type"
|
||
|
gce_labels:
|
||
|
service_account_email: "{{ service_account_email }}"
|
||
|
pem_file: "{{ pem_file }}"
|
||
|
project_id: "{{ project_id }}"
|
||
|
resource_type: doggie
|
||
|
resource_location: Kansas
|
||
|
resource_name: Toto
|
||
|
labels:
|
||
|
environment: dev
|
||
|
experiment: kennedy
|
||
|
register: result
|
||
|
ignore_errors: true
|
||
|
labels:
|
||
|
- param-check
|
||
|
|
||
|
- name: "assert failure when param: unknown resource_type"
|
||
|
assert:
|
||
|
that:
|
||
|
- 'result.failed'
|
||
|
- 'result.msg == "Unsupported resource_type: doggie"'
|
||
|
|
||
|
|
||
|
# TODO(erjohnso): write more tests
|