Merge lp:~zulcss/cinder/cinder-failed-tests into lp:~openstack-ubuntu-testing/cinder/grizzly

Proposed by Chuck Short
Status: Merged
Approved by: Yolanda Robla
Approved revision: 72
Merged at revision: 72
Proposed branch: lp:~zulcss/cinder/cinder-failed-tests
Merge into: lp:~openstack-ubuntu-testing/cinder/grizzly
Diff against target: 159 lines (+21/-101)
5 files modified
debian/changelog (+3/-0)
debian/patches/fix-ubuntu-tests.patch (+16/-0)
debian/patches/series (+1/-1)
debian/patches/skip_failed_tests.patch (+0/-99)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~zulcss/cinder/cinder-failed-tests
Reviewer Review Type Date Requested Status
Yolanda Robla (community) Approve
Review via email: mp+145614@code.launchpad.net

Description of the change

fixes cinder ftbfs.

To post a comment you must log in.
Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

Looks good to me

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-01-16 16:01:42 +0000
+++ debian/changelog 2013-01-30 14:25:31 +0000
@@ -7,6 +7,9 @@
7 [ James Page ]7 [ James Page ]
8 * d/control: Add Suggests: python-hp3parclient for python-cinder.8 * d/control: Add Suggests: python-hp3parclient for python-cinder.
99
10 [ Chuck Short ]
11 * debian/patches/fix-ubuntu-tests.patch: Fix failing tests
12
10 -- Yolanda Robla <yolanda.robla@canonical.com> Mon, 14 Jan 2013 17:47:00 +010013 -- Yolanda Robla <yolanda.robla@canonical.com> Mon, 14 Jan 2013 17:47:00 +0100
1114
12cinder (2013.1~g2-0ubuntu2) raring; urgency=low15cinder (2013.1~g2-0ubuntu2) raring; urgency=low
1316
=== added file 'debian/patches/fix-ubuntu-tests.patch'
--- debian/patches/fix-ubuntu-tests.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/fix-ubuntu-tests.patch 2013-01-30 14:25:31 +0000
@@ -0,0 +1,16 @@
1diff -Naurp cinder-2013.1.orig/cinder/tests/scheduler/test_capacity_weigher.py cinder-2013.1/cinder/tests/scheduler/test_capacity_weigher.py
2--- cinder-2013.1.orig/cinder/tests/scheduler/test_capacity_weigher.py 2013-01-30 07:42:25.000000000 -0600
3+++ cinder-2013.1/cinder/tests/scheduler/test_capacity_weigher.py 2013-01-30 08:09:13.748906909 -0600
4@@ -18,10 +18,12 @@ Tests For Capacity Weigher.
5
6 from cinder import context
7 from cinder.openstack.common.scheduler.weights import HostWeightHandler
8+from cinder import flags
9 from cinder import test
10 from cinder.tests.scheduler import fakes
11 from cinder.tests import utils as test_utils
12
13+FLAGS = flags.FLAGS
14
15 class CapacityWeigherTestCase(test.TestCase):
16 def setUp(self):
017
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-01-14 16:48:12 +0000
+++ debian/patches/series 2013-01-30 14:25:31 +0000
@@ -1,2 +1,2 @@
1fix_cinder_dependencies.patch1fix_cinder_dependencies.patch
2skip_failed_tests.patch2fix-ubuntu-tests.patch
33
=== removed file 'debian/patches/skip_failed_tests.patch'
--- debian/patches/skip_failed_tests.patch 2013-01-10 12:31:13 +0000
+++ debian/patches/skip_failed_tests.patch 1970-01-01 00:00:00 +0000
@@ -1,99 +0,0 @@
1From 0a758a53c29364b7f52144f8f354b2121894e407 Mon Sep 17 00:00:00 2001
2From: Yolanda Robla <yolanda.robla@canonical.com>
3Date: Thu, 10 Jan 2013 11:02:41 +0000
4Subject: [PATCH 2/2] Skip failing tests Signed-off-by: Yolanda Robla
5 <yolanda.robla@canonical.com>
6
7---
8 cinder/tests/scheduler/test_capacity_weigher.py | 6 ++++++
9 cinder/tests/scheduler/test_filter_scheduler.py | 6 ++++++
10 cinder/tests/scheduler/test_host_filters.py | 4 ++++
11 3 files changed, 16 insertions(+)
12
13diff --git a/cinder/tests/scheduler/test_capacity_weigher.py b/cinder/tests/scheduler/test_capacity_weigher.py
14index 471364f..acee91d 100644
15--- a/cinder/tests/scheduler/test_capacity_weigher.py
16+++ b/cinder/tests/scheduler/test_capacity_weigher.py
17@@ -46,6 +46,8 @@ class CapacityWeigherTestCase(test.TestCase):
18 return host_states
19
20 def test_default_of_spreading_first(self):
21+ return True
22+
23 hostinfo_list = self._get_all_hosts()
24
25 # host1: free_capacity_gb=1024, free=1024*(1-0.1)
26@@ -59,6 +61,8 @@ class CapacityWeigherTestCase(test.TestCase):
27 self.assertEqual(weighed_host.obj.host, 'host1')
28
29 def test_capacity_weight_multiplier1(self):
30+ return True
31+
32 self.flags(capacity_weight_multiplier=-1.0)
33 hostinfo_list = self._get_all_hosts()
34
35@@ -73,6 +77,8 @@ class CapacityWeigherTestCase(test.TestCase):
36 self.assertEqual(weighed_host.obj.host, 'host4')
37
38 def test_capacity_weight_multiplier2(self):
39+ return True
40+
41 self.flags(capacity_weight_multiplier=2.0)
42 hostinfo_list = self._get_all_hosts()
43
44diff --git a/cinder/tests/scheduler/test_filter_scheduler.py b/cinder/tests/scheduler/test_filter_scheduler.py
45index 6f56575..784b99f 100644
46--- a/cinder/tests/scheduler/test_filter_scheduler.py
47+++ b/cinder/tests/scheduler/test_filter_scheduler.py
48@@ -41,6 +41,8 @@ class FilterSchedulerTestCase(test_scheduler.SchedulerTestCase):
49 """
50 Ensure empty hosts & child_zones result in NoValidHosts exception.
51 """
52+ return True
53+
54 def _fake_empty_call_zone_method(*args, **kwargs):
55 return []
56
57@@ -55,6 +57,8 @@ class FilterSchedulerTestCase(test_scheduler.SchedulerTestCase):
58 fake_context, request_spec, None)
59
60 def test_create_volume_non_admin(self):
61+ return True
62+
63 """Test creating an instance locally using run_instance, passing
64 a non-admin context. DB actions should work."""
65 self.was_admin = False
66@@ -79,6 +83,8 @@ class FilterSchedulerTestCase(test_scheduler.SchedulerTestCase):
67 self.assertTrue(self.was_admin)
68
69 def test_schedule_happy_day(self):
70+ return True
71+
72 """Make sure there's nothing glaringly wrong with _schedule()
73 by doing a happy day pass through."""
74
75diff --git a/cinder/tests/scheduler/test_host_filters.py b/cinder/tests/scheduler/test_host_filters.py
76index 5bcffd6..b80024d 100644
77--- a/cinder/tests/scheduler/test_host_filters.py
78+++ b/cinder/tests/scheduler/test_host_filters.py
79@@ -76,6 +76,8 @@ class HostFiltersTestCase(test.TestCase):
80 self.stubs.Set(utils, 'service_is_up', fake_service_is_up)
81
82 def test_capacity_filter_passes(self):
83+ return True
84+
85 self._stub_service_is_up(True)
86 filt_cls = self.class_map['CapacityFilter']()
87 filter_properties = {'size': 100}
88@@ -87,6 +89,8 @@ class HostFiltersTestCase(test.TestCase):
89 self.assertTrue(filt_cls.host_passes(host, filter_properties))
90
91 def test_capacity_filter_fails(self):
92+ return True
93+
94 self._stub_service_is_up(True)
95 filt_cls = self.class_map['CapacityFilter']()
96 filter_properties = {'size': 100}
97--
981.7.9.5
99
1000
=== modified file 'debian/rules'
--- debian/rules 2012-10-09 13:54:48 +0000
+++ debian/rules 2013-01-30 14:25:31 +0000
@@ -7,7 +7,7 @@
7 dh $@ --with python27 dh $@ --with python2
88
9get-orig-source:9get-orig-source:
10 uscan --verbose --force-download --rename --destdir=../build-area10 uscan --verbose --rename --destdir=../build-area
1111
12ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))12ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
13override_dh_auto_test:13override_dh_auto_test:

Subscribers

People subscribed via source and target branches