mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix integration tests to support remote hosts.
This commit is contained in:
parent
92b475f721
commit
d2a7cc0b9f
37 changed files with 321 additions and 225 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue