Merge commit '1392bd3a96045302b60d845a90901a4b2234c475' as 'seatmap-webapi'
This commit is contained in:
44
seatmap-webapi/tests/functional/002_auth/001_jwt_auth.log
Normal file
44
seatmap-webapi/tests/functional/002_auth/001_jwt_auth.log
Normal file
@@ -0,0 +1,44 @@
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
X-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6IjE1MzgyMDc2MDUiLCJleHAiOjE1MzgyMDc2MzV9.Z5px_GT15TRKhJCTHhDt5Z6K6LRDSFnLj8U5ok9l7gw
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
X-Authorization: Bearer invalid
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 57
|
||||
|
||||
{"code":1012,"message":"Authentication failed for 'JWT'"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
===
|
||||
OPTIONS /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
Access-Control-Request-Method: POST
|
||||
Access-Control-Request-Headers: X-PINGOTHER, Content-Type
|
||||
===
|
||||
200
|
||||
Access-Control-Allow-Headers: Content-Type, X-XSRF-TOKEN, X-Authorization
|
||||
Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH
|
||||
Access-Control-Allow-Credentials: true
|
||||
Access-Control-Max-Age: 1728000
|
||||
34
seatmap-webapi/tests/functional/002_auth/002_basic_auth.log
Normal file
34
seatmap-webapi/tests/functional/002_auth/002_basic_auth.log
Normal file
@@ -0,0 +1,34 @@
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
Authorization: Basic dXNlcm5hbWUxOnBhc3N3b3JkMQ
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
Authorization: Basic aW52YWxpZHVzZXI6aW52YWxpZHBhc3M
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 65
|
||||
|
||||
{"code":1012,"message":"Authentication failed for 'invaliduser'"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
184
seatmap-webapi/tests/functional/002_auth/003_db_auth.log
Normal file
184
seatmap-webapi/tests/functional/002_auth/003_db_auth.log
Normal file
@@ -0,0 +1,184 @@
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":"pass2"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":2,"username":"user2"}
|
||||
===
|
||||
GET /me
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":2,"username":"user2"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":"incorect password"}
|
||||
===
|
||||
403
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 59
|
||||
|
||||
{"code":1012,"message":"Authentication failed for 'user2'"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 45
|
||||
|
||||
{"id":"e42c77c6-06a4-4502-816c-d112c7142e6d"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":2,"username":"user2"}
|
||||
===
|
||||
GET /records/invisibles/e42c77c6-06a4-4502-816c-d112c7142e6d
|
||||
===
|
||||
404
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 54
|
||||
|
||||
{"code":1001,"message":"Table 'invisibles' not found"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
401
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 49
|
||||
|
||||
{"code":1011,"message":"Authentication required"}
|
||||
===
|
||||
POST /register
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":""}
|
||||
===
|
||||
422
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 60
|
||||
|
||||
{"code":1021,"message":"Password too short (<4 characters)"}
|
||||
===
|
||||
POST /register
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user2","password":"pass2"}
|
||||
===
|
||||
409
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 53
|
||||
|
||||
{"code":1020,"message":"User 'user2' already exists"}
|
||||
===
|
||||
POST /register
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"pass3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"pass3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
GET /me
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /password
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"pass3","newPassword":"secret3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /login
|
||||
Content-Type: application/json; charset=utf-8
|
||||
|
||||
{"username":"user3","password":"secret3"}
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
GET /me
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
POST /logout
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 27
|
||||
|
||||
{"id":3,"username":"user3"}
|
||||
===
|
||||
DELETE /records/users/3
|
||||
===
|
||||
200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 1
|
||||
|
||||
1
|
||||
Reference in New Issue
Block a user