Fix integration tests to support remote hosts.

This commit is contained in:
Matt Clay 2019-01-24 19:25:06 -08:00
commit d2a7cc0b9f
37 changed files with 321 additions and 225 deletions

View file

@ -161,10 +161,15 @@
register: git_fetch
ignore_errors: yes
- name: DEPTH | get "a" file
slurp:
src: '{{ checkout_dir }}/a'
register: a_file
- name: DEPTH | check update arrived
assert:
that:
- "{{ lookup('file', checkout_dir+'/a' )}} == 3"
- "{{ a_file['content'] | b64decode | trim }} == 3"
- git_fetch is changed
- name: DEPTH | clear checkout_dir

View file

@ -39,10 +39,15 @@
register: git_fetch_force
ignore_errors: yes
- name: LOCALMODS | get "a" file
slurp:
src: '{{ checkout_dir }}/a'
register: a_file
- name: LOCALMODS | check update arrived
assert:
that:
- "{{ lookup('file', checkout_dir+'/a' )}} == 2"
- "{{ a_file['content'] | b64decode | trim }} == 2"
- git_fetch_force is changed
- name: LOCALMODS | clear checkout_dir
@ -92,10 +97,15 @@
register: git_fetch_force
ignore_errors: yes
- name: LOCALMODS | get "a" file
slurp:
src: '{{ checkout_dir }}/a'
register: a_file
- name: LOCALMODS | check update arrived
assert:
that:
- "{{ lookup('file', checkout_dir+'/a' )}} == 2"
- "{{ a_file['content'] | b64decode | trim }} == 2"
- git_fetch_force is changed
- name: LOCALMODS | clear checkout_dir