Module: check_mk
Branch: master
Commit: 51843cc9558ae2eeb9f886830784c40670c18af5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=51843cc9558ae2…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Wed Dec 5 12:53:20 2018 +0100
6932 FIX cmk-update-agent: Apply urllib3 bugfix
It has been observed recently that the agent updater might crash
with an error message like
<pre>IDNAError: The label ... is not a valid A-label</pre>
The cause for this behavior is a bug in the underlying urllib3
python module. However, this has been fixed in a newer urrllib-version
and hence we updated the underlying python modules to newer versions
in order to apply the bugfix to cmk-update-agent.
FEED-3195
Change-Id: Ic95c1b0f918068d0238f79b4541fe18d486c2eb8
---
.werks/6932 | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/.werks/6932 b/.werks/6932
new file mode 100644
index 0000000..99cb42d
--- /dev/null
+++ b/.werks/6932
@@ -0,0 +1,18 @@
+Title: cmk-update-agent: Apply urllib3 bugfix
+Level: 1
+Component: agents
+Compatible: compat
+Edition: cee
+Version: 1.6.0i1
+Date: 1544009907
+Class: fix
+
+It has been observed recently that the agent updater might crash
+with an error message like
+<pre>IDNAError: The label ... is not a valid A-label</pre>
+
+The cause for this behavior is a bug in the underlying urllib3
+python module. However, this has been fixed in a newer urrllib-version
+and hence we updated the underlying python modules to newer versions
+in order to apply the bugfix to cmk-update-agent.
+
Module: check_mk
Branch: master
Commit: b94d07fe01a09eb04d6cf9ac75559815aab08130
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b94d07fe01a09e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 5 12:13:03 2018 +0100
6922 FIX agent_siemens_plc: Fixed configuration of individual values to fetch for single devices
The configured values were not saved by the GUI after creating / editing a rule in the rule set
"Siemens PLC (SPS)".
Change-Id: Ie84c2ca5213106f84eb6920ffb962478079e30e6
---
.werks/6922 | 12 ++++++++++++
cmk/gui/plugins/wato/datasource_programs.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/6922 b/.werks/6922
new file mode 100644
index 0000000..1598151
--- /dev/null
+++ b/.werks/6922
@@ -0,0 +1,12 @@
+Title: agent_siemens_plc: Fixed configuration of individual values to fetch for single devices
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1544005182
+
+The configured values were not saved by the GUI after creating / editing a rule in the rule set
+"Siemens PLC (SPS)".
diff --git a/cmk/gui/plugins/wato/datasource_programs.py b/cmk/gui/plugins/wato/datasource_programs.py
index 14667dc..163db01 100644
--- a/cmk/gui/plugins/wato/datasource_programs.py
+++ b/cmk/gui/plugins/wato/datasource_programs.py
@@ -905,7 +905,7 @@ register_rule(
),
title=_("Values to fetch from this device"),
validate=validate_siemens_plc_values,
- magic='@?@',
+ magic='@;@',
)),
],
optional_keys=["timeout"],
Module: check_mk
Branch: master
Commit: caa86253da982e883d792709d7cd1be08a03b2c5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=caa86253da982e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 5 08:13:18 2018 +0100
Simplified local integration test execution a bit
Integration tests are now executed in dedicated sites, not
heute / stable anymore. These sites are named "int_[branch_part]".
While the branch part is calculated out of the current git branch
name. The branch names are mangled like this: 1. split by "/" and only
the last element is used, then all characters except the ones allowed
in site IDs are strippted.
This should make local integration test execution a bit more straight forward
because there is no relation to the development sites anymore.
Change-Id: Idd9320f5e43eca53b79180251ee9e36e98ff4269
---
tests/conftest.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index 9a338c5..c407e50 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -10,6 +10,7 @@ pytest.register_assert_rewrite(
"unit.cmk.gui.tools")
import _pytest.monkeypatch
+import re
import collections
import errno
import os
@@ -250,10 +251,15 @@ def _get_site_object():
def _site_id():
site_id = os.environ.get("OMD_SITE")
- if site_id is None:
- site_id = file(testlib.repo_path() + "/.site").read().strip()
- os.putenv("OMD_SITE", site_id)
+ if site_id is not None:
+ return site_id
+ branch_name = os.environ.get("BRANCH", testlib.current_branch_name())
+ # Split by / and get last element, remove unwanted chars
+ branch_part = re.sub("[^a-zA-Z0-9_]", "", branch_name.split("/")[-1])
+ site_id = "int_%s" % branch_part
+
+ os.putenv("OMD_SITE", site_id)
return site_id