diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-04-02 14:19:24 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-04-02 14:19:24 -0400 |
commit | 7658ac1c97d03ad233da0d0cfc786659dabd4cd4 (patch) | |
tree | 375637ab1262d9824365065e2e70f9cdd3283c81 /testsuite | |
parent | e59ffe8f211e7bf2314402b96b44e0e72021c15f (diff) | |
download | bcfg2-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.py | 5 |
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()) - - |