google.cloud/tests/integration/targets/inventory_gce/playbooks/testcase_basic.yml
Jorge Gallegos adf05c4ecf
Adding integration test for dynamic inventory plugin
Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-10 13:57:27 -07:00

16 lines
396 B
YAML

---
- name: TEST | print hosts
ansible.builtin.debug:
var: groups
- name: TEST | assert instances exist
ansible.builtin.assert:
that:
- groups['all'] | length > 0
- name: TEST | assert grouping works
ansible.builtin.assert:
that:
- groups['gcp_env_prod'] | length == 2
- groups['gcp_cluster_db'] | length == 1
- groups['gcp_cluster_web'] | length == 1