Files
wt cf25e28c28
Rust verification / test (push) Successful in 4m10s
initial commit
2026-10-28 15:59:54 +07:00

131 lines
2.8 KiB
JSON

[
{
"id": "fresh-csrf",
"method": "GET",
"path": "/refresh-csrf",
"expected_status": 200,
"expect_text_token": true
},
{
"id": "login",
"method": "POST",
"path": "/user/login",
"expected_status": 200,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
},
"json": {
"email": "compat@example.invalid",
"password": "Synthetic-compat-password-4620"
}
},
{
"id": "current-user",
"method": "GET",
"path": "/api/v1/user",
"expected_status": 200,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "create-hotp",
"method": "POST",
"path": "/api/v1/twofaccounts",
"expected_status": 201,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
},
"json": {
"service": "compat-fixture",
"account": "fixture@example.invalid",
"otp_type": "hotp",
"secret": "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ",
"digits": 6,
"algorithm": "sha1",
"counter": 0
},
"capture_json": {
"account_id": "/id"
},
"ignore_json_pointers": [
"/id"
]
},
{
"id": "read-created",
"method": "GET",
"path": "/api/v1/twofaccounts/{{account_id}}",
"expected_status": 200,
"ignore_json_pointers": [
"/id"
],
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "hotp-counter-zero",
"method": "GET",
"path": "/api/v1/twofaccounts/{{account_id}}/otp",
"expected_status": 200,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "hotp-counter-one",
"method": "GET",
"path": "/api/v1/twofaccounts/{{account_id}}/otp",
"expected_status": 200,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "read-counter-effect",
"method": "GET",
"path": "/api/v1/twofaccounts/{{account_id}}",
"expected_status": 200,
"ignore_json_pointers": [
"/id"
],
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "delete-created",
"method": "DELETE",
"path": "/api/v1/twofaccounts/{{account_id}}",
"expected_status": 204,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "read-deletion-effect",
"method": "GET",
"path": "/api/v1/twofaccounts/{{account_id}}",
"expected_status": 404,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "logout",
"method": "GET",
"path": "/user/logout",
"expected_status": 200,
"headers_from_cookies": {
"X-XSRF-TOKEN": "XSRF-TOKEN"
}
},
{
"id": "read-logout-effect",
"method": "GET",
"path": "/api/v1/user",
"expected_status": 401
}
]