mock

package
v0.0.0-...-d8a8f93 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FakeConfig is used purely for testing.
	FakeConfig = config.Schema{
		Type:        "fake-config",
		Plural:      "fake-configs",
		MessageName: "proto.FakeConfig",
		AdditionalValidate: func(msg proto.Message) error {
			if msg.(*testproto.FakeConfig).Key == "" {
				return errors.New("empty key")
			}
			return nil
		},
	}
)

Functions

func CheckBrokerConfigTypes

func CheckBrokerConfigTypes(store config.Store, namespace string, t *testing.T)

CheckBrokerConfigTypes validates that an empty store can ingest Istio config objects

func CheckMapInvariant

func CheckMapInvariant(r config.Store, t *testing.T, namespace string, n int)

CheckMapInvariant validates operational invariants of an empty config store

func Compare

func Compare(a, b config.Entry) bool

Compare checks two configs ignoring revisions

func Make

func Make(namespace string, i int) config.Entry

Make creates a fake config indexed by a number

Types

This section is empty.

Directories

Path Synopsis
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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