Merge lp:~blake-rouse/maas/add-utopic-1.5 into lp:maas/1.5

Proposed by Blake Rouse
Status: Merged
Approved by: Blake Rouse
Approved revision: no longer in the source branch.
Merged at revision: 2291
Proposed branch: lp:~blake-rouse/maas/add-utopic-1.5
Merge into: lp:maas/1.5
Diff against target: 50 lines (+6/-8)
2 files modified
src/maasserver/enum.py (+4/-6)
src/maasserver/models/tests/test_node.py (+2/-2)
To merge this branch: bzr merge lp:~blake-rouse/maas/add-utopic-1.5
Reviewer Review Type Date Requested Status
Raphaël Badin (community) Approve
Review via email: mp+227347@code.launchpad.net

Commit message

Add 14.10 Utopic Unicorn to available distro series. Remove quantal and raring as support period has ended.

To post a comment you must log in.
Revision history for this message
Raphaël Badin (rvb) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/maasserver/enum.py'
--- src/maasserver/enum.py 2014-03-28 16:36:32 +0000
+++ src/maasserver/enum.py 2014-07-18 15:35:29 +0000
@@ -93,21 +93,19 @@
93 #:93 #:
94 precise = 'precise'94 precise = 'precise'
95 #:95 #:
96 quantal = 'quantal'
97 #:
98 raring = 'raring'
99 #:
100 saucy = 'saucy'96 saucy = 'saucy'
101 #:97 #:
102 trusty = 'trusty'98 trusty = 'trusty'
99 #:
100 utopic = 'utopic'
101
103102
104DISTRO_SERIES_CHOICES = (103DISTRO_SERIES_CHOICES = (
105 (DISTRO_SERIES.default, 'Default Ubuntu Release'),104 (DISTRO_SERIES.default, 'Default Ubuntu Release'),
106 (DISTRO_SERIES.precise, 'Ubuntu 12.04 LTS "Precise Pangolin"'),105 (DISTRO_SERIES.precise, 'Ubuntu 12.04 LTS "Precise Pangolin"'),
107 (DISTRO_SERIES.quantal, 'Ubuntu 12.10 "Quantal Quetzal"'),
108 (DISTRO_SERIES.raring, 'Ubuntu 13.04 "Raring Ringtail"'),
109 (DISTRO_SERIES.saucy, 'Ubuntu 13.10 "Saucy Salamander"'),106 (DISTRO_SERIES.saucy, 'Ubuntu 13.10 "Saucy Salamander"'),
110 (DISTRO_SERIES.trusty, 'Ubuntu 14.04 LTS "Trusty Tahr"'),107 (DISTRO_SERIES.trusty, 'Ubuntu 14.04 LTS "Trusty Tahr"'),
108 (DISTRO_SERIES.utopic, 'Ubuntu 14.10 "Utopic Unicorn"'),
111)109)
112110
113111
114112
=== modified file 'src/maasserver/models/tests/test_node.py'
--- src/maasserver/models/tests/test_node.py 2014-05-07 02:53:23 +0000
+++ src/maasserver/models/tests/test_node.py 2014-07-18 15:35:29 +0000
@@ -162,7 +162,7 @@
162162
163 def test_set_get_distro_series_returns_series(self):163 def test_set_get_distro_series_returns_series(self):
164 node = factory.make_node()164 node = factory.make_node()
165 series = DISTRO_SERIES.quantal165 series = DISTRO_SERIES.utopic
166 node.set_distro_series(series)166 node.set_distro_series(series)
167 self.assertEqual(series, node.get_distro_series())167 self.assertEqual(series, node.get_distro_series())
168168
@@ -474,7 +474,7 @@
474 def test_release_clears_distro_series(self):474 def test_release_clears_distro_series(self):
475 node = factory.make_node(475 node = factory.make_node(
476 status=NODE_STATUS.ALLOCATED, owner=factory.make_user())476 status=NODE_STATUS.ALLOCATED, owner=factory.make_user())
477 node.set_distro_series(series=DISTRO_SERIES.quantal)477 node.set_distro_series(series=DISTRO_SERIES.utopic)
478 node.release()478 node.release()
479 self.assertEqual("", node.distro_series)479 self.assertEqual("", node.distro_series)
480480

Subscribers

People subscribed via source and target branches

to all changes: