test

package
v0.0.0-...-653f6f9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListTest

func ListTest(t *testing.T, args []string, expected string)

func SetEnvironmentVariables

func SetEnvironmentVariables()

Types

type LoginTest

type LoginTest struct {
	APIurl   string
	UserID   string
	Password string
	OTP      string
	ReqErr   bool //if an error is expected as output
}

func (*LoginTest) Login

func (test *LoginTest) Login(t *testing.T)

type Test

type Test struct {
	InputJson  string //the inputted json
	OutputJson string //the outputted json

	Expected string //the output that is expected
	Contains bool   //if the output contains (expected) or qeuals it

	NotExpected string //the output that is notexpected
	NotContains bool   //if the output contains (notexpected) or qeuals it

	ReqErr      bool   //if an error is expected as output
	ErrContains string //the string the error should contain

	Args []string //cli arguments
}

func (*Test) StandardTest

func (test *Test) StandardTest(t *testing.T)

Jump to

Keyboard shortcuts

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