prjcfgtest

package
v0.0.0-...-d3da680 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, project string, cfg *cfgpb.Config)

Create creates project config for the first time.

Panics if project config already exists.

func Delete

func Delete(ctx context.Context, project string)

Delete deletes the project config.

Panics if project config doesn't exist.

func Disable

func Disable(ctx context.Context, project string)

Disable disables project.

Panics if project config doesn't exist.

func Enable

func Enable(ctx context.Context, project string)

Enable enables project.

Panics if project config doesn't exist.

func MustExist

func MustExist(ctx context.Context, project string) prjcfg.Meta

MustExist ensures that The Meta of a given project exists. Panics, otherwise.

func MustNotExist

func MustNotExist(ctx context.Context, project string)

MustNotExist ensures that The Meta of a given project does not exists. Panics, otherwise.

func Update

func Update(ctx context.Context, project string, cfg *cfgpb.Config)

Update updates project config to, presumed, newer version.

Panics if project config doesn't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL