1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/legacy/roles/test_gce_labels/tasks/test.yml
Matt Clay 781fd7099a Reorganize integration tests:
- Move legacy tests into a separate directory.
- Reduce common dependencies between targets.
2017-09-14 07:14:30 -07:00

28 lines
714 B
YAML

# 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