Documentation ¶
Index ¶
- func GetCPIFunctionMockResponse(functionName, testType string) (*http.Response, error)
- func GetCPIFunctionNameByURLCheck(url, method, testType string) string
- func GetEmptyHTTPResponseBodyAndErrorNil() (*http.Response, error)
- func GetFunctionNameByTestTypeAndMethod(method, testType string) string
- func GetFunctionNamePositiveAndCreateIntegrationDesigntimeArtifactResBody(method string) string
- func GetFunctionNamePositiveAndUpdateIntegrationDesigntimeArtifactResBody(method string) string
- func GetIntegrationArtifactDeployErrorDetailsMockResponse(testType string) (*http.Response, error)
- func GetIntegrationArtifactDeployErrorStatusMockResponseBody() (*http.Response, error)
- func GetIntegrationArtifactDeployStatusErrorMockResponseBody() (*http.Response, error)
- func GetIntegrationArtifactDeployStatusMockResponse(testType string) (*http.Response, error)
- func GetIntegrationArtifactDeployStatusMockResponseBody() (*http.Response, error)
- func GetIntegrationArtifactDeployStatusPayload(status string) string
- func GetIntegrationArtifactGetMplStatusCommandMockResponse(testType string) (*http.Response, error)
- func GetIntegrationArtifactGetServiceEndpointCommandMockResponse(testCaseType string) (*http.Response, error)
- func GetIntegrationArtifactGetServiceEndpointPositiveCaseRespBody() (*http.Response, error)
- func GetIntegrationDesigntimeArtifactMockResponse(testType string) (*http.Response, error)
- func GetMockResponseByTestTypeAndMockFunctionName(mockFuntionName, testType string) (*http.Response, error)
- func GetNegativeCaseHTTPResponseBodyAndErrorNil() (*http.Response, error)
- func GetParameterKeyMissingResponseBody() (*http.Response, error)
- func GetPositiveCaseResponseByTestType(testType string) (*http.Response, error)
- func GetRespBodyHTTPStatusCreated() (*http.Response, error)
- func GetRespBodyHTTPStatusOK() (*http.Response, error)
- func GetRespBodyHTTPStatusServiceErrorResponse() (*http.Response, error)
- func GetRespBodyHTTPStatusServiceNotFound() (*http.Response, error)
- func IntegrationArtifactDownloadCommandMockResponse(testType string) (*http.Response, error)
- func IntegrationArtifactDownloadCommandMockResponsePositiveCaseRespBody() (*http.Response, error)
- func IntegrationDesigntimeArtifactUpdateMockResponse(testType string) (*http.Response, error)
- func NegtiveResForIntegrationArtifactGenericCommandMockResponse(message string) (*http.Response, error)
- func UpdateIntegrationDesigntimeArtifactMockResponse(testType string) (*http.Response, error)
- type CommonUtils
- type TokenParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPIFunctionMockResponse ¶
GetCPIFunctionMockResponse -Generate mock response payload for different CPI functions
func GetCPIFunctionNameByURLCheck ¶ added in v1.126.0
GetCPIFunctionNameByURLCheck - get postive response by test case type
func GetEmptyHTTPResponseBodyAndErrorNil ¶ added in v1.123.0
GetEmptyHTTPResponseBodyAndErrorNil -Empty http respose body
func GetFunctionNameByTestTypeAndMethod ¶ added in v1.126.0
GetFunctionNameByTestTypeAndMethod -get function name by test tyep
func GetFunctionNamePositiveAndCreateIntegrationDesigntimeArtifactResBody ¶ added in v1.130.0
GetFunctionNamePositiveAndCreateIntegrationDesigntimeArtifactResBody -Get Function Name
func GetFunctionNamePositiveAndUpdateIntegrationDesigntimeArtifactResBody ¶ added in v1.130.0
GetFunctionNamePositiveAndUpdateIntegrationDesigntimeArtifactResBody -Get Function Name
func GetIntegrationArtifactDeployErrorDetailsMockResponse ¶ added in v1.130.0
GetIntegrationArtifactDeployErrorDetailsMockResponse -Provide http respose body
func GetIntegrationArtifactDeployErrorStatusMockResponseBody ¶ added in v1.130.0
GetIntegrationArtifactDeployErrorStatusMockResponseBody -Provide http respose body
func GetIntegrationArtifactDeployStatusErrorMockResponseBody ¶ added in v1.130.0
GetIntegrationArtifactDeployStatusErrorMockResponseBody -Provide http respose body
func GetIntegrationArtifactDeployStatusMockResponse ¶ added in v1.130.0
GetIntegrationArtifactDeployStatusMockResponse -Provide http respose body
func GetIntegrationArtifactDeployStatusMockResponseBody ¶ added in v1.130.0
GetIntegrationArtifactDeployStatusMockResponseBody -Provide http respose body
func GetIntegrationArtifactDeployStatusPayload ¶ added in v1.130.0
GetIntegrationArtifactDeployStatusPayload -Get Payload
func GetIntegrationArtifactGetMplStatusCommandMockResponse ¶ added in v1.124.0
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
GetIntegrationArtifactGetServiceEndpointPositiveCaseRespBody -Provide http respose body for positive case
func GetIntegrationDesigntimeArtifactMockResponse ¶ added in v1.126.0
GetIntegrationDesigntimeArtifactMockResponse -Provide http respose body
func GetMockResponseByTestTypeAndMockFunctionName ¶ added in v1.126.0
func GetMockResponseByTestTypeAndMockFunctionName(mockFuntionName, testType string) (*http.Response, error)
GetMockResponseByTestTypeAndMockFunctionName - Get mock response by testtype and mock function name
func GetNegativeCaseHTTPResponseBodyAndErrorNil ¶ added in v1.123.0
GetNegativeCaseHTTPResponseBodyAndErrorNil -Negative case http respose body
func GetParameterKeyMissingResponseBody ¶ added in v1.126.0
GetParameterKeyMissingResponseBody -Parameter key missing http respose body
func GetPositiveCaseResponseByTestType ¶ added in v1.125.0
GetPositiveCaseResponseByTestType - get postive response by test case type
func GetRespBodyHTTPStatusCreated ¶ added in v1.126.0
GetRespBodyHTTPStatusCreated -Provide http respose body for Http StatusOK
func GetRespBodyHTTPStatusOK ¶ added in v1.126.0
GetRespBodyHTTPStatusOK -Provide http respose body for Http StatusOK
func GetRespBodyHTTPStatusServiceErrorResponse ¶ added in v1.126.0
GetRespBodyHTTPStatusServiceErrorResponse -Provide http respose body for server error
func GetRespBodyHTTPStatusServiceNotFound ¶ added in v1.126.0
GetRespBodyHTTPStatusServiceNotFound -Provide http respose body for Http URL not Found
func IntegrationArtifactDownloadCommandMockResponse ¶ added in v1.125.0
IntegrationArtifactDownloadCommandMockResponse -Provide http respose body
func IntegrationArtifactDownloadCommandMockResponsePositiveCaseRespBody ¶ added in v1.125.0
IntegrationArtifactDownloadCommandMockResponsePositiveCaseRespBody -Provide http respose body for positive case
func IntegrationDesigntimeArtifactUpdateMockResponse ¶ added in v1.126.0
IntegrationDesigntimeArtifactUpdateMockResponse -Provide http respose body
Types ¶
type CommonUtils ¶
CommonUtils for CPI
type TokenParameters ¶
TokenParameters struct
func (TokenParameters) GetBearerToken ¶
func (tokenParameters TokenParameters) GetBearerToken() (string, error)
GetBearerToken -Provides the bearer token for making CPI OData calls