Merge lp:~newell-jensen/maas/fix-test-node-shows-multiple-results into lp:~maas-committers/maas/trunk

Proposed by Newell Jensen
Status: Merged
Approved by: Newell Jensen
Approved revision: no longer in the source branch.
Merged at revision: 3307
Proposed branch: lp:~newell-jensen/maas/fix-test-node-shows-multiple-results
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 18 lines (+4/-4)
1 file modified
src/maasserver/views/tests/test_nodes.py (+4/-4)
To merge this branch: bzr merge lp:~newell-jensen/maas/fix-test-node-shows-multiple-results
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+239940@code.launchpad.net

Commit message

This branch fixes a test which errors randomly (wasn't caught before), due to sorting.

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) :
review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :
Download full text (19.1 KiB)

The attempt to merge lp:~newell-jensen/maas/fix-test-node-shows-multiple-results into lp:maas failed. Below is the output from the failed tests.

Ign http://security.ubuntu.com trusty-security InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://nova.clouds.archive.ubuntu.com trusty InRelease
Get:2 http://security.ubuntu.com trusty-security Release [59.7 kB]
Ign http://nova.clouds.archive.ubuntu.com trusty-updates InRelease
Hit http://nova.clouds.archive.ubuntu.com trusty Release.gpg
Get:3 http://nova.clouds.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://nova.clouds.archive.ubuntu.com trusty Release
Get:4 http://nova.clouds.archive.ubuntu.com trusty-updates Release [59.7 kB]
Get:5 http://security.ubuntu.com trusty-security/main Sources [48.3 kB]
Hit http://nova.clouds.archive.ubuntu.com trusty/main Sources
Get:6 http://security.ubuntu.com trusty-security/universe Sources [11.2 kB]
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [151 kB]
Get:8 http://security.ubuntu.com trusty-security/universe amd64 Packages [50.4 kB]
Hit http://nova.clouds.archive.ubuntu.com trusty/universe Sources
Hit http://nova.clouds.archive.ubuntu.com trusty/main amd64 Packages
Hit http://nova.clouds.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://nova.clouds.archive.ubuntu.com trusty/main Translation-en
Hit http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en
Get:9 http://security.ubuntu.com trusty-security/main Translation-en [73.9 kB]
Get:10 http://nova.clouds.archive.ubuntu.com trusty-updates/main Sources [133 kB]
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Get:11 http://nova.clouds.archive.ubuntu.com trusty-updates/universe Sources [89.3 kB]
Get:12 http://nova.clouds.archive.ubuntu.com trusty-updates/main amd64 Packages [351 kB]
Get:13 http://nova.clouds.archive.ubuntu.com trusty-updates/universe amd64 Packages [216 kB]
Get:14 http://nova.clouds.archive.ubuntu.com trusty-updates/main Translation-en [158 kB]
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://nova.clouds.archive.ubuntu.com trusty/main Translation-en_US
Ign http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 1,403 kB in 2s (480 kB/s)
Reading package lists...
sudo DEBIAN_FRONTEND=noninteractive apt-get -y \
     --no-install-recommends install apache2 authbind bind9 bind9utils build-essential bzr-builddeb curl daemontools debhelper dh-apport distro-info dnsutils firefox freeipmi-tools gjs ipython isc-dhcp-common libjs-raphael libjs-yui3-full libjs-yui3-min libpq-dev make pep8 postgresql pyflakes python-amqplib python-bzrlib python-celery python-convoy python-crochet python-cssselect python-curtin python-dev python-distro-info python-django python-django-piston python-django-south python-djorm-ext-pgarray python-docutils python-extras python-fixtures python-flake8 python-formencode python-hivex python-httplib2 python-jinja2 python-jsonschema python-lockfile python-lxml python-mimeparse python-mock python-netaddr python-netifaces python-nose python-oauth python-oops python-oops-amqp python-oops-datedir-repo...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/views/tests/test_nodes.py'
2--- src/maasserver/views/tests/test_nodes.py 2014-10-24 23:45:33 +0000
3+++ src/maasserver/views/tests/test_nodes.py 2014-10-29 04:35:20 +0000
4@@ -1662,10 +1662,10 @@
5 section = self.request_results_display(
6 node, RESULT_TYPE.INSTALLATION)
7 links = self.get_installation_results_link(section)
8- self.assertEqual(
9- ' '.join(reversed(results_names)),
10- ' '.join([
11- normalise_whitespace(link.text_content()) for link in links]))
12+ self.assertThat(
13+ results_names,
14+ ContainsAll(
15+ [normalise_whitespace(link.text_content()) for link in links]))
16
17
18 class NodeListingSelectionJSControls(SeleniumTestCase):