testutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJson

func FormatJson(unformatted string, indent string) (string, error)

func MarshalJson

func MarshalJson(v map[string]interface{}) (string, error)

func UmarshalJson

func UmarshalJson(data []byte) (map[string]interface{}, error)

Types

type AuraTestHelper

type AuraTestHelper struct {
	Server *httptest.Server
	// contains filtered or unexported fields
}

func NewAuraTestHelper

func NewAuraTestHelper(t *testing.T) AuraTestHelper

func (*AuraTestHelper) AssertConfig

func (helper *AuraTestHelper) AssertConfig(expected string)

func (*AuraTestHelper) AssertConfigValue

func (helper *AuraTestHelper) AssertConfigValue(key string, expected string)

func (*AuraTestHelper) AssertCredentialsValue

func (helper *AuraTestHelper) AssertCredentialsValue(key string, expected string)

func (*AuraTestHelper) AssertErr

func (helper *AuraTestHelper) AssertErr(expected string)

func (*AuraTestHelper) AssertOut

func (helper *AuraTestHelper) AssertOut(expected string)

func (*AuraTestHelper) AssertOutJson

func (helper *AuraTestHelper) AssertOutJson(expected string)

func (*AuraTestHelper) AsssertOk

func (helper *AuraTestHelper) AsssertOk()

Assets no errors were returned

func (*AuraTestHelper) Close

func (helper *AuraTestHelper) Close()

func (*AuraTestHelper) ExecuteCommand

func (helper *AuraTestHelper) ExecuteCommand(command string)

func (*AuraTestHelper) NewRequestHandlerMock

func (helper *AuraTestHelper) NewRequestHandlerMock(path string, status int, body string) *requestHandlerMock

func (*AuraTestHelper) OverwriteConfig

func (helper *AuraTestHelper) OverwriteConfig(cfg string)

func (*AuraTestHelper) PrintErr

func (helper *AuraTestHelper) PrintErr() string

func (*AuraTestHelper) PrintOut

func (helper *AuraTestHelper) PrintOut() string

func (*AuraTestHelper) SetConfig

func (helper *AuraTestHelper) SetConfig(cfg string)

func (*AuraTestHelper) SetConfigValue

func (helper *AuraTestHelper) SetConfigValue(key string, value interface{})

func (*AuraTestHelper) SetCredentialsValue

func (helper *AuraTestHelper) SetCredentialsValue(key string, value interface{})

Jump to

Keyboard shortcuts

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