cases

package
v0.0.0-...-f574766 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EachTestConfigFor

func EachTestConfigFor(t *testing.T, includes, ignores []string, tester func(*testing.T, config.Config, TestConfig) bool)

Types

type TestConfig

type TestConfig struct {
	ID                     string
	HeadersToSign          []string           `json:"headersToSign"`
	Title                  string             `json:"title"`
	Description            string             `json:"description"`
	Request                request.Request    `json:"request"`
	Config                 config.Config      `json:"config"`
	Expected               TestConfigExpected `json:"expected"`
	RawKeyDB               [][2]string        `json:"keyDb"`
	FilePath               string
	MandatorySignedHeaders []string `json:"mandatorySignedHeaders"`
}

func (TestConfig) KeyDB

func (testConfig TestConfig) KeyDB() keydb.KeyDB

type TestConfigExpected

type TestConfigExpected struct {
	Request              request.Request `json:"request"`
	CanonicalizedRequest string          `json:"canonicalizedRequest"`
	StringToSign         string          `json:"stringToSign"`
	AuthHeader           string          `json:"authHeader"`
	APIKeyID             string          `json:"apiKey"`
	Error                string          `json:"error"`
	URL                  string          `json:"url"`
}

Jump to

Keyboard shortcuts

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