mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Whitelist test and enforce test order (#1762)
also reduce replica count during test to save CPU/memory
This commit is contained in:
@@ -49,16 +49,16 @@
|
|||||||
####
|
####
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: test - replicas=3 should give 3 of each
|
msg: test - replicas=2 should give 2 of each
|
||||||
|
|
||||||
- include_tasks: apply_awx_spec.yml
|
- include_tasks: apply_awx_spec.yml
|
||||||
vars:
|
vars:
|
||||||
additional_fields:
|
additional_fields:
|
||||||
replicas: 3
|
replicas: 2
|
||||||
|
|
||||||
- include_tasks: _test_case_replicas.yml
|
- include_tasks: _test_case_replicas.yml
|
||||||
vars:
|
vars:
|
||||||
expected_web_replicas: 3
|
expected_web_replicas: 2
|
||||||
expected_task_replicas: 3
|
expected_task_replicas: 2
|
||||||
tags:
|
tags:
|
||||||
- replicas
|
- replicas
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
- name: Import all test files from tasks/
|
- name: Import all test files from tasks/
|
||||||
include_tasks: '{{ item }}'
|
include_tasks: '{{ item }}'
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- tasks/*_test.yml
|
- tasks/awx_test.yml
|
||||||
|
- tasks/awx_replicas_test.yml
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
rescue:
|
rescue:
|
||||||
|
|||||||
Reference in New Issue
Block a user