Documentation ¶
Index ¶
- func CreateEmptyTestDatabase(s string) (*identity.Database, error)
- func CreateTestDatabase(s string) (*identity.Database, error)
- func GetCookie(name, value string, ttl int) *http.Cookie
- func GetSharedKey() string
- func NewTestCryptoKeyStore() *kms.CryptoKeyStore
- func NewTestGuestAccessList() *acl.AccessList
- func NewTestGuestAccessListWithLogger() *acl.AccessList
- func NewTestUser() *user.User
- type InjectedTestToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyTestDatabase ¶
CreateEmptyTestDatabase returns empty database instance.
func CreateTestDatabase ¶
CreateTestDatabase returns database instance.
func NewTestCryptoKeyStore ¶
func NewTestCryptoKeyStore() *kms.CryptoKeyStore
NewTestCryptoKeyStore returns an instance of CryptoKeyStore with loaded HMAC key pair.
func NewTestGuestAccessList ¶
func NewTestGuestAccessList() *acl.AccessList
NewTestGuestAccessList return ACL with guest access.
func NewTestGuestAccessListWithLogger ¶
func NewTestGuestAccessListWithLogger() *acl.AccessList
NewTestGuestAccessListWithLogger return ACL with guest access and logger.
Types ¶
type InjectedTestToken ¶
type InjectedTestToken struct { Name string `json:"name,omitempty" xml:"name,omitempty" yaml:"name,omitempty"` // The locations to inject a token in this test. Location string `json:"location,omitempty" xml:"location,omitempty" yaml:"location,omitempty"` // The basic user claims. User *user.User `json:"user,omitempty" xml:"user,omitempty" yaml:"user,omitempty"` }
InjectedTestToken is an instance of injected token.
func NewInjectedTestToken ¶
func NewInjectedTestToken(name, location, cfg string) *InjectedTestToken
NewInjectedTestToken returns an instance of injected token.
Click to show internal directories.
Click to hide internal directories.