DEBUG - use very long txt file

This commit is contained in:
Fabian Koller 2021-01-30 13:58:54 +01:00
parent d9e06958dc
commit 269673ce05
No known key found for this signature in database
GPG Key ID: 4EFE4C946404B82A

View File

@ -17,7 +17,7 @@
- name: generate random name and content
set_fact:
content: "{{ lookup('password', '/dev/null length=64 chars=ascii_letters') }}"
content: "{{ lookup('password', '/dev/null length=65536 chars=ascii_letters') }}"
filename: "{{ lookup('password', '/dev/null length=8 chars=ascii_letters') }}"
- name: check if document posting works
@ -45,6 +45,10 @@
register: logs
failed_when: "('Consuming ' + filename + '.txt') not in logs.content"
- name: sleep till consumption finished
pause:
seconds: 10
- name: verify uploaded document has been consumed
uri:
url: "http://{{ paperlessng_listen_address }}:{{ paperlessng_listen_port }}/api/logs/"