summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-04-02 14:19:24 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-04-02 14:19:24 -0400
commit7658ac1c97d03ad233da0d0cfc786659dabd4cd4 (patch)
tree375637ab1262d9824365065e2e70f9cdd3283c81 /testsuite
parente59ffe8f211e7bf2314402b96b44e0e72021c15f (diff)
downloadbcfg2-7658ac1c97d03ad233da0d0cfc786659dabd4cd4.tar.gz
bcfg2-7658ac1c97d03ad233da0d0cfc786659dabd4cd4.tar.bz2
bcfg2-7658ac1c97d03ad233da0d0cfc786659dabd4cd4.zip
testsuite: fixed Probes test that uses version information
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py
index 1022bdc5a..0794db62e 100644
--- a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py
+++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py
@@ -3,6 +3,7 @@ import sys
import copy
import time
import lxml.etree
+import Bcfg2.version
import Bcfg2.Server
import Bcfg2.Server.Plugin
from mock import Mock, MagicMock, patch
@@ -217,6 +218,8 @@ group-specific"""
ps.get_matching.return_value = matching
metadata = Mock()
+ metadata.version_info = \
+ Bcfg2.version.Bcfg2VersionInfo(Bcfg2.version.__version__)
pdata = ps.get_probe_data(metadata)
ps.get_matching.assert_called_with(metadata)
# we can't create a matching operator.attrgetter object, and I
@@ -621,5 +624,3 @@ text
metadata.hostname = "nonexistent"
self.assertEqual(probes.get_additional_data(metadata),
ClientProbeDataSet())
-
-