Merge lp:~rvb/maas/fix-broken-build into lp:maas/trunk

Proposed by Raphaël Badin on 2012-10-05
Status: Merged
Approved by: Andres Rodriguez on 2012-10-05
Approved revision: 1186
Merged at revision: 1186
Proposed branch: lp:~rvb/maas/fix-broken-build
Merge into: lp:maas/trunk
Diff against target: 35 lines (+4/-3)
1 file modified
src/provisioningserver/tests/test_start_cluster_controller.py (+4/-3)
To merge this branch: bzr merge lp:~rvb/maas/fix-broken-build
Reviewer Review Type Date Requested Status
Raphaël Badin (community) Approve on 2012-10-05
Review via email: mp+128297@code.launchpad.net

Commit Message

Fix broken build: update tests to reflect changes made to MAASClient.

Description of the Change

Fix broken build: update tests to reflect changes made to MAASClient.

To post a comment you must log in.
Raphaël Badin (rvb) wrote :

Self-reviewing this as this is a simple fix to the tests and it will fix the build.

review: Approve
MAAS Lander (maas-lander) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/maas-merger-quantal/129/console reported an error when processing this lp:~rvb/maas/fix-broken-build branch.
Not merging it.

Julian Edwards (julian-edwards) wrote :

On Friday 05 October 2012 17:33:28 you wrote:
> Raphaël Badin has proposed merging lp:~rvb/maas/fix-broken-build into
> lp:maas.
>
> Commit message:
> Fix broken build: update tests to reflect changes made to MAASClient.
>
> Requested reviews:
> Raphaël Badin (rvb)
>
> For more details, see:
> https://code.launchpad.net/~rvb/maas/fix-broken-build/+merge/128297
>
> Fix broken build: update tests to reflect changes made to MAASClient.
>
> Someone left a good old Friday evening upper decker ;).

How the heck did this get past Jenkins?!

Gavin Panella (allenap) wrote :

On 8 October 2012 01:13, Julian Edwards <...> wrote:
...
>> Someone left a good old Friday evening upper decker ;).
>
> How the heck did this get past Jenkins?!

Indeed, I thought that the new gated trunk would prevent this. Sorry
to anyone who got the beef stew on Friday.

Raphaël Badin (rvb) wrote :

> How the heck did this get past Jenkins?!

Not sure how this could happen… my only guess is that this is the result of a semantic merge conflict.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/provisioningserver/tests/test_start_cluster_controller.py'
2--- src/provisioningserver/tests/test_start_cluster_controller.py 2012-10-04 15:12:57 +0000
3+++ src/provisioningserver/tests/test_start_cluster_controller.py 2012-10-05 17:36:39 +0000
4@@ -33,6 +33,7 @@
5 )
6 from provisioningserver import start_cluster_controller
7 from provisioningserver.testing.testcase import PservTestCase
8+from testtools.matchers import StartsWith
9
10
11 class Sleeping(Exception):
12@@ -154,7 +155,7 @@
13 self.prepare_success_response()
14 start_cluster_controller.run(make_args(server_url=url))
15 (args, kwargs) = MAASDispatcher.dispatch_query.call_args
16- self.assertEqual(url + 'api/1.0/nodegroups/', args[0])
17+ self.assertThat(args[0], StartsWith(url + 'api/1.0/nodegroups/'))
18
19 def test_fails_if_declined(self):
20 self.patch(start_cluster_controller, 'start_up')
21@@ -223,12 +224,12 @@
22 factory.make_name('user'), factory.make_name('group'))
23
24 (args, kwargs) = MAASDispatcher.dispatch_query.call_args
25- self.assertEqual(url + 'api/1.0/nodegroups/', args[0])
26+ self.assertEqual(
27+ url + 'api/1.0/nodegroups/?op=refresh_workers', args[0])
28 self.assertEqual('POST', kwargs['method'])
29
30 headers, body = kwargs["headers"], kwargs["data"]
31 post, files = self.parse_headers_and_body(headers, body)
32- self.assertEqual("refresh_workers", post["op"])
33
34 def test_start_up_ignores_failure_on_refresh_secrets(self):
35 start_cluster_controller.sleep.side_effect = None