-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.http
54 lines (38 loc) · 1001 Bytes
/
tests.http
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
GET http://127.0.0.1:8000/healthz HTTP/1.1
X-Authorization: {{$dotenv MAIN_SECRET}}
###
GET http://127.0.0.1:8000/config HTTP/1.1
X-Authorization: {{$dotenv MAIN_SECRET}}
###
POST http://127.0.0.1:8000/config HTTP/1.1
X-Authorization: {{$dotenv MAIN_SECRET}}
###
GET http://127.0.0.1:8000/satellites/localhost-probe HTTP/1.1
X-Authorization: {{$dotenv CLIENT_SECRET}}
###
PUT http://127.0.0.1:8000/satellites/localhost-probe2 HTTP/1.1
X-Authorization: {{$dotenv MAIN_SECRET}}
Content-Type: application/json
{
"Active": true,
"Name": "localhost-probe2",
"Targets": [
"server1"
]
}
###
DELETE http://127.0.0.1:8000/satellites/localhost-probe2 HTTP/1.1
X-Authorization: {{$dotenv MAIN_SECRET}}
###
PATCH http://127.0.0.1:8000/satellites/localhost-probe2 HTTP/1.1
X-Authorization: {{$dotenv MAIN_SECRET}}
Content-Type: application/json
{
"Name": "localhost-probe2",
"Secret": "{{$dotenv CLIENT_SECRET}}",
"Active": true,
"Targets": [
"server1",
"server2"
]
}