mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 17:43:54 +01:00
459 lines
10 KiB
JSON
459 lines
10 KiB
JSON
[
|
|
{
|
|
"name": "valid",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": null
|
|
},
|
|
{
|
|
"name": "fractional",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 0.25,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": null
|
|
},
|
|
{
|
|
"name": "access_token/\"\"",
|
|
"tokens": {
|
|
"access_token": "",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "access_token/null",
|
|
"tokens": {
|
|
"access_token": null,
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "access_token/1",
|
|
"tokens": {
|
|
"access_token": 1,
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "access_token/true",
|
|
"tokens": {
|
|
"access_token": true,
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "access_token/[]",
|
|
"tokens": {
|
|
"access_token": [],
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "access_token/{}",
|
|
"tokens": {
|
|
"access_token": {},
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token/\"\"",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token/null",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": null,
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token/1",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": 1,
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token/true",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": true,
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token/[]",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": [],
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token/{}",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": {},
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/null",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": null,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/0",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 0,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/-1",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": -1,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/\"3600\"",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": "3600",
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/true",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": true,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/[]",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": [],
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "expires_in/{}",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": {},
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/null",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": null
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/0",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 0
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/-1",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": -1
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/\"3600\"",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": "3600"
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/true",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": true
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/[]",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": []
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "refresh_token_expires_in/{}",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": {}
|
|
},
|
|
"status": 200,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "http/400",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 400,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "http/401",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 401,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "http/403",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 403,
|
|
"expected": {
|
|
"code": "github_app_reconnect_required",
|
|
"status": 401
|
|
}
|
|
},
|
|
{
|
|
"name": "http/429",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 429,
|
|
"expected": {
|
|
"code": "github_rate_limit_exceeded",
|
|
"status": 429
|
|
}
|
|
},
|
|
{
|
|
"name": "http/500",
|
|
"tokens": {
|
|
"access_token": "synthetic-access",
|
|
"refresh_token": "synthetic-refresh",
|
|
"expires_in": 3600,
|
|
"refresh_token_expires_in": 7200
|
|
},
|
|
"status": 500,
|
|
"expected": {
|
|
"code": "github_unavailable",
|
|
"status": 502
|
|
}
|
|
}
|
|
]
|