rest_api_mock_errors_test.go | |
---|---|
|
|
Mock object used by unit tests for REST API. This mocked object returns error from every method. |
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/commands/restapimockerrorstest.html |
|
RestAPIMockErrors is an implementation of mocked REST API that returns errors in all cases. |
|
ReadListOfClusters returns an error as its last return value |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
ReadListOfTriggers returns an error as its last return value |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
ReadTriggerByID returns an error as its last return value. This is a mock implementation of original method. |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
ReadListOfConfigurationProfiles returns an error as its last return value. This is a mock implementation of original method. |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
ReadListOfConfigurations returns an error as its last return value. This is a mock implementation of original method. |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
ReadConfigurationProfile returns an error as its last return value. This is a mock implementation of original method. |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
ReadClusterConfigurationByID returns an error as its last return value. This is a mock implementation of original method. |
|
proper data structure that is expected as return value |
|
return mocked response with error structure |
|
EnableClusterConfiguration returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
DisableClusterConfiguration returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
DeleteClusterConfiguration returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
DeleteCluster returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
DeleteConfigurationProfile returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
AddCluster returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
AddConfigurationProfile access the REST API endpoint to add new configuration profile. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
AddClusterConfiguration returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
AddTrigger returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
DeleteTrigger returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
ActivateTrigger returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|
DeactivateTrigger returns an error as its last return value. This is a mock implementation of original method. |
|
return mocked response with error structure |
|