Module: check_mk
Branch: master
Commit: 8666dd98dec9ca8d3fb41766f6c455f253acabe4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8666dd98dec9ca…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 25 14:33:14 2017 +0100
Git-Tests von Integrationstests separiert
Change-Id: I125dfd5bc27d1c84e33785305824ba80e806a9ab
---
pytest.ini | 1 +
tests/agents/windows/test_precompiled_age.py | 4 ++++
tests/agents/windows/test_precompiled_cmk_update_agent.py | 4 ++++
tests/general/test_find_debug_print.py | 4 ++++
tests/general/test_permissions.py | 4 ++++
tests/packaging/test_files.py | 1 +
6 files changed, 18 insertions(+)
diff --git a/pytest.ini b/pytest.ini
index b4e450f..1282ff3 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -7,4 +7,5 @@ addopts = -rs -v --maxfail=1 -m "not packaging"
# Register some markers to classify the tests
markers =
pylint: Mark a test as pylint test.
+ git: Mark a test to be executed in the Git repository context
packaging: This is a test to execute to verify the packaging of the testbuilds.
diff --git a/tests/agents/windows/test_precompiled_age.py b/tests/agents/windows/test_precompiled_age.py
index 04ac4ba..ccc303a 100644
--- a/tests/agents/windows/test_precompiled_age.py
+++ b/tests/agents/windows/test_precompiled_age.py
@@ -4,6 +4,10 @@
import os
import glob
from testlib import cmk_path
+import pytest
+
+# Mark all tests in this file to be executed in the git context
+pytestmark = pytest.mark.git
precompiled_files = [
'check_mk_agent.exe',
diff --git a/tests/agents/windows/test_precompiled_cmk_update_agent.py b/tests/agents/windows/test_precompiled_cmk_update_agent.py
index b3a2b5d..5d91e58 100644
--- a/tests/agents/windows/test_precompiled_cmk_update_agent.py
+++ b/tests/agents/windows/test_precompiled_cmk_update_agent.py
@@ -4,6 +4,10 @@
import os
import glob
from testlib import cmc_path
+import pytest
+
+# Mark all tests in this file to be executed in the git context
+pytestmark = pytest.mark.git
precompiled_files = [
'plugins/cmk-update-agent.exe'
diff --git a/tests/general/test_find_debug_print.py b/tests/general/test_find_debug_print.py
index 293bc94..2f751a7 100644
--- a/tests/general/test_find_debug_print.py
+++ b/tests/general/test_find_debug_print.py
@@ -4,6 +4,10 @@
import os
import glob
from testlib import cmk_path, cmc_path
+import pytest
+
+# Mark all tests in this file to be executed in the git context
+pytestmark = pytest.mark.git
check_paths = [
"bin",
diff --git a/tests/general/test_permissions.py b/tests/general/test_permissions.py
index 0d54475..7cfa766 100644
--- a/tests/general/test_permissions.py
+++ b/tests/general/test_permissions.py
@@ -4,6 +4,10 @@
import os
import glob
from testlib import cmk_path
+import pytest
+
+# Mark all tests in this file to be executed in the git context
+pytestmark = pytest.mark.git
def is_executable(path):
return os.path.isfile(path) and os.access(path, os.X_OK)
diff --git a/tests/packaging/test_files.py b/tests/packaging/test_files.py
index 549d239..1b6bc83 100644
--- a/tests/packaging/test_files.py
+++ b/tests/packaging/test_files.py
@@ -3,6 +3,7 @@ import os
import subprocess
import re
+# Mark all tests in this file to be tests verifying build packages
pytestmark = pytest.mark.packaging
@pytest.mark.parametrize("what", [
Module: check_mk
Branch: master
Commit: da9b3d2296e4fc4d1c3d0d0cac606db7d87ebf67
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da9b3d2296e4fc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 25 14:15:11 2017 +0100
Updated bug entries #2553
Change-Id: I5b9f089bca01730aec61f58857a508062a778f3a
---
.bugs/2553 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.bugs/2553 b/.bugs/2553
new file mode 100644
index 0000000..d83461e
--- /dev/null
+++ b/.bugs/2553
@@ -0,0 +1,15 @@
+Title: Matching of Texts in EC inconsistent if no regexes are used
+Component: ec
+State: open
+Date: 2017-01-25 14:13:01
+Targetversion: 1.2.8
+Class: bug
+
+The matching if "app" and "ap[p]" differ - but shouldn't. The EC uses
+if different semantic for regexes and fixed strings. This can lead
+to strange behaviours. Also a prefix of .* seems to be removed before
+the distinction is made. So a match of .*foo seems to be treated jus
+like foo.
+
+Investigate this. Maybe we need to migrate existing match strings
+in order to stay compabible and fix the problem anyway.
Module: check_mk
Branch: master
Commit: 50b43c9804ec54dcbd4b41916154239f05e83387
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=50b43c9804ec54…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 25 13:37:32 2017 +0100
EC: Fixed possible exception when having none values in lq query responses
Change-Id: Ie3d6f51c676d9c3daa610b402f7336998abce386
---
bin/mkeventd | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/bin/mkeventd b/bin/mkeventd
index 40a364b..c3700d5 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -797,7 +797,7 @@ def quote_tab(col):
elif type(col) == bool:
return col and "1" or "0"
elif type(col) in [ tuple, list ]:
- col = "\1" + "\1".join(map(to_utf8, col))
+ col = "\1" + "\1".join([ quote_tab(e) for e in col ])
elif col == None:
col = "\2"
@@ -3735,8 +3735,7 @@ class EventStatus():
# None found, create one
event["count"] = 1
event["phase"] = "counting"
- with lock_eventstatus:
- self.new_event(event)
+ g_event_server.new_event_respecting_limits(event)
def count_event(self, event, rule, count):
@@ -3769,8 +3768,7 @@ class EventStatus():
else:
event["count"] = 1
event["phase"] = "counting"
- with lock_eventstatus:
- self.new_event(event)
+ g_event_server.new_event_respecting_limits(event)
found = event
# Did we just count the event that was just one too much?