mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 13:52:58 +00:00
Initial commit.
This commit is contained in:
27
molecule/default/asserts.yml
Normal file
27
molecule/default/asserts.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: Verify cluster resources
|
||||
hosts: localhost
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
ansible_python_interpreter: '{{ ansible_playbook_python }}'
|
||||
|
||||
tasks:
|
||||
- name: Get tower Pod data
|
||||
k8s_facts:
|
||||
kind: Pod
|
||||
namespace: example-tower
|
||||
label_selectors:
|
||||
- app=tower
|
||||
register: tower_pods
|
||||
|
||||
- name: Verify there are two tower pods
|
||||
assert:
|
||||
that: '{{ (tower_pods.resources | length) == 2 }}'
|
||||
|
||||
- name: Verify tower functionality
|
||||
hosts: k8s
|
||||
|
||||
vars: []
|
||||
|
||||
tasks: []
|
||||
Reference in New Issue
Block a user