Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 2a89f0db8daaf05af972f87cf5d1705ed65500db
https://github.com/tribe29/checkmk/commit/2a89f0db8daaf05af972f87cf5d1705ed…
Author: Christoph Rauch <christoph.rauch(a)tribe29.com>
Date: 2021-01-29 (Fri, 29 Jan 2021)
Changed paths:
M cmk/gui/plugins/openapi/livestatus_helpers/testing.py
M livestatus/api/python/livestatus.py
Log Message:
-----------
livestatus.py: add site parameter to SingleSiteConnection
* this is needed for future changes in the testing
framework
Change-Id: I407753e43653eefcc8c7ac201f135aff1abed916
Commit: a1e1f795e0ca0aeb8a26403153986fe26a2a6c13
https://github.com/tribe29/checkmk/commit/a1e1f795e0ca0aeb8a26403153986fe26…
Author: Christoph Rauch <christoph.rauch(a)tribe29.com>
Date: 2021-01-29 (Fri, 29 Jan 2021)
Changed paths:
M livestatus/api/python/livestatus.py
M tests/unit/livestatus/test_livestatus_unit.py
Log Message:
-----------
livestatus.py: extract _parse_socket_url
* add doctests and improve error handling
Change-Id: I5870a4d356759854c1afe2ddd72888c54fc83a98
Commit: d5276fe6568a2502460016df4c2cda5cc89787b9
https://github.com/tribe29/checkmk/commit/d5276fe6568a2502460016df4c2cda5cc…
Author: Christoph Rauch <christoph.rauch(a)tribe29.com>
Date: 2021-01-29 (Fri, 29 Jan 2021)
Changed paths:
M cmk/gui/plugins/openapi/livestatus_helpers/testing.py
M tests/unit/cmk/ec/test_host_config.py
M tests/unit/cmk/gui/plugins/openapi/livestatus_helpers/test_local_connection.py
M tests/unit/cmk/gui/plugins/visuals/test_filters.py
M tests/unit/cmk/gui/test_views.py
Log Message:
-----------
REST API: add multi-site support to MockLivestatusConnection
* set_sites, can now configure any number of sites. These will
then be used by the mocking fixture (mock_livestatus)
* add_table supports site_name as additional parameter,
with which tables can be added to specific sites. If
no specific site is chosen, the first site is used.
* for each configured site a mocked socket will be created,
which handles the communication with livestatus.py
* queries will be expected on all configured sites
* commands will be expected only on the first configured site
* NOTE: data consistency (e.g. each host only on one site) will
not be checked. This is the responsibility of the programmer
writing the test.
Change-Id: If73422a274ecef33e320a5262b6fc7b3f291e5df
Compare:
https://github.com/tribe29/checkmk/compare/16c9553adeb9...d5276fe6568a