mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-10 05:33:29 +01:00
Move the basic test to test_default
This commit is contained in:
parent
fb231decf2
commit
9b3e83b853
3 changed files with 6 additions and 6 deletions
6
.github/workflows/ansible-lint.yml
vendored
6
.github/workflows/ansible-lint.yml
vendored
|
@ -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: ""
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue