From 5817f6833c569c7ff4d158314a47c29fddb3f110 Mon Sep 17 00:00:00 2001
From: licanwei
Date: Thu, 27 Jul 2017 15:20:51 +0800
Subject: [PATCH] Fix gate-watcher-python27-ubuntu-xenial FAILURE
There is no exc.HTTPUnauthorized in monascaclient now.
Change-Id: I1942b32d4581d1770819aa083a640f394c17d25a
Closes-Bug: #1706858
---
watcher/tests/datasource/test_monasca_helper.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/watcher/tests/datasource/test_monasca_helper.py b/watcher/tests/datasource/test_monasca_helper.py
index 5c49af641..1920436e3 100644
--- a/watcher/tests/datasource/test_monasca_helper.py
+++ b/watcher/tests/datasource/test_monasca_helper.py
@@ -15,7 +15,6 @@
# limitations under the License.
import mock
-from monascaclient import exc
from oslo_config import cfg
from oslo_utils import timeutils
@@ -94,8 +93,7 @@ class TestMonascaHelper(base.BaseTestCase):
['2016-07-29T12:55:36.000Z', 0.8, {}]],
'name': 'cpu.percent'}]
- monasca.metrics.list_measurements.side_effect = [
- exc.HTTPUnauthorized, expected_result]
+ monasca.metrics.list_measurements.side_effect = [expected_result]
mock_monasca.return_value = monasca
helper = monasca_helper.MonascaHelper()
val = helper.statistics_list(meter_name="cpu.percent", dimensions={})