Broken unit_tests.test_nova_cc_utils.NovaCCUtilsTests after r70

Bug #1309746 reported by Jorge Niedbalski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-cloud-controller (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

[Description]

Unit tests broken After r70 changes

  Fix authorized_keys file becomes incorrect after removing a compute node and
  then add a new node.

======================================================================
FAIL: test_ssh_compute_remove (unit_tests.test_nova_cc_utils.NovaCCUtilsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/niedbalski/src/lp-1300142/nova-compute/env/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/niedbalski/src/lp-1300142/nova-cloud-controller/unit_tests/test_nova_cc_utils.py", line 417, in test_ssh_compute_remove
    _file.write.assert_called_with(keys_removed)
  File "/home/niedbalski/src/lp-1300142/nova-compute/env/local/lib/python2.7/site-packages/mock.py", line 835, in assert_called_with
    raise AssertionError(msg)
AssertionError: Expected call: write('\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC27Us7lSjCpa7bumXAgc nova-compute-1\nssh-rsa CCCCB3NzaC1yc2ECCCCDCQCBCCCBCQC27Us7lSjCpa7bumXCgc nova-compute-3\n')
Actual call: write('\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC27Us7lSjCpa7bumXAgc nova-compute-1\nssh-rsa CCCCB3NzaC1yc2ECCCCDCQCBCCCBCQC27Us7lSjCpa7bumXCgc nova-compute-3\n\n')

[ Solution ]

Merge request linked.

James Page (james-page)
Changed in nova-cloud-controller (Juju Charms Collection):
status: New → 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.