projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes the collection of cpu metric in some openstack versions
[osm/MON.git]
/
osm_mon
/
tests
/
unit
/
collector
/
utils
/
test_openstack.py
diff --git
a/osm_mon/tests/unit/collector/utils/test_openstack.py
b/osm_mon/tests/unit/collector/utils/test_openstack.py
index
76adc55
..
7cfa4bf
100644
(file)
--- a/
osm_mon/tests/unit/collector/utils/test_openstack.py
+++ b/
osm_mon/tests/unit/collector/utils/test_openstack.py
@@
-43,7
+43,7
@@
class OpenstackUtilsTest(TestCase):
OpenstackUtils.get_session(creds)
mock_session.Session.assert_called_once_with(
OpenstackUtils.get_session(creds)
mock_session.Session.assert_called_once_with(
- auth=mock.ANY, verify=True)
+ auth=mock.ANY, verify=True
, timeout=10
)
def test_session_with_insecure(self, mock_session):
creds = {
def test_session_with_insecure(self, mock_session):
creds = {
@@
-58,7
+58,7
@@
class OpenstackUtilsTest(TestCase):
OpenstackUtils.get_session(creds)
mock_session.Session.assert_called_once_with(
OpenstackUtils.get_session(creds)
mock_session.Session.assert_called_once_with(
- auth=mock.ANY, verify=False)
+ auth=mock.ANY, verify=False
, timeout=10
)
def test_session_with_insecure_false(self, mock_session):
creds = {
def test_session_with_insecure_false(self, mock_session):
creds = {
@@
-72,4
+72,4
@@
class OpenstackUtilsTest(TestCase):
}
OpenstackUtils.get_session(creds)
mock_session.Session.assert_called_once_with(
}
OpenstackUtils.get_session(creds)
mock_session.Session.assert_called_once_with(
- auth=mock.ANY, verify=True)
+ auth=mock.ANY, verify=True
, timeout=10
)