Documentation ¶
Index ¶
- func LoadChainsInfo(env string) ([]cns.Chain, error)
- func LoadClientChainsInfo(env string) ([]chainclient.ChainClient, error)
- func LoadIngressInfo(env string) (EmerisIngress, EmerisAdminIngress, error)
- func RespBodyToMap(jsonReader io.ReadCloser, data *map[string]interface{}, t *testing.T)
- func RetryOnError(f func() error, interval time.Duration, maxRetries int) error
- func StringToMap(jsonString []byte, data *map[string]interface{}, t *testing.T)
- type BaseTestSuite
- type EmerisAdminIngress
- type EmerisIngress
- type HttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClientChainsInfo ¶
func LoadClientChainsInfo(env string) ([]chainclient.ChainClient, error)
func LoadIngressInfo ¶
func LoadIngressInfo(env string) (EmerisIngress, EmerisAdminIngress, error)
func RespBodyToMap ¶
func RespBodyToMap(jsonReader io.ReadCloser, data *map[string]interface{}, t *testing.T)
Types ¶
type BaseTestSuite ¶
type BaseTestSuite struct { suite.Suite Env string EmIngress EmerisIngress Chains []cns.Chain Client *HttpClient }
func (*BaseTestSuite) SetupTest ¶
func (suite *BaseTestSuite) SetupTest()
type EmerisAdminIngress ¶
type EmerisIngress ¶
type HttpClient ¶
func NewHttpClient ¶
func NewHttpClient(env, scheme, host, basePath string) (*HttpClient, error)
func (*HttpClient) BuildUrl ¶
func (c *HttpClient) BuildUrl(path string, args ...interface{}) string
func (*HttpClient) DoJson ¶
func (c *HttpClient) DoJson(method string, jsonIn interface{}, jsonOut interface{}, endpoint string, endpointParams ...interface{}) error
DoJson performs a HTTP request sending jsonIn as body and unmarshalling jsonOut.
func (*HttpClient) GetJson ¶
func (c *HttpClient) GetJson(jsonOut interface{}, endpoint string, endpointParams ...interface{}) error
GetJson performs a GET request and unmarshalls jsonOut.
Click to show internal directories.
Click to hide internal directories.