test

package
v0.0.0-...-b24e222 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SampleConfig = `` /* 2148-byte string literal not displayed */

SampleConfig ...

Variables

This section is empty.

Functions

func BuildASCIIStartPacket

func BuildASCIIStartPacket() *tq.Packet

BuildASCIIStartPacket ..

func MockSecretProvider

func MockSecretProvider(ctx context.Context, logger loggerProvider, configPath string) (tq.SecretProvider, error)

MockSecretProvider creates a mock secret provider

func WriteSampleConfig

func WriteSampleConfig(path string) error

WriteSampleConfig write config to current root

Types

type Sequence

type Sequence struct {
	Packet         *tq.Packet
	ValidateHeader func(header *tq.Header) error
	ValidateBody   func(response []byte) error
	Validate       func(p *tq.Packet) error
}

Sequence ...

type Test

type Test struct {
	Name   string
	Secret []byte
	Seq    []Sequence
}

Test ...

func ASCIILoginEnable

func ASCIILoginEnable() Test

ASCIILoginEnable ..

func ASCIILoginFullFlow

func ASCIILoginFullFlow() Test

ASCIILoginFullFlow ...

func GetASCIIEnableAbortTests

func GetASCIIEnableAbortTests() []Test

GetASCIIEnableAbortTests ...

func GetASCIILoginAbortTests

func GetASCIILoginAbortTests() []Test

GetASCIILoginAbortTests ... https://datatracker.ietf.org/doc/html/rfc8907#section-5.4

func PapLoginFlow

func PapLoginFlow() Test

PapLoginFlow ...

Jump to

Keyboard shortcuts

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