Skip to content

Commit e16dce9

Browse files
committed
feat(stress): long files
1 parent 9835e9c commit e16dce9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

stress-tests/test2.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
- name: Generate fast, huge output with debug
1+
---
2+
- name: Generate fast, large debug output with long random lines
23
hosts: localhost
34
gather_facts: no
4-
55
vars:
6-
total_messages: 5000
6+
total_messages: 1000
7+
line_length: 3000
78

89
tasks:
910

10-
- name: Print fast debug messages in loop
11+
- name: Generate random lines
12+
vars:
13+
chars: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
1114
debug:
12-
msg: "Line number {{ item }}"
13-
loop: "{{ range(1, total_messages + 1) | list }}"
15+
msg: "{{ item }}"
16+
loop: >
17+
{{
18+
range(1, total_messages + 1) | map('int') |
19+
map('regex_replace', '.*', chars | community.general.random_choice(length=line_length)) |
20+
list
21+
}}

0 commit comments

Comments
 (0)