Move the basic test to test_default

This commit is contained in:
Jakub Jelen 2020-09-17 14:48:41 +02:00
parent fb231decf2
commit 9b3e83b853
3 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ jobs:
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
targets: "tests/test_*.yml"
override-deps: |
ansible==2.8
args: ""
@ -21,7 +21,7 @@ jobs:
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
targets: "tests/test_*.yml"
override-deps: |
ansible==2.9
args: ""
@ -32,7 +32,7 @@ jobs:
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "tests/test.yml"
targets: "tests/test_*.yml"
override-deps: |
ansible==2.10
args: ""

View file

@ -15,13 +15,13 @@ install:
script:
# Check the roles syntax.
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --syntax-check"
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test_default.yml --syntax-check"
# Run the role
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test.yml --connection=local --become -v"
- "ANSIBLE_FORCE_COLOR=1 ansible-playbook -i tests/inventory tests/test_default.yml --connection=local --become -v"
# Run the role/playbook again, checking to make sure it's idempotent.
- >
ansible-playbook -i tests/inventory tests/test.yml --connection=local --become | grep -q 'changed=0.*failed=0'
ansible-playbook -i tests/inventory tests/test_default.yml --connection=local --become | grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)