Skip to content

Commit

Permalink
Enable idempotence check again
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhorning committed Jul 31, 2024
1 parent ba9533d commit fa50fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ansible_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Real Ansible run
run: ansible-playbook -i tests/inventory tests/${{ matrix.test_play }}

- name: Second run to check for indempotence (allowing 5 changes)
run: "ansible-playbook -i tests/inventory tests/${{ matrix.test_play }}" #| grep -q 'changed=5.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"
- name: Second run to check for indempotence (allowing 4-5 changes)
run: "ansible-playbook -i tests/inventory tests/${{ matrix.test_play }} | grep -qE 'changed=(4|5).+failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"

- name: Test ES with curl
run: curl --silent http://localhost:9200
Expand Down

0 comments on commit fa50fe4

Please sign in to comment.