Documentation ¶
Overview ¶
Package prjcfgtest eases controlling of project configs in test.
In integration tests, prefer setting configs via cfgclient/cfgmemory and calling SubmitRefreshTasks and executing all outstanding tasks via tq.
Index ¶
- func Create(ctx context.Context, project string, cfg *cfgpb.Config)
- func Delete(ctx context.Context, project string)
- func Disable(ctx context.Context, project string)
- func Enable(ctx context.Context, project string)
- func MustExist(ctx context.Context, project string) prjcfg.Meta
- func MustNotExist(ctx context.Context, project string)
- func Update(ctx context.Context, project string, cfg *cfgpb.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates project config for the first time.
Panics if project config already exists.
func MustNotExist ¶
MustNotExist ensures that The Meta of a given project does not exists. Panics, otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.