testutil

package
v0.0.0-...-2cc3bea Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 29 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, 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, 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