Documentation ¶
Overview ¶
Package testsupport contains helper functions for testing auth service.
Index ¶
- Constants
- func BuildTargz(files map[string][]byte) []byte
- func PermissionsCfg() *configspb.PermissionsConfig
- func PermissionsCfgMeta() *config.Meta
- func PermissionsDB(implicitRootBindings bool) *permissions.PermissionsDB
- func SetTestContextSigner(ctx context.Context, appID, serviceAccount string) context.Context
- type FakeConfigClient
- func (*FakeConfigClient) Close() error
- func (*FakeConfigClient) GetConfig(ctx context.Context, configSet config.Set, path string, metaOnly bool) (*config.Config, error)
- func (f *FakeConfigClient) GetExpectedConfigsForTest(ctx context.Context) map[string]*config.Config
- func (*FakeConfigClient) GetProjectConfigs(ctx context.Context, path string, metaOnly bool) ([]config.Config, error)
Constants ¶
View Source
const ( TestRevision = "test-revision" TestContentHash = "test-hash" )
Variables ¶
This section is empty.
Functions ¶
func PermissionsCfg ¶
func PermissionsCfg() *configspb.PermissionsConfig
func PermissionsCfgMeta ¶
func PermissionsDB ¶
func PermissionsDB(implicitRootBindings bool) *permissions.PermissionsDB
PermissionsDB creates a PermissionsDB for tests.
Types ¶
type FakeConfigClient ¶
func (*FakeConfigClient) Close ¶
func (*FakeConfigClient) Close() error
func (*FakeConfigClient) GetExpectedConfigsForTest ¶
func (*FakeConfigClient) GetProjectConfigs ¶
Click to show internal directories.
Click to hide internal directories.