Documentation ¶
Overview ¶
Package test contains test data and helpers.
Index ¶
Constants ¶
View Source
const ( // { // "exp": 2606942597, // "sub": "job_123456", // "namespace_id": "123456", // "namespace_path": "foo/bar" // } JWT = "" /* 516-byte string literal not displayed */ // { // "namespace_id": "1", // "namespace_path": "mygroup", // "project_id": "22", // "project_path": "mygroup/myproject", // "user_id": "42", // "user_login": "myuser", // "user_email": "myuser@example.com", // "pipeline_id": "1212", // "job_id": "1212", // "ref": "master", // "ref_type": "branch", // "ref_protected": "true", // "jti": "c82eeb0c-5c6f-4a33-abf5-4c474b92b558", // "iss": "gitlab.com", // "iat": 1606938997, // "nbf": 1606938992, // "exp": 1606942597, // "sub": "job_1212" // } GitLabJWT = "" /* 929-byte string literal not displayed */ )
Variables ¶
View Source
var (
JWKS = &jose.JSONWebKeySet{
Keys: []jose.JSONWebKey{
{
KeyID: "test",
Key: &testRSAPrivateKey.PublicKey,
},
},
}
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.