rest_api_mock_empty_test.go | |
---|---|
|
|
Mock object used by unit tests for REST API. This mocked object returns empty data from every method. |
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/commands/restapimockemptytest.html |
|
RestAPIMockEmpty is an implementation of mocked REST API that returns empty data structures in all cases. |
|
ReadListOfClusters reads mocked empty list of clusters via the REST API. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
ReadListOfTriggers reads mocked empty list of triggers via the REST API. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
ReadTriggerByID reads trigger identified by its ID via the REST API. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
ReadListOfConfigurationProfiles reads mocked empty list of configuration profiles via the REST API. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
ReadListOfConfigurations reads mocked empty list of configuration via the REST API. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
ReadConfigurationProfile access the REST API endpoint to read selected configuration profile. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
ReadClusterConfigurationByID access the REST API endpoint to read cluster configuration for cluster defined by its ID. This is a mock implementation of original method. |
|
data structure to be returned |
|
return mocked response with empty data structure |
|
EnableClusterConfiguration access the REST API endpoint to enable existing cluster configuration. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
DisableClusterConfiguration access the REST API endpoint to disable existing cluster configuration. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
DeleteClusterConfiguration access the REST API endpoint to delete existing cluster configuration. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
DeleteCluster access the REST API endpoint to delete/deregister existing cluster. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
DeleteConfigurationProfile access the REST API endpoint to delete existing configuration profile. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
AddCluster access the REST API endpoint to add/register new cluster. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
AddConfigurationProfile access the REST API endpoint to add new configuration profile. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
AddClusterConfiguration access the REST API endpoint to add new cluster configuration. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
AddTrigger access the REST API endpoint to add/register new trigger. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
DeleteTrigger access the REST API endpoint to delete the selected trigger. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
ActivateTrigger access the REST API endpoint to activate the selected trigger. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|
DeactivateTrigger access the REST API endpoint to deactivate the selected trigger. This is a mock implementation of original method. |
|
return mocked response with empty data structure |
|