Documentation ¶
Index ¶
Constants ¶
View Source
const ( TokenID = "cbc36478b0bd8e67e89469c7749d4127" AccessToken = "cbc36478b0bd8e67e89469c7749d4127" RefreshToken = "tbc36478b0bd8e67e89469c7749d4127" Username = "username" Password = "password" RegionID = 1 ProjectID = 1 )
Fake token to use.
Variables ¶
This section is empty.
Functions ¶
func ServiceAuthClient ¶
func ServiceAuthClient(name string, version string) *edgecloud.ServiceClient
func ServiceClient ¶
func ServiceClient() *edgecloud.ServiceClient
ServiceClient returns a generic service client for use in tests.
func ServiceTokenClient ¶
func ServiceTokenClient(name string, version string) *edgecloud.ServiceClient
Types ¶
type AuthResultTest ¶
type AuthResultTest struct {
// contains filtered or unexported fields
}
func NewAuthResultTest ¶
func NewAuthResultTest(accessToken string, refreshToken string) AuthResultTest
func (AuthResultTest) ExtractAccessToken ¶
func (ar AuthResultTest) ExtractAccessToken() (string, error)
func (AuthResultTest) ExtractRefreshToken ¶
func (ar AuthResultTest) ExtractRefreshToken() (string, error)
func (AuthResultTest) ExtractTokensPair ¶
func (ar AuthResultTest) ExtractTokensPair() (string, string, error)
Click to show internal directories.
Click to hide internal directories.