testutil

package
v0.0.0-...-053b097 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil reduces the boilerplate for testing in LUCI Config.

Index

Constants

View Source
const AppID = "luci-config-dev"
View Source
const ServiceAccount = "luci-config@luci-config-dev.iam.gserviceaccount.com"
View Source
const TestGsBucket = "test-bucket"

Variables

This section is empty.

Functions

func InjectConfigSet

func InjectConfigSet(ctx context.Context, t testing.TB, cfgSet config.Set, configs map[string]proto.Message)

InjectConfigSet writes a new revision for the provided config set.

The revision ID is a monotonically increasing integer.

func InjectSelfConfigs

func InjectSelfConfigs(ctx context.Context, t testing.TB, configs map[string]proto.Message)

InjectSelfConfigs is a shorthand for updating LUCI Config self config.

func SetupContext

func SetupContext() context.Context

SetupContext sets up testing common context for LUCI Config tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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