TestStaticIPAddressManagerMapping.test_get_hostname_ip_mapping_returns_domain_head_ips fails spuriously

Bug #1575631 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
LaMont Jones

Bug Description

FAIL: maasserver.models.tests.test_staticipaddress.TestStaticIPAddressManagerMapping.test_get_hostname_ip_mapping_returns_domain_head_ips
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/tarmac/branch.ByiUpO/src/maastesting/runtest.py", line 59, in _run_user
    result = function(*args, **kwargs)
  File "/home/ubuntu/.buildout/eggs/testtools-1.8.1-py3.5.egg/testtools/testcase.py", line 654, in _run_test_method
    return self._get_test_method()()
  File "/tmp/tarmac/branch.ByiUpO/src/maasserver/models/tests/test_staticipaddress.py", line 752, in test_get_hostname_ip_mapping_returns_domain_head_ips
    node.system_id, 30, {sip1.ip}, node.node_type)}, mapping)
  File "/home/ubuntu/.buildout/eggs/testtools-1.8.1-py3.5.egg/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/ubuntu/.buildout/eggs/testtools-1.8.1-py3.5.egg/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = {'SQ4d96.domain-Dow1ee': HostnameIPMapping('4y3h7n', 30, {'194.69.95.6'}, 0)}
actual = defaultdict(<class 'maasserver.models.staticipaddress.HostnameIPMapping'>, {})

Tags: tests

Related branches

LaMont Jones (lamont)
Changed in maas:
milestone: none → 2.2.0rc1
assignee: nobody → LaMont Jones (lamont)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.