add test files for auth middleware
This commit is contained in:
parent
0bceb409e5
commit
d856081483
5
api/_testdata/config.json
Normal file
5
api/_testdata/config.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"authKeys": [
|
||||
"existingkey"
|
||||
]
|
||||
}
|
14
api/_testdata/servers/existingserver.json
Normal file
14
api/_testdata/servers/existingserver.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"uuid": "existingserver",
|
||||
"keys": {
|
||||
"existinggkey": [
|
||||
"g:*"
|
||||
],
|
||||
"existingspecificskey": [
|
||||
"s:test"
|
||||
],
|
||||
"existingglobalskey": [
|
||||
"s:*"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -32,5 +32,8 @@
|
|||
"path": "logs/",
|
||||
"level": "info",
|
||||
"deleteAfterDays": 100
|
||||
}
|
||||
},
|
||||
"authKeys": [
|
||||
"somekey"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user