mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
- output all relevant k8s resource to file on failure - output awx job list and job details to file on failure - output all pod logs to file on failure - added STORE_DEBUG_OUTPUT to enable debug output gathering - added DEBUG_OUTPUT_DIR to control where the debug output files will be stored - when molecule test fail in CI trigger artifact gathering
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
dependency:
|
|
name: galaxy
|
|
driver:
|
|
name: delegated
|
|
lint: |
|
|
set -e
|
|
yamllint .
|
|
platforms:
|
|
- name: cluster
|
|
groups:
|
|
- k8s
|
|
provisioner:
|
|
name: ansible
|
|
playbooks:
|
|
verify: ../default/verify.yml
|
|
lint: |
|
|
set -e
|
|
ansible-lint
|
|
inventory:
|
|
group_vars:
|
|
all:
|
|
namespace: ${TEST_OPERATOR_NAMESPACE:-osdk-test}
|
|
host_vars:
|
|
localhost:
|
|
awx_ee_image: ${AWX_EE_TEST_IMAGE:-""}
|
|
awx_image: ${AWX_TEST_IMAGE:-""}
|
|
awx_version: ${AWX_TEST_VERSION:-""}
|
|
ansible_python_interpreter: '{{ ansible_playbook_python }}'
|
|
default_awx_version: "{{ lookup('url', 'https://api.github.com/repos/ansible/awx/releases/latest') | from_json | json_query('tag_name') }}"
|
|
config_dir: ${MOLECULE_PROJECT_DIRECTORY}/config
|
|
samples_dir: ${MOLECULE_PROJECT_DIRECTORY}/config/samples
|
|
project_dir: ${MOLECULE_PROJECT_DIRECTORY}
|
|
operator_image: testing-operator
|
|
operator_pull_policy: "Never"
|
|
kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"
|
|
kustomize: ${KUSTOMIZE_PATH:-kustomize}
|
|
store_debug_output: ${STORE_DEBUG_OUTPUT:-false}
|
|
debug_output_dir: ${DEBUG_OUTPUT_DIR:-"/tmp/awx_operator_molecule_test"}
|
|
env:
|
|
K8S_AUTH_KUBECONFIG: ${MOLECULE_EPHEMERAL_DIRECTORY}/kubeconfig
|
|
KUBECONFIG: ${MOLECULE_EPHEMERAL_DIRECTORY}/kubeconfig
|
|
verifier:
|
|
name: ansible
|
|
lint: |
|
|
set -e
|
|
ansible-lint
|