zuul-jobs/test-playbooks/dhall/test-dhall-diff.yaml
Sorin Sbarnea 57415688ce Remove ansible-lint path exclusions
Fixes several rules with test-playbooks and remove path exclusions.

Since we introduced the progressive mode, exclusions are no longer
needed and not haivng them will assure newly added code follows
the same guidelines.

Change-Id: I0a72d34aff8cf23172e26c7f44e0f61571ec74b6
2021-04-27 08:22:32 +00:00

33 lines
724 B
YAML

- hosts: all
tasks:
- name: Success dhall-diff
include_role:
name: render-diff
- name: Ensure dhall-diff succeeded
assert:
that:
- render_diff.stdout | length == 0
- name: Introduce a difference
copy:
content: "44"
dest: "{{ zuul.project.src_dir }}/test.yaml"
- name: Commit the difference
command: git commit -a -m "test update"
args:
chdir: "{{ zuul.project.src_dir }}"
warn: false
- name: Failed dhall-diff
include_role:
name: render-diff
vars:
diff_ignore_errors: yes
- name: Ensure dhall-diff failed
assert:
that:
- render_diff.stdout | length > 0