iamtest

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package iamtest provides primitives for unit testing IAM implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixture

type Fixture struct {
	// contains filtered or unexported fields
}

Fixture is a test fixture with helper methods for IAM testing.

func NewFixture

func NewFixture(server *iamspanner.IAMServer) *Fixture

NewFixture creates a new Fixture for the provided iamspanner.IAMServer.

func (*Fixture) AddPolicyBinding

func (fx *Fixture) AddPolicyBinding(t *testing.T, resource, role, member string)

AddPolicyBinding adds the provided policy binding.

Jump to

Keyboard shortcuts

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