Merge lp:~corey.bryant/glance/2014.2.1 into lp:~ubuntu-server-dev/glance/juno

Proposed by Corey Bryant
Status: Merged
Approved by: Chuck Short
Approved revision: 316
Merged at revision: 316
Proposed branch: lp:~corey.bryant/glance/2014.2.1
Merge into: lp:~ubuntu-server-dev/glance/juno
Diff against target: 112 lines (+74/-0)
4 files modified
debian/changelog (+16/-0)
debian/control (+2/-0)
debian/patches/series (+1/-0)
debian/patches/update-glance-store-tests.patch (+55/-0)
To merge this branch: bzr merge lp:~corey.bryant/glance/2014.2.1
Reviewer Review Type Date Requested Status
Ubuntu Server Developers Pending
Review via email: mp+243877@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-10-16 14:26:49 +0000
3+++ debian/changelog 2014-12-05 22:20:59 +0000
4@@ -1,3 +1,19 @@
5+glance (1:2014.2.1-0ubuntu1) UNRELEASED; urgency=medium
6+
7+ * Resynchronize with stable/juno (41e143b) (LP: #1398952):
8+ - [640e08f] Disable osprofiler by default
9+ - [c5e302e] Image not downloaded without restricted property
10+ - [be90df8] Make RequestContext use auth_token (not auth_tok)
11+ - [10a6985] Swift Multi-tenant store: Pass context on upload
12+ - [540306e] Upgrade tests' mocks to match glance_store
13+ - [22b1992] Fix for adopt glance.store library in Glance
14+ - [3cdd0aa] Improve error log for expired image location url
15+ - [41e143b] Can not delete images if db deadlock occurs
16+ * d/control: Add python-hacking and python-mock to Build-Depends-Indep.
17+ * d/p/update-glance-store-tests.patch: Added to fix failing tests.
18+
19+ -- Corey Bryant <corey.bryant@canonical.com> Fri, 05 Dec 2014 09:03:14 -0500
20+
21 glance (1:2014.2-0ubuntu1) utopic; urgency=medium
22
23 * New upstream release.
24
25=== modified file 'debian/control'
26--- debian/control 2014-10-03 11:06:47 +0000
27+++ debian/control 2014-12-05 22:20:59 +0000
28@@ -13,6 +13,7 @@
29 python-fixtures (>= 0.3.12),
30 python-glance-store (>= 0.1.1),
31 python-greenlet (>= 0.3.2),
32+ python-hacking (>= 0.9.2),
33 python-httplib2 (>= 0.7.5),
34 python-iso8601 (>= 0.1.9),
35 python-jsonschema (>= 2.0.0),
36@@ -21,6 +22,7 @@
37 python-kombu (>= 2.4.8),
38 python-lxml (>= 2.3),
39 python-migrate (>= 0.9.1),
40+ python-mock (>= 1.0),
41 python-mox,
42 python-netaddr (>= 0.7.6),
43 python-openssl (>= 0.11),
44
45=== modified file 'debian/patches/series'
46--- debian/patches/series 2014-10-03 11:06:47 +0000
47+++ debian/patches/series 2014-12-05 22:20:59 +0000
48@@ -1,3 +1,4 @@
49+update-glance-store-tests.patch
50 sql_conn.patch
51 fix-requirements.patch
52 ipv6-support.patch
53
54=== added file 'debian/patches/update-glance-store-tests.patch'
55--- debian/patches/update-glance-store-tests.patch 1970-01-01 00:00:00 +0000
56+++ debian/patches/update-glance-store-tests.patch 2014-12-05 22:20:59 +0000
57@@ -0,0 +1,55 @@
58+Description: This patch reverts changes made by commit
59+ 540306eccb60b8cd5ecd86c3d15ed51291d98d15. That commit
60+ was made to stay in sync with changes made in the latest
61+ glance_store release, which is not in Utopic.
62+Author: Corey Bryant <corey.bryant@canonical.com>
63+Forwarded: not-needed
64+--- a/glance/tests/unit/v1/test_upload_utils.py
65++++ b/glance/tests/unit/v1/test_upload_utils.py
66+@@ -110,7 +110,7 @@
67+ update_data)
68+
69+ store.add.assert_called_once_with(image_meta['id'], mock.ANY,
70+- image_meta['size'], context=mock.ANY)
71++ image_meta['size'])
72+
73+ def test_upload_data_to_store(self):
74+ req = unit_test_utils.get_fake_request()
75+--- a/glance/tests/unit/test_store_image.py
76++++ b/glance/tests/unit/test_store_image.py
77+@@ -859,9 +859,8 @@
78+
79+ def _bad_metadata(self, in_metadata):
80+ mstore = self.mox.CreateMockAnything()
81+- mstore.add(self.image_id, mox.IgnoreArg(),
82+- self.size, context=None).AndReturn(
83+- (self.location, self.size, self.checksum, in_metadata))
84++ mstore.add(self.image_id, mox.IgnoreArg(), self.size).AndReturn(
85++ (self.location, self.size, self.checksum, in_metadata))
86+ mstore.__str__ = lambda: "hello"
87+ mstore.__unicode__ = lambda: "hello"
88+
89+@@ -878,9 +877,8 @@
90+ def _good_metadata(self, in_metadata):
91+
92+ mstore = self.mox.CreateMockAnything()
93+- mstore.add(self.image_id, mox.IgnoreArg(),
94+- self.size, context=None).AndReturn(
95+- (self.location, self.size, self.checksum, in_metadata))
96++ mstore.add(self.image_id, mox.IgnoreArg(), self.size).AndReturn(
97++ (self.location, self.size, self.checksum, in_metadata))
98+
99+ self.mox.ReplayAll()
100+ (location,
101+@@ -937,9 +935,8 @@
102+
103+ def test_bad_metadata_not_dict(self):
104+ store = self.mox.CreateMockAnything()
105+- store.add(self.image_id, mox.IgnoreArg(),
106+- self.size, context=None).AndReturn(
107+- (self.location, self.size, self.checksum, []))
108++ store.add(self.image_id, mox.IgnoreArg(), self.size).AndReturn(
109++ (self.location, self.size, self.checksum, []))
110+ store.__str__ = lambda: "hello"
111+ store.__unicode__ = lambda: "hello"
112+

Subscribers

People subscribed via source and target branches