forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstackhawk-early-attempt.yml
48 lines (46 loc) · 1.02 KB
/
stackhawk-early-attempt.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
app:
applicationId: ${JS_APP_ID:2bc22eb3-7a8d-4e0a-b2e2-2c3a5430ba4b}
env: Cypress
host: http://localhost:3000
excludePaths:
- ".*socket\\.io.*"
- ".*\\.png"
- ".*\\.jpeg"
- ".*\\.jpg"
- ".*\\.woff"
- ".*\\.woff2"
- ".*\\.ttf"
- ".*\\.ico"
- "/rest/user/reset-password"
- "/rest/user/change-password.*"
- "/rest/2fa/setup"
authentication:
external:
values:
- type: COOKIE
value:
name: token
val: ${JS_AUTH_TOKEN}
- type: TOKEN
tokenType: Bearer
value:
name: Authorization
val: ${JS_AUTH_TOKEN}
testPath:
type: BODY
path: /rest/user/whoami
success: ".*email.*"
loggedInIndicator: ".*"
loggedOutIndicator: "^$"
hawk:
spider:
ajax: false
base: false
custom:
command: 'bash'
arguments:
- "-c"
- "npx cypress run --headless || true"
logOutputToForeground: true
environment:
NO_PROXY: "<-loopback>"