forked from arriven/db1000n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testconfig.yaml
27 lines (27 loc) · 1023 Bytes
/
testconfig.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
jobs:
- type: sequence
args:
jobs:
- type: set-value
name: proxylist
args:
value: '{{ join (get_url "https://raw.githubusercontent.com/Arriven/db1000n/main/proxylist.json" | from_string_array) "," }}'
- type: log
args:
text: '{{ .Value (ctx_key "data.proxylist") }}'
- type: http
args:
count: 1
request:
method: GET
path: 'https://localhost:8080/search?searchid={{ index (.Value (ctx_key "config")) "args" "jobs" 0 "type" }}&l10n=ru&reqenc=&text={{ random_uuid }}'
client:
# timeout: 1s
proxy_urls: '{{ .Value (ctx_key "data.proxylist") }}'
- type: http
args:
request:
method: GET
path: "https://localhost:8090/search?searchid={{ random_uuid }}&l10n=ru&reqenc=&text={{ random_uuid }}"
client:
proxy_urls: '{{ .Value (ctx_key "data.proxylist") }}'