diff options
author | Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> | 2017-08-31 04:47:59 +0000 |
---|---|---|
committer | Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> | 2017-08-31 04:49:53 +0000 |
commit | 7160548a5f1739770d6b8a7207ddeb49a72d6f5e (patch) | |
tree | edd685066fc19cd921a176e2d107432cba1a8358 /baro_tests/tests.py | |
parent | 68419c46491afae5cfb52e51fc25085222bd00f7 (diff) |
Adding different method to access compute and controllers
This patch contains a different method to log into nodes
and adding csv.conf file to test with CSV method
Change-Id: I9e1e839c0e897e8780119d16eca6136808302259
Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
Diffstat (limited to 'baro_tests/tests.py')
-rw-r--r-- | baro_tests/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/baro_tests/tests.py b/baro_tests/tests.py index 4cbd0e87..580ee4d2 100644 --- a/baro_tests/tests.py +++ b/baro_tests/tests.py @@ -15,6 +15,7 @@ """Function for testing collectd plug-ins with different oup plug-ins""" import time +import math def test_snmp_sends_data( @@ -223,7 +224,7 @@ def test_csv_handles_plugin_data( + 'to interval...') for metric in plugin_metrics: logger.debug('{0} {1} {2} ... '.format(metric[0], metric[1], metric[2])) - if metric[3] - metric[2] != interval: + if math.floor(metric[3] - metric[2]) > interval: logger.error( 'Time of last two entries differ by ' + '{}, but interval is {}'.format( |