Comment 2 for bug 1813980

Revision history for this message
Corey Bryant (corey.bryant) wrote :

That fixed all but one test for me when I cherry-picked it to 1.4.0. It's possible there are other fixes in master that haven't been released yet. Here's the remaining failure:

======================================================================
FAIL: test_guest_deploy_smut_request_failed (test_smutclient.SDKSMUTClientTestCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/zvmsdk/tests/unit/test_smutclient.py", line 329, in test_guest_deploy_smut_request_failed
    execute.assert_has_calls([mock.call(unpack_cmd), mock.call(scp_cmd)])
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 969, in assert_has_calls
    ), cause)
  File "<string>", line 3, in raise_from
AssertionError: Calls not found.
Expected: [call(['sudo', '/opt/zthin/bin/unpackdiskimage', 'fakeuser', '0100', '/var/lib/zvmsdk/images/netboot/rhel7/fakeimg/0100']),
 call(['/usr/bin/scp', '-B', '-P', '22', '-o StrictHostKeyChecking=no', 'user@1.1.1.1:/faketran', '/tmp/tmpdir/faketran'])]
Actual: [call(['sudo', '/opt/zthin/bin/unpackdiskimage', 'fakeuser', '0100', '/var/lib/zvmsdk/images/netboot/rhel7/fakeimg/0100']),
 call(['/usr/bin/scp', '-B', 'user@1.1.1.1:/faketran', '/tmp/tmpdir/faketran'])]