-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
59 lines (50 loc) · 1.5 KB
/
Taskfile.yml
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
54
55
56
57
58
59
version: "3"
tasks:
prepare:
desc: Prepare the environment
cmds:
- npm i
build:
deps: [prepare]
dir: custom-module
desc: Build the custom module
cmds:
- npm i
- tsc
watch:
deps: [prepare]
dir: custom-module
desc: Watch the custom module and build on changes
cmds:
- npm i
- tsc -w
up:
deps: [build]
desc: Start the Connector
cmds:
- docker compose up -d
restart:
desc: Restart the Connector
cmds:
- docker compose restart connector
logs:
desc: Show Connector logs
cmds:
- docker compose logs -f connector
2fa-errors:
desc: Call the 2fa endpoint with errors
cmds:
- http -b GET localhost:8099/university-X/2fa
- "http -b POST localhost:8099/university-X/2fa 'X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'"
- 'echo -n ''{"peer": "aPeer"}'' | http -b POST localhost:8099/university-X/2fa ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'''
2fa:
desc: Call the 2fa endpoint
cmds:
- 'echo -n ''{"peer": "{{.PEER}}", "twoFactorText": "Are you trying to login to your university account?"}'' | http -b POST localhost:8099/university-X/2fa ''X-API-KEY: This_is_a_test_APIKEY_with_30_chars+'''
vars:
PEER:
sh: "http -b GET 'localhost:8099/api/v2/Relationships?status=Active' 'X-API-KEY: This_is_a_test_APIKEY_with_30_chars+' | jq -r '.result[0].peer'"
dog:
desc: Call the dog endpoint
cmds:
- http -b GET localhost:8099/dog