mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-25 23:41:48 -07:00
Refactor inventory_gce tests to make the linter happy
This commit is contained in:
parent
9bdfba5e5c
commit
5cd81072c4
7 changed files with 5 additions and 5 deletions
16
tests/integration/targets/inventory_gce/testcase_basic.yml
Normal file
16
tests/integration/targets/inventory_gce/testcase_basic.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue