Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: f17a3894a21827be02bf6e94501aabd10a952a41
https://github.com/tribe29/checkmk/commit/f17a3894a21827be02bf6e94501aabd10…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2022-04-20 (Wed, 20 Apr 2022)
Changed paths:
M tests/unit/cmk/base/test_diagnostics.py
M tests/unit/conftest.py
M tests/unit/livestatus/test_livestatus_unit.py
Log Message:
-----------
Set OMD_ROOT during unit tests
Change-Id: Iae569b9412ade7f38a506e6b0a8015dcbbccb79c
Commit: 2d48bcbd34f01cdff317ce395fc86c710adc2c57
https://github.com/tribe29/checkmk/commit/2d48bcbd34f01cdff317ce395fc86c710…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2022-04-20 (Wed, 20 Apr 2022)
Changed paths:
A agent-receiver/agent_receiver/apps.py
A agent-receiver/agent_receiver/endpoints.py
R agent-receiver/agent_receiver/server.py
M omd/packages/check_mk/skel/etc/init.d/agent-receiver
M tests/unit/agent_receiver/conftest.py
A tests/unit/agent_receiver/test_apps.py
A tests/unit/agent_receiver/test_endpoints.py
R tests/unit/agent_receiver/test_server.py
Log Message:
-----------
agent receiver: internal restructuring
The main application used by gunicorn is now created in a separate
module by a dedicated function. This makes testing easier (since we need
the environment variable OMD_ROOT to create the app, which is not yet
available at import time).
Change-Id: I92a519617399d5cdbf7976085af7be7b48639add
Commit: 7ffde175fcbef51e80866da4da1a251bca8ff73f
https://github.com/tribe29/checkmk/commit/7ffde175fcbef51e80866da4da1a251bc…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2022-04-20 (Wed, 20 Apr 2022)
Changed paths:
M agent-receiver/agent_receiver/apps.py
M agent-receiver/agent_receiver/certificates.py
M agent-receiver/agent_receiver/checkmk_rest_api.py
R agent-receiver/agent_receiver/constants.py
M agent-receiver/agent_receiver/endpoints.py
M agent-receiver/agent_receiver/log.py
A agent-receiver/agent_receiver/site_context.py
M agent-receiver/agent_receiver/utils.py
M tests/testlib/__init__.py
M tests/unit/agent_receiver/conftest.py
M tests/unit/agent_receiver/test_apps.py
M tests/unit/agent_receiver/test_endpoints.py
M tests/unit/agent_receiver/test_receiver_utils.py
Log Message:
-----------
agent receiver: collect all site-dependent things into a module
We use cached functions to access variables such as OMD_ROOT. Using
plain variables does not work, since the site context is not available
at import time during unit tests (only at runtime).
Change-Id: I784191371adb089cf3fe031dbc681f29af7a961c
Commit: 42d38365ecf859803258c26c244cdf94b689e3db
https://github.com/tribe29/checkmk/commit/42d38365ecf859803258c26c244cdf94b…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2022-04-20 (Wed, 20 Apr 2022)
Changed paths:
A .werks/13864
M agent-receiver/agent_receiver/checkmk_rest_api.py
M agent-receiver/agent_receiver/endpoints.py
M tests/unit/agent_receiver/test_endpoints.py
Log Message:
-----------
13864 FIX Host registration: Enable on sites with disabled Setup & check site name
The host registration via the <tt>cmk-agent-ctl</tt> command failed for
sites with disabled Setup.
Furthermore, upon registration, we now check if the site where the host is
registering is also the site on which it is monitored (only relevant in
distributed setups). If not, the registration fails.
Finally, upon registration we also ensure that the host is not a cluster
host, since cluster hosts have no direct physical or virtual counterpart
which needs to be registered.
CMK-10258
Change-Id: I4ec9105ffa70badd17353cd1fe22b1dddaaef8dd
Compare:
https://github.com/tribe29/checkmk/compare/507fddbc8c4e...42d38365ecf8