mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix integration tests to support remote hosts.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user