cpi

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPIFunctionMockResponse

func GetCPIFunctionMockResponse(functionName, testType string) (*http.Response, error)

GetCPIFunctionMockResponse -Generate mock response payload for different CPI functions

func GetEmptyHTTPResponseBodyAndErrorNil added in v1.123.0

func GetEmptyHTTPResponseBodyAndErrorNil() (*http.Response, error)

GetEmptyHTTPResponseBodyAndErrorNil -Empty http respose body

func GetIntegrationArtifactGetMplStatusCommandMockResponse added in v1.124.0

func GetIntegrationArtifactGetMplStatusCommandMockResponse(testType string) (*http.Response, error)

GetIntegrationArtifactGetMplStatusCommandMockResponse -Provide http respose body

func GetIntegrationArtifactGetServiceEndpointCommandMockResponse added in v1.124.0

func GetIntegrationArtifactGetServiceEndpointCommandMockResponse(testCaseType string) (*http.Response, error)

GetIntegrationArtifactGetServiceEndpointCommandMockResponse -Provide http respose body

func GetIntegrationArtifactGetServiceEndpointPositiveCaseRespBody added in v1.124.0

func GetIntegrationArtifactGetServiceEndpointPositiveCaseRespBody() (*http.Response, error)

GetIntegrationArtifactGetServiceEndpointPositiveCaseRespBody -Provide http respose body for positive case

func GetNegativeCaseHTTPResponseBodyAndErrorNil added in v1.123.0

func GetNegativeCaseHTTPResponseBodyAndErrorNil() (*http.Response, error)

GetNegativeCaseHTTPResponseBodyAndErrorNil -Negative case http respose body

Types

type CommonUtils

type CommonUtils interface {
	GetBearerToken() (string, error)
}

CommonUtils for CPI

type TokenParameters

type TokenParameters struct {
	TokenURL, Username, Password string
	Client                       piperhttp.Sender
}

TokenParameters struct

func (TokenParameters) GetBearerToken

func (tokenParameters TokenParameters) GetBearerToken() (string, error)

GetBearerToken -Provides the bearer token for making CPI OData calls

Jump to

Keyboard shortcuts

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