appaccess

package
v1.2.3-fred.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppTestOptions

type AppTestOptions struct {
	ExtraRootApps        []service.App
	ExtraLeafApps        []service.App
	RootClusterListeners helpers.InstanceListenerSetupFunc
	LeafClusterListeners helpers.InstanceListenerSetupFunc

	RootConfig func(config *service.Config)
	LeafConfig func(config *service.Config)
}

type Pack

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

Pack contains identity as well as initialized Teleport clusters and instances.

func Setup

func Setup(t *testing.T) *Pack

Setup configures all clusters and servers needed for a test.

func SetupWithOptions

func SetupWithOptions(t *testing.T, opts AppTestOptions) *Pack

SetupWithOptions configures app access test with custom options.

func (*Pack) CreateAppSession

func (p *Pack) CreateAppSession(t *testing.T, publicAddr, clusterName string) string

CreateAppSession creates an application session with the root cluster. The application that the user connects to may be running in a leaf cluster.

func (*Pack) LeafAppClusterName

func (p *Pack) LeafAppClusterName() string

func (*Pack) LeafAppPublicAddr

func (p *Pack) LeafAppPublicAddr() string

func (*Pack) MakeRequest

func (p *Pack) MakeRequest(sessionCookie string, method string, endpoint string, headers ...service.Header) (int, string, error)

MakeRequest makes a request to the root cluster with the given session cookie.

func (*Pack) RootAppClusterName

func (p *Pack) RootAppClusterName() string

func (*Pack) RootAppPublicAddr

func (p *Pack) RootAppPublicAddr() string

Jump to

Keyboard shortcuts

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