akanda-appliance stable/juno test.unit.drivers.test_hostname.HostnameTestCase test is failing

Bug #1490331 reported by Sean Roberts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
akanda
Fix Committed
Critical
Ryan Petrello

Bug Description

when running tox -e py27 on stable/juno, tox fails with
======================================================================
FAIL: test_update_hosts (test.unit.drivers.test_hostname.HostnameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/sarob/code/akanda-appliance/test/unit/drivers/test_hostname.py", line 60, in test_update_hosts
    '\n'.join(expected))
  File "/Users/sarob/code/akanda-appliance/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 969, in assert_has_calls
    ), cause)
  File "/Users/sarob/code/akanda-appliance/.tox/py27/lib/python2.7/site-packages/six.py", line 692, in raise_from
    raise value
AssertionError: Calls not found.
Expected: call('/tmp/hosts', '127.0.0.1 localhost\n::1 localhost ip6-localhost ip6-loopback\nfdca:3ba5:a17a:acda:f816:3eff:fe66:33b6 akanda')
Actual: [call('/tmp/hosts', '127.0.0.1 localhost\n::1 localhost ip6-localhost ip6-loopback\nfdca:3ba5:a17a:acda:f816:3eff:fe66:33b6 akanda')]
>> raise AssertionError("Calls not found.\nExpected: call('/tmp/hosts', '127.0.0.1 localhost\\n::1 localhost ip6-localhost ip6-loopback\\nfdca:3ba5:a17a:acda:f816:3eff:fe66:33b6 akanda')\nActual: [call('/tmp/hosts', '127.0.0.1 localhost\\n::1 localhost ip6-localhost ip6-loopback\\nfdca:3ba5:a17a:acda:f816:3eff:fe66:33b6 akanda')]",)

it appears that the last change, https://review.openstack.org/#/c/195177, has broken the test

Changed in akanda:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to akanda-appliance (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/218840

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to akanda-appliance (stable/juno)

Reviewed: https://review.openstack.org/218840
Committed: https://git.openstack.org/cgit/stackforge/akanda-appliance/commit/?id=b80677afb4ada4c512d89ab4aab91a7d5946262b
Submitter: Jenkins
Branch: stable/juno

commit b80677afb4ada4c512d89ab4aab91a7d5946262b
Author: Ryan Petrello <email address hidden>
Date: Mon Aug 31 08:55:00 2015 -0400

    Fix a failing hostname driver test case.

    Change-Id: Iba8bfc30d8cf197734cc5458031b9c18672a8957
    Fixes-bug: #1490331

tags: added: in-stable-juno
Sean Roberts (sarob)
Changed in akanda:
status: In Progress → Fix Committed
Changed in akanda:
milestone: liberty-rc1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.