Documentation ¶
Index ¶
- Variables
- func Cmd(ctx context.Context) *cmdx.CommandExecuter
- func CreateClient(ctx context.Context, t testing.TB, project string) gjson.Result
- func CreateDefaultAssetsBrowser() (ctx context.Context, defaultConfig, defaultWorkspaceID string, ...)
- func CreateProject(ctx context.Context, t testing.TB, workspace string) *cloud.Project
- func CreateWorkspace(ctx context.Context, t testing.TB) string
- func FakeAccount() (email string, password string, name string)
- func FakeEmail() string
- func FakeName() string
- func FakePassword() string
- func GetDefaultProjectID(ctx context.Context, t testing.TB) string
- func ImportIdentity(ctx context.Context, t testing.TB, project string, stdin io.Reader) string
- func ListClients(ctx context.Context, t testing.TB, project string) gjson.Result
- func ListIdentities(ctx context.Context, t testing.TB, project string) gjson.Result
- func ListRelationTuples(ctx context.Context, t testing.TB, project string) gjson.Result
- func MakeRandomClient(t testing.TB, name string) string
- func MakeRandomIdentity(t testing.TB, email string) string
- func NewConfigFile(t testing.TB) string
- func NewPage(t testing.TB, browser playwright.Browser) playwright.Page
- func PlaywrightAcceptConsentBrowserHook(t testing.TB, page playwright.Page, email, password string) func(uri string) error
- func ReadConfig(t testing.TB, configDir string) *client.Config
- func RegisterAccount(ctx context.Context, t testing.TB) (email, password, name string)
- func SetDefaultProject(ctx context.Context, t testing.TB, projectID string)
- func SetupPlaywright(t testing.TB) (playwright.Browser, playwright.Page, func())
- func TestName() string
- func UseStaging()
- func WithCleanConfigFile(ctx context.Context, t testing.TB) context.Context
- func WithDuplicatedConfigFile(ctx context.Context, t testing.TB, originalFile string) (context.Context, string)
- func WithEmitAuthFlowTriggeredErr(ctx context.Context, t testing.TB) context.Context
- type MockTestingTForMain
- func (MockTestingTForMain) Errorf(format string, args ...interface{})
- func (MockTestingTForMain) ExitOnFailure()
- func (MockTestingTForMain) FailNow()
- func (MockTestingTForMain) Helper()
- func (MockTestingTForMain) Log(args ...interface{})
- func (MockTestingTForMain) Logf(format string, args ...interface{})
- func (MockTestingTForMain) Name() string
- func (MockTestingTForMain) TempDir() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthFlowTriggered = fmt.Errorf("flow triggered")
Functions ¶
func CreateClient ¶ added in v0.1.41
func CreateDefaultAssetsBrowser ¶ added in v1.0.0
func CreateProject ¶
func CreateWorkspace ¶ added in v1.0.0
func FakeAccount ¶ added in v1.0.0
func FakePassword ¶
func FakePassword() string
func GetDefaultProjectID ¶ added in v1.0.0
func ImportIdentity ¶
func ListClients ¶ added in v1.0.0
func ListIdentities ¶ added in v1.0.0
func ListRelationTuples ¶ added in v1.0.0
func NewConfigFile ¶ added in v1.0.0
func PlaywrightAcceptConsentBrowserHook ¶ added in v1.0.0
func RegisterAccount ¶
func SetDefaultProject ¶ added in v0.2.2
func SetupPlaywright ¶ added in v1.0.0
func UseStaging ¶
func UseStaging()
func WithCleanConfigFile ¶ added in v1.0.0
func WithDuplicatedConfigFile ¶ added in v1.0.0
Types ¶
type MockTestingTForMain ¶ added in v1.0.0
MockTestingTForMain is a mock testing.TB implementation that is used in TestMain. Always defer t.ExitOnFailure() in the TestMain function.
func (MockTestingTForMain) Errorf ¶ added in v1.0.0
func (MockTestingTForMain) Errorf(format string, args ...interface{})
func (MockTestingTForMain) ExitOnFailure ¶ added in v1.0.0
func (MockTestingTForMain) ExitOnFailure()
func (MockTestingTForMain) FailNow ¶ added in v1.0.0
func (MockTestingTForMain) FailNow()
func (MockTestingTForMain) Helper ¶ added in v1.0.0
func (MockTestingTForMain) Helper()
func (MockTestingTForMain) Log ¶ added in v1.0.0
func (MockTestingTForMain) Log(args ...interface{})
func (MockTestingTForMain) Logf ¶ added in v1.0.0
func (MockTestingTForMain) Logf(format string, args ...interface{})
func (MockTestingTForMain) Name ¶ added in v1.0.0
func (MockTestingTForMain) Name() string
func (MockTestingTForMain) TempDir ¶ added in v1.0.0
func (MockTestingTForMain) TempDir() string
Click to show internal directories.
Click to hide internal directories.