pipeline

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BaseFixture

type BaseFixture struct {
	Admin    *tests.Client
	Owner    *tests.Client
	Member   *tests.Client
	NoAccess *tests.Client
}

BaseFixture is a Fixture with multiple users in the system.

func NewBaseFixture

func NewBaseFixture(t *testing.T, p *tests.Pipeline, orgID, bucketID influxdb.ID) BaseFixture

NewBaseFixture creates a BaseFixture with and admin, an org owner, a member, and an outsider for the given orgID and bucketID.

func (BaseFixture) GetClient

func (f BaseFixture) GetClient(tag ClientTag) *tests.Client

GetClient returns the client associated with the given tag.

type ClientTag

type ClientTag string
const (
	AdminTag    ClientTag = "admin"
	OwnerTag    ClientTag = "owner"
	MemberTag   ClientTag = "member"
	NoAccessTag ClientTag = "no_access"
)

Jump to

Keyboard shortcuts

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