Merge lp:~zulcss/ceilometer/havana-alarms-ftbfs into lp:~ubuntu-server-dev/ceilometer/havana

Proposed by Chuck Short
Status: Merged
Approved by: Chuck Short
Approved revision: 68
Merged at revision: 67
Proposed branch: lp:~zulcss/ceilometer/havana-alarms-ftbfs
Merge into: lp:~ubuntu-server-dev/ceilometer/havana
Diff against target: 454 lines (+96/-93)
4 files modified
debian/ceilometer-common.install (+1/-1)
debian/changelog (+5/-2)
debian/control (+1/-1)
debian/patches/skip-database-tests.patch (+89/-89)
To merge this branch: bzr merge lp:~zulcss/ceilometer/havana-alarms-ftbfs
Reviewer Review Type Date Requested Status
Scott Moser Approve
Review via email: mp+188331@code.launchpad.net

Description of the change

Fixes FTBFS.

To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/ceilometer-common.install'
--- debian/ceilometer-common.install 2013-07-18 13:28:12 +0000
+++ debian/ceilometer-common.install 2013-09-30 13:28:40 +0000
@@ -3,7 +3,7 @@
3etc/ceilometer/policy.json etc/ceilometer3etc/ceilometer/policy.json etc/ceilometer
4etc/ceilometer/sources.json etc/ceilometer4etc/ceilometer/sources.json etc/ceilometer
5tools/show_data.py usr/share/doc/ceilometer5tools/show_data.py usr/share/doc/ceilometer
6usr/bin/ceilometer-alarm-evaluator
6usr/bin/ceilometer-alarm-notifier7usr/bin/ceilometer-alarm-notifier
7usr/bin/ceilometer-alarm-singleton
8usr/bin/ceilometer-dbsync8usr/bin/ceilometer-dbsync
9usr/bin/ceilometer-expirer9usr/bin/ceilometer-expirer
1010
=== modified file 'debian/changelog'
--- debian/changelog 2013-09-19 15:36:08 +0000
+++ debian/changelog 2013-09-30 13:28:40 +0000
@@ -1,9 +1,9 @@
1ceilometer (2013.2~b3-0ubuntu2) UNRELEASED; urgency=low1ceilometer (2013.2~b3-0ubuntu2) UNRELEASED; urgency=low
22
3 * debian/patches/fix-setup-requirements.patch: Dropped no longer3 * debian/patches/fix-setup-requirements.patch: Dropped no longer
4 needed. 4 needed.
5 * debian/patches/skip-database.patch: Refreshed5 * debian/patches/skip-database.patch: Refreshed
6 * debian/control: 6 * debian/control:
7 - Add versioned dependency for python-pbr.7 - Add versioned dependency for python-pbr.
8 - Bump version dependency for python-webob.8 - Bump version dependency for python-webob.
9 - Add versioned dependency for alembic.9 - Add versioned dependency for alembic.
@@ -33,6 +33,9 @@
33 - Added binary dependency for python-netaddr.33 - Added binary dependency for python-netaddr.
34 - Add python-six as a dependency.34 - Add python-six as a dependency.
35 * debian/patches/fix-setup-requirements.patch: Bump sqlachemy version.35 * debian/patches/fix-setup-requirements.patch: Bump sqlachemy version.
36 * debian/ceilometer-common.install:
37 - Dropped ceilometer-alarm-singleton, no longer exists.
38 - Added usr/bin/ceilometer-alarm-evaluator.
3639
37 -- Chuck Short <zulcss@ubuntu.com> Fri, 13 Sep 2013 09:24:21 -040040 -- Chuck Short <zulcss@ubuntu.com> Fri, 13 Sep 2013 09:24:21 -0400
3841
3942
=== modified file 'debian/control'
--- debian/control 2013-09-19 15:25:32 +0000
+++ debian/control 2013-09-30 13:28:40 +0000
@@ -29,7 +29,7 @@
29 python-netaddr,29 python-netaddr,
30 python-nova,30 python-nova,
31 python-novaclient (>= 1:2.12.10),31 python-novaclient (>= 1:2.12.10),
32 python-oslo.config (>= 1:1.2.0a3),32 python-oslo.config (>= 1:1.2.0),
33 python-oslo.sphinx,33 python-oslo.sphinx,
34 python-pbr (>= 0.5.21),34 python-pbr (>= 0.5.21),
35 python-pecan (>= 0.2.0),35 python-pecan (>= 0.2.0),
3636
=== modified file 'debian/patches/skip-database-tests.patch'
--- debian/patches/skip-database-tests.patch 2013-09-27 18:17:03 +0000
+++ debian/patches/skip-database-tests.patch 2013-09-30 13:28:40 +0000
@@ -1,8 +1,8 @@
1Index: upstream/ceilometer/tests/db.py1diff --git a/ceilometer/tests/db.py b/ceilometer/tests/db.py
2===================================================================2index 6a767cf..58f2539 100644
3--- upstream.orig/ceilometer/tests/db.py 2013-09-27 11:16:25.365799203 -07003--- a/ceilometer/tests/db.py
4+++ upstream/ceilometer/tests/db.py 2013-09-27 11:16:25.353799203 -07004+++ b/ceilometer/tests/db.py
5@@ -41,8 +41,8 @@5@@ -41,8 +41,8 @@ class TestBase(test_base.TestCase):
6 message='.*you must provide a username and password.*')6 message='.*you must provide a username and password.*')
7 try:7 try:
8 self.conn = storage.get_connection(cfg.CONF)8 self.conn = storage.get_connection(cfg.CONF)
@@ -13,7 +13,7 @@
13 self.conn.upgrade()13 self.conn.upgrade()
14 14
15 def tearDown(self):15 def tearDown(self):
16@@ -56,9 +56,7 @@16@@ -56,9 +56,7 @@ class MongoDBFakeConnectionUrl(object):
17 def __init__(self):17 def __init__(self):
18 self.url = os.environ.get('CEILOMETER_TEST_MONGODB_URL')18 self.url = os.environ.get('CEILOMETER_TEST_MONGODB_URL')
19 if not self.url:19 if not self.url:
@@ -24,7 +24,7 @@
24 24
25 def __str__(self):25 def __str__(self):
26 return '%(url)s_%(db)s' % dict(url=self.url, db=uuid.uuid4().hex)26 return '%(url)s_%(db)s' % dict(url=self.url, db=uuid.uuid4().hex)
27@@ -83,7 +81,4 @@27@@ -83,7 +81,4 @@ class MixinTestsWithBackendScenarios(object):
28 28
29 scenarios = [29 scenarios = [
30 ('sqlalchemy', dict(database_connection='sqlite://')),30 ('sqlalchemy', dict(database_connection='sqlite://')),
@@ -32,11 +32,11 @@
32- ('hbase', dict(database_connection='hbase://__test__')),32- ('hbase', dict(database_connection='hbase://__test__')),
33- ('db2', dict(database_connection=DB2FakeConnectionUrl())),33- ('db2', dict(database_connection=DB2FakeConnectionUrl())),
34 ]34 ]
35Index: upstream/tests/agentbase.py35diff --git a/tests/agentbase.py b/tests/agentbase.py
36===================================================================36index 383b8e7..23d6f65 100644
37--- upstream.orig/tests/agentbase.py 2013-09-27 11:16:25.365799203 -070037--- a/tests/agentbase.py
38+++ upstream/tests/agentbase.py 2013-09-27 11:16:25.357799203 -070038+++ b/tests/agentbase.py
39@@ -174,7 +174,10 @@39@@ -175,7 +175,10 @@ class BaseAgentManagerTestCase(base.TestCase):
40 self.assertEqual(len(polling_tasks), 1)40 self.assertEqual(len(polling_tasks), 1)
41 self.assertTrue(60 in polling_tasks.keys())41 self.assertTrue(60 in polling_tasks.keys())
42 self.mgr.interval_task(polling_tasks.values()[0])42 self.mgr.interval_task(polling_tasks.values()[0])
@@ -48,7 +48,7 @@
48 self.assertEqual(pub.samples[0], self.Pollster.test_data)48 self.assertEqual(pub.samples[0], self.Pollster.test_data)
49 49
50 def test_setup_polling_tasks_multiple_interval(self):50 def test_setup_polling_tasks_multiple_interval(self):
51@@ -243,7 +246,10 @@51@@ -244,7 +247,10 @@ class BaseAgentManagerTestCase(base.TestCase):
52 self.assertEqual(len(polling_tasks.keys()), 1)52 self.assertEqual(len(polling_tasks.keys()), 1)
53 polling_tasks.get(10)53 polling_tasks.get(10)
54 self.mgr.interval_task(polling_tasks.get(10))54 self.mgr.interval_task(polling_tasks.get(10))
@@ -59,12 +59,12 @@
59+ self.skipTest("Skipped by Ubuntu")59+ self.skipTest("Skipped by Ubuntu")
60 self.assertEqual(len(pub.samples), 0)60 self.assertEqual(len(pub.samples), 0)
61 61
62 def test_manager_exception_persistency(self):62 def test_agent_manager_initialize_service_hook(self):
63Index: upstream/tests/alarm/test_notifier.py63diff --git a/tests/alarm/test_notifier.py b/tests/alarm/test_notifier.py
64===================================================================64index 3d71b75..46ea1aa 100644
65--- upstream.orig/tests/alarm/test_notifier.py 2013-09-27 11:16:25.365799203 -070065--- a/tests/alarm/test_notifier.py
66+++ upstream/tests/alarm/test_notifier.py 2013-09-27 11:16:25.357799203 -070066+++ b/tests/alarm/test_notifier.py
67@@ -58,7 +58,10 @@67@@ -58,7 +58,10 @@ class TestAlarmNotifier(base.TestCase):
68 'reason': 'Everything is on fire',68 'reason': 'Everything is on fire',
69 }69 }
70 self.service.notify_alarm(context.get_admin_context(), data)70 self.service.notify_alarm(context.get_admin_context(), data)
@@ -76,7 +76,7 @@
76 self.assertEqual(len(notifications), 1)76 self.assertEqual(len(notifications), 1)
77 self.assertEqual(notifications[0], (77 self.assertEqual(notifications[0], (
78 urlparse.urlsplit(data['actions'][0]),78 urlparse.urlsplit(data['actions'][0]),
79@@ -90,6 +93,7 @@79@@ -90,6 +93,7 @@ class TestAlarmNotifier(base.TestCase):
80 return notification80 return notification
81 81
82 def test_notify_alarm_rest_action_ok(self):82 def test_notify_alarm_rest_action_ok(self):
@@ -84,7 +84,7 @@
84 action = 'http://host/action'84 action = 'http://host/action'
85 85
86 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):86 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):
87@@ -102,8 +106,11 @@87@@ -102,8 +106,11 @@ class TestAlarmNotifier(base.TestCase):
88 action = 'https://host/action'88 action = 'https://host/action'
89 certificate = "/etc/ssl/cert/whatever.pem"89 certificate = "/etc/ssl/cert/whatever.pem"
90 90
@@ -98,7 +98,7 @@
98 98
99 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):99 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):
100 with mock.patch.object(requests, 'post') as poster:100 with mock.patch.object(requests, 'post') as poster:
101@@ -117,10 +124,13 @@101@@ -117,10 +124,13 @@ class TestAlarmNotifier(base.TestCase):
102 certificate = "/etc/ssl/cert/whatever.pem"102 certificate = "/etc/ssl/cert/whatever.pem"
103 key = "/etc/ssl/cert/whatever.key"103 key = "/etc/ssl/cert/whatever.key"
104 104
@@ -116,7 +116,7 @@
116 116
117 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):117 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):
118 with mock.patch.object(requests, 'post') as poster:118 with mock.patch.object(requests, 'post') as poster:
119@@ -132,8 +142,11 @@119@@ -132,8 +142,11 @@ class TestAlarmNotifier(base.TestCase):
120 def test_notify_alarm_rest_action_with_ssl_verify_disable_by_cfg(self):120 def test_notify_alarm_rest_action_with_ssl_verify_disable_by_cfg(self):
121 action = 'https://host/action'121 action = 'https://host/action'
122 122
@@ -130,7 +130,7 @@
130 130
131 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):131 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):
132 with mock.patch.object(requests, 'post') as poster:132 with mock.patch.object(requests, 'post') as poster:
133@@ -143,6 +156,7 @@133@@ -143,6 +156,7 @@ class TestAlarmNotifier(base.TestCase):
134 verify=False)134 verify=False)
135 135
136 def test_notify_alarm_rest_action_with_ssl_verify_disable(self):136 def test_notify_alarm_rest_action_with_ssl_verify_disable(self):
@@ -138,7 +138,7 @@
138 action = 'https://host/action?ceilometer-alarm-ssl-verify=0'138 action = 'https://host/action?ceilometer-alarm-ssl-verify=0'
139 139
140 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):140 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):
141@@ -155,8 +169,11 @@141@@ -155,8 +169,11 @@ class TestAlarmNotifier(base.TestCase):
142 def test_notify_alarm_rest_action_with_ssl_verify_enable_by_user(self):142 def test_notify_alarm_rest_action_with_ssl_verify_enable_by_user(self):
143 action = 'https://host/action?ceilometer-alarm-ssl-verify=1'143 action = 'https://host/action?ceilometer-alarm-ssl-verify=1'
144 144
@@ -152,11 +152,11 @@
152 152
153 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):153 with mock.patch('eventlet.spawn_n', self._fake_spawn_n):
154 with mock.patch.object(requests, 'post') as poster:154 with mock.patch.object(requests, 'post') as poster:
155Index: upstream/tests/api/v1/test_compute_duration_by_resource_scenarios.py155diff --git a/tests/api/v1/test_compute_duration_by_resource_scenarios.py b/tests/api/v1/test_compute_duration_by_resource_scenarios.py
156===================================================================156index 775b890..5a2d26a 100644
157--- upstream.orig/tests/api/v1/test_compute_duration_by_resource_scenarios.py 2013-09-27 11:16:25.365799203 -0700157--- a/tests/api/v1/test_compute_duration_by_resource_scenarios.py
158+++ upstream/tests/api/v1/test_compute_duration_by_resource_scenarios.py 2013-09-27 11:16:25.357799203 -0700158+++ b/tests/api/v1/test_compute_duration_by_resource_scenarios.py
159@@ -85,7 +85,10 @@159@@ -85,7 +85,10 @@ class TestComputeDurationByResource(tests_api.TestBase,
160 assert data['duration'] is None160 assert data['duration'] is None
161 161
162 def _assert_times_match(self, actual, expected):162 def _assert_times_match(self, actual, expected):
@@ -168,11 +168,11 @@
168 assert actual == expected168 assert actual == expected
169 169
170 def test_overlap_range_start(self):170 def test_overlap_range_start(self):
171Index: upstream/tests/api/v2/test_app.py171diff --git a/tests/api/v2/test_app.py b/tests/api/v2/test_app.py
172===================================================================172index 8033891..f2a0ac2 100644
173--- upstream.orig/tests/api/v2/test_app.py 2013-09-27 11:16:25.365799203 -0700173--- a/tests/api/v2/test_app.py
174+++ upstream/tests/api/v2/test_app.py 2013-09-27 11:16:25.357799203 -0700174+++ b/tests/api/v2/test_app.py
175@@ -45,7 +45,10 @@175@@ -45,7 +45,10 @@ class TestApp(base.TestCase):
176 cfg.CONF.set_override("pipeline_cfg_file",176 cfg.CONF.set_override("pipeline_cfg_file",
177 self.path_get("etc/ceilometer/pipeline.yaml"))177 self.path_get("etc/ceilometer/pipeline.yaml"))
178 cfg.CONF.set_override('connection', "log://", group="database")178 cfg.CONF.set_override('connection', "log://", group="database")
@@ -184,7 +184,7 @@
184 self.assertEqual(api_app.auth_protocol, 'foottp')184 self.assertEqual(api_app.auth_protocol, 'foottp')
185 185
186 def test_keystone_middleware_parse_conffile(self):186 def test_keystone_middleware_parse_conffile(self):
187@@ -60,7 +63,10 @@187@@ -60,7 +63,10 @@ class TestApp(base.TestCase):
188 service.prepare_service(['ceilometer-api',188 service.prepare_service(['ceilometer-api',
189 '--config-file=%s' % tmpfile])189 '--config-file=%s' % tmpfile])
190 cfg.CONF.set_override('connection', "log://", group="database")190 cfg.CONF.set_override('connection', "log://", group="database")
@@ -196,11 +196,11 @@
196 self.assertEqual(api_app.auth_protocol, 'barttp')196 self.assertEqual(api_app.auth_protocol, 'barttp')
197 os.unlink(tmpfile)197 os.unlink(tmpfile)
198 198
199Index: upstream/tests/api/v2/test_statistics_scenarios.py199diff --git a/tests/api/v2/test_statistics_scenarios.py b/tests/api/v2/test_statistics_scenarios.py
200===================================================================200index 61d05d7..081a1f9 100644
201--- upstream.orig/tests/api/v2/test_statistics_scenarios.py 2013-09-27 11:16:25.365799203 -0700201--- a/tests/api/v2/test_statistics_scenarios.py
202+++ upstream/tests/api/v2/test_statistics_scenarios.py 2013-09-27 11:16:25.357799203 -0700202+++ b/tests/api/v2/test_statistics_scenarios.py
203@@ -1234,15 +1234,17 @@203@@ -1234,15 +1234,17 @@ class TestGroupBySource(base.FunctionalTest,
204 # tests.204 # tests.
205 205
206 scenarios = [206 scenarios = [
@@ -222,11 +222,11 @@
222 super(TestGroupBySource, self).setUp()222 super(TestGroupBySource, self).setUp()
223 223
224 test_sample_data = (224 test_sample_data = (
225Index: upstream/tests/collector/dispatcher/test_db.py225diff --git a/tests/collector/dispatcher/test_db.py b/tests/collector/dispatcher/test_db.py
226===================================================================226index a538a5d..7ca68ed 100644
227--- upstream.orig/tests/collector/dispatcher/test_db.py 2013-09-27 11:16:25.365799203 -0700227--- a/tests/collector/dispatcher/test_db.py
228+++ upstream/tests/collector/dispatcher/test_db.py 2013-09-27 11:16:25.357799203 -0700228+++ b/tests/collector/dispatcher/test_db.py
229@@ -30,7 +30,10 @@229@@ -30,7 +30,10 @@ class TestDispatcherDB(tests_base.TestCase):
230 230
231 def setUp(self):231 def setUp(self):
232 super(TestDispatcherDB, self).setUp()232 super(TestDispatcherDB, self).setUp()
@@ -238,11 +238,11 @@
238 self.ctx = None238 self.ctx = None
239 239
240 def test_valid_message(self):240 def test_valid_message(self):
241Index: upstream/tests/collector/test_service.py241diff --git a/tests/collector/test_service.py b/tests/collector/test_service.py
242===================================================================242index 0bc94da..7c3c560 100644
243--- upstream.orig/tests/collector/test_service.py 2013-09-27 11:16:25.365799203 -0700243--- a/tests/collector/test_service.py
244+++ upstream/tests/collector/test_service.py 2013-09-27 11:16:25.357799203 -0700244+++ b/tests/collector/test_service.py
245@@ -114,7 +114,10 @@245@@ -114,7 +114,10 @@ class TestUDPCollectorService(TestCollector):
246 246
247 def setUp(self):247 def setUp(self):
248 super(TestUDPCollectorService, self).setUp()248 super(TestUDPCollectorService, self).setUp()
@@ -254,7 +254,7 @@
254 self.counter = sample.Sample(254 self.counter = sample.Sample(
255 name='foobar',255 name='foobar',
256 type='bad',256 type='bad',
257@@ -189,7 +192,10 @@257@@ -189,7 +192,10 @@ class TestCollectorService(TestCollector):
258 258
259 def setUp(self):259 def setUp(self):
260 super(TestCollectorService, self).setUp()260 super(TestCollectorService, self).setUp()
@@ -266,7 +266,7 @@
266 self.ctx = None266 self.ctx = None
267 267
268 @patch('ceilometer.pipeline.setup_pipeline', MagicMock())268 @patch('ceilometer.pipeline.setup_pipeline', MagicMock())
269@@ -197,8 +203,11 @@269@@ -197,8 +203,11 @@ class TestCollectorService(TestCollector):
270 # If we try to create a real RPC connection, init_host() never270 # If we try to create a real RPC connection, init_host() never
271 # returns. Mock it out so we can establish the service271 # returns. Mock it out so we can establish the service
272 # configuration.272 # configuration.
@@ -280,7 +280,7 @@
280 280
281 @patch('ceilometer.pipeline.setup_pipeline', MagicMock())281 @patch('ceilometer.pipeline.setup_pipeline', MagicMock())
282 def test_process_notification(self):282 def test_process_notification(self):
283@@ -206,8 +215,11 @@283@@ -206,8 +215,11 @@ class TestCollectorService(TestCollector):
284 # returns. Mock it out so we can establish the service284 # returns. Mock it out so we can establish the service
285 # configuration.285 # configuration.
286 cfg.CONF.set_override("store_events", False, group="collector")286 cfg.CONF.set_override("store_events", False, group="collector")
@@ -294,11 +294,11 @@
294 self.srv.pipeline_manager.pipelines[0] = MagicMock()294 self.srv.pipeline_manager.pipelines[0] = MagicMock()
295 self.srv.notification_manager = test_manager.TestExtensionManager(295 self.srv.notification_manager = test_manager.TestExtensionManager(
296 [extension.Extension('test',296 [extension.Extension('test',
297Index: upstream/tests/compute/pollsters/test_location_metadata.py297diff --git a/tests/compute/pollsters/test_location_metadata.py b/tests/compute/pollsters/test_location_metadata.py
298===================================================================298index a14ddfc..60619b5 100644
299--- upstream.orig/tests/compute/pollsters/test_location_metadata.py 2013-09-27 11:16:25.365799203 -0700299--- a/tests/compute/pollsters/test_location_metadata.py
300+++ upstream/tests/compute/pollsters/test_location_metadata.py 2013-09-27 11:16:25.357799203 -0700300+++ b/tests/compute/pollsters/test_location_metadata.py
301@@ -47,7 +47,10 @@301@@ -47,7 +47,10 @@ class TestLocationMetadata(test_base.TestCase):
302 302
303 @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())303 @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())
304 def setUp(self):304 def setUp(self):
@@ -310,11 +310,11 @@
310 super(TestLocationMetadata, self).setUp()310 super(TestLocationMetadata, self).setUp()
311 311
312 # Mimics an instance returned from nova api call312 # Mimics an instance returned from nova api call
313Index: upstream/tests/compute/test_manager.py313diff --git a/tests/compute/test_manager.py b/tests/compute/test_manager.py
314===================================================================314index b3f3b3d..8e28a50 100644
315--- upstream.orig/tests/compute/test_manager.py 2013-09-27 11:16:25.365799203 -0700315--- a/tests/compute/test_manager.py
316+++ upstream/tests/compute/test_manager.py 2013-09-27 11:16:25.357799203 -0700316+++ b/tests/compute/test_manager.py
317@@ -29,7 +29,10 @@317@@ -29,7 +29,10 @@ class TestManager(base.TestCase):
318 318
319 @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())319 @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())
320 def test_load_plugins(self):320 def test_load_plugins(self):
@@ -326,7 +326,7 @@
326 self.assertIsNotNone(list(mgr.pollster_manager))326 self.assertIsNotNone(list(mgr.pollster_manager))
327 327
328 328
329@@ -45,7 +48,10 @@329@@ -45,7 +48,10 @@ class TestRunTasks(agentbase.BaseAgentManagerTestCase):
330 raise Exception330 raise Exception
331 331
332 def setup_manager(self):332 def setup_manager(self):
@@ -338,11 +338,11 @@
338 338
339 @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())339 @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())
340 def setUp(self):340 def setUp(self):
341Index: upstream/tests/storage/test_get_engine.py341diff --git a/tests/storage/test_get_engine.py b/tests/storage/test_get_engine.py
342===================================================================342index 498b6f4..4824461 100644
343--- upstream.orig/tests/storage/test_get_engine.py 2013-09-27 11:16:25.365799203 -0700343--- a/tests/storage/test_get_engine.py
344+++ upstream/tests/storage/test_get_engine.py 2013-09-27 11:16:25.357799203 -0700344+++ b/tests/storage/test_get_engine.py
345@@ -31,7 +31,10 @@345@@ -31,7 +31,10 @@ class EngineTest(testtools.TestCase):
346 conf = mox.Mox().CreateMockAnything()346 conf = mox.Mox().CreateMockAnything()
347 conf.database = mox.Mox().CreateMockAnything()347 conf.database = mox.Mox().CreateMockAnything()
348 conf.database.connection = 'log://localhost'348 conf.database.connection = 'log://localhost'
@@ -354,11 +354,11 @@
354 self.assertIsInstance(engine, impl_log.LogStorage)354 self.assertIsInstance(engine, impl_log.LogStorage)
355 355
356 def test_get_engine_no_such_engine(self):356 def test_get_engine_no_such_engine(self):
357Index: upstream/tests/test_bin.py357diff --git a/tests/test_bin.py b/tests/test_bin.py
358===================================================================358index a358b57..bc2cd2a 100644
359--- upstream.orig/tests/test_bin.py 2013-09-27 11:16:25.365799203 -0700359--- a/tests/test_bin.py
360+++ upstream/tests/test_bin.py 2013-09-27 11:16:25.361799203 -0700360+++ b/tests/test_bin.py
361@@ -36,14 +36,20 @@361@@ -36,14 +36,20 @@ class BinTestCase(base.TestCase):
362 tmp.write("connection=log://localhost\n")362 tmp.write("connection=log://localhost\n")
363 363
364 def test_dbsync_run(self):364 def test_dbsync_run(self):
@@ -385,7 +385,7 @@
385 385
386 386
387 class BinSendCounterTestCase(base.TestCase):387 class BinSendCounterTestCase(base.TestCase):
388@@ -59,11 +65,14 @@388@@ -59,11 +65,14 @@ class BinSendCounterTestCase(base.TestCase):
389 "pipeline_cfg_file=%s\n" % pipeline_cfg_file)389 "pipeline_cfg_file=%s\n" % pipeline_cfg_file)
390 390
391 def test_send_counter_run(self):391 def test_send_counter_run(self):
@@ -405,7 +405,7 @@
405 405
406 406
407 class BinApiTestCase(base.TestCase):407 class BinApiTestCase(base.TestCase):
408@@ -92,8 +101,11 @@408@@ -92,8 +101,11 @@ class BinApiTestCase(base.TestCase):
409 "port=%s\n" % self.api_port)409 "port=%s\n" % self.api_port)
410 tmp.write("[database]\n")410 tmp.write("[database]\n")
411 tmp.write("connection=log://localhost\n")411 tmp.write("connection=log://localhost\n")
@@ -419,11 +419,11 @@
419 419
420 def tearDown(self):420 def tearDown(self):
421 super(BinApiTestCase, self).tearDown()421 super(BinApiTestCase, self).tearDown()
422Index: upstream/tests/test_notifier.py422diff --git a/tests/test_notifier.py b/tests/test_notifier.py
423===================================================================423index 814dca1..9a659fb 100644
424--- upstream.orig/tests/test_notifier.py 2013-09-27 11:16:25.365799203 -0700424--- a/tests/test_notifier.py
425+++ upstream/tests/test_notifier.py 2013-09-27 11:16:25.361799203 -0700425+++ b/tests/test_notifier.py
426@@ -80,7 +80,10 @@426@@ -80,7 +80,10 @@ class TestNotifier(tests_base.TestCase):
427 }],427 }],
428 transformer_manager)428 transformer_manager)
429 429
@@ -435,11 +435,11 @@
435 self.assertEqual(len(pub.samples), 0)435 self.assertEqual(len(pub.samples), 0)
436 notifier.notify(None, MESSAGE)436 notifier.notify(None, MESSAGE)
437 self.assertTrue(len(pub.samples) > 0)437 self.assertTrue(len(pub.samples) > 0)
438Index: upstream/tests/test_service.py438diff --git a/tests/test_service.py b/tests/test_service.py
439===================================================================439index 65580b6..8497648 100644
440--- upstream.orig/tests/test_service.py 2013-09-27 11:16:25.365799203 -0700440--- a/tests/test_service.py
441+++ upstream/tests/test_service.py 2013-09-27 11:16:25.361799203 -0700441+++ b/tests/test_service.py
442@@ -98,8 +98,8 @@442@@ -98,8 +98,8 @@ class ServiceRestartTest(base.TestCase):
443 443
444 def tearDown(self):444 def tearDown(self):
445 super(ServiceRestartTest, self).tearDown()445 super(ServiceRestartTest, self).tearDown()
@@ -450,7 +450,7 @@
450 450
451 @staticmethod451 @staticmethod
452 def _check_process_alive(pid):452 def _check_process_alive(pid):
453@@ -143,7 +143,10 @@453@@ -143,7 +143,10 @@ class ServiceRestartTest(base.TestCase):
454 self.check_process_alive()454 self.check_process_alive()
455 455
456 def _service_restart(self, cmd):456 def _service_restart(self, cmd):
@@ -462,7 +462,7 @@
462 462
463 self.assertTrue(self.sub.pid)463 self.assertTrue(self.sub.pid)
464 #NOTE(Fengqian): Modify the pipleline configure file to see464 #NOTE(Fengqian): Modify the pipleline configure file to see
465@@ -159,7 +162,13 @@465@@ -159,7 +162,13 @@ class ServiceRestartTest(base.TestCase):
466 self.parse_output("Pipeline config: ").ret_stream))466 self.parse_output("Pipeline config: ").ret_stream))
467 467
468 def test_compute_service_restart(self):468 def test_compute_service_restart(self):

Subscribers

People subscribed via source and target branches