zuul-jobs/test-playbooks/dhall/test-dhall-diff.yaml
Tristan Cacqueray 4903ecd30b dhall-diff: add new job
This change adds a new dhall-diff job to verify generated config
is idempotent.

Change-Id: I96a335dc78c4fa74564b854997433e5be0b5e633
2020-05-03 19:06:37 +00:00

32 lines
689 B
YAML

- hosts: all
tasks:
- name: Success dhall-diff
include_role:
name: render-diff
- name: Ensure dhall-diff succeeded
assert:
that:
- render_diff.stdout == ''
- 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 }}"
- name: Failed dhall-diff
include_role:
name: render-diff
vars:
diff_ignore_errors: yes
- name: Ensure dhall-diff failed
assert:
that:
- render_diff.stdout != ''