mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
archive - created an integration test that archives broken links (#2063)
* created an integration test that archives broken links * sanity fix
This commit is contained in:
22
tests/integration/targets/archive/tasks/broken-link.yml
Normal file
22
tests/integration/targets/archive/tasks/broken-link.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Create broken link
|
||||
file:
|
||||
src: /nowhere
|
||||
dest: "{{ output_dir }}/nowhere.txt"
|
||||
state: link
|
||||
force: yes
|
||||
|
||||
- name: Archive broken link (tar.gz)
|
||||
archive:
|
||||
path: "{{ output_dir }}/*.txt"
|
||||
dest: "{{ output_dir }}/archive_broken_link.tar.gz"
|
||||
|
||||
- name: Archive broken link (tar.bz2)
|
||||
archive:
|
||||
path: "{{ output_dir }}/*.txt"
|
||||
dest: "{{ output_dir }}/archive_broken_link.tar.bz2"
|
||||
|
||||
- name: Archive broken link (zip)
|
||||
archive:
|
||||
path: "{{ output_dir }}/*.txt"
|
||||
dest: "{{ output_dir }}/archive_broken_link.zip"
|
||||
@@ -369,3 +369,6 @@
|
||||
|
||||
- name: import remove tests
|
||||
import_tasks: remove.yml
|
||||
|
||||
- name: import broken-link tests
|
||||
import_tasks: broken-link.yml
|
||||
|
||||
Reference in New Issue
Block a user