Documentation ¶
Overview ¶
tokens unit tests
Index ¶
Constants ¶
View Source
const TokenOutput = `` /* 2887-byte string literal not displayed */
TokenOutput is a sample response to a Token call.
Variables ¶
View Source
var ExpectedProject = tokens.Project{
Domain: domain,
ID: "a99e9b4e620e4db09a2dfb6e42a01e66",
Name: "admin",
}
ExpectedProject contains expected project extracted from token response.
View Source
var ExpectedRoles = []tokens.Role{role}
ExpectedRoles contains expected roles extracted from token response.
View Source
var ExpectedServiceCatalog = tokens.ServiceCatalog{ Entries: []tokens.CatalogEntry{catalogEntry1, catalogEntry2}, }
ExpectedServiceCatalog contains expected service extracted from token response.
View Source
var ExpectedToken = tokens.Token{
ID: testTokenID,
ExpiresAt: expectedTokenTime,
}
View Source
var ExpectedUser = tokens.User{
Domain: domain,
ID: "0fe36e73809d46aeae6705c39077b1b3",
Name: "admin",
}
ExpectedUser contains expected user extracted from token response.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.