libcsm.tests.mock_objects.mock_sls
module
Module contents
Reusable mocks for SLS requests.
- class libcsm.tests.mock_objects.mock_sls.MockSLSResponse
Bases:
object
Setup testing variables that are reused in tests.
- bad_mock_components = [{'No_extra_properties': {'A': 100, 'Aliases': ['ncn-w001']}, 'Parent': 'par1', 'Xname': 'xname1'}, {'No_extra_properties': {'A': 101, 'Aliases': ['ncn-s002']}, 'Parent': 'par2', 'Xname': 'xname2'}]
- bad_mock_http_response = MockHTTPResponse()
- mock_components = [{'ExtraProperties': {'A': 100, 'Aliases': ['ncn-w001']}, 'Parent': 'par1', 'Xname': 'xname1'}, {'ExtraProperties': {'A': 101, 'Aliases': ['ncn-s002']}, 'Parent': 'par2', 'Xname': 'xname2'}]
- mock_http_response = MockHTTPResponse()
- unauth_mock_http_response = MockHTTPResponse()