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'])]
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:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= deploy_ smut_request_ failed (test_smutclien t.SDKSMUTClient TestCases) ------- ------- ------- ------- ------- ------- ------- ------- ------- python3/ dist-packages/ mock/mock. py", line 1305, in patched >>/zvmsdk/ tests/unit/ test_smutclient .py", line 329, in test_guest_ deploy_ smut_request_ failed assert_ has_calls( [mock.call( unpack_ cmd), mock.call( scp_cmd) ]) python3/ dist-packages/ mock/mock. py", line 969, in assert_has_calls bin/unpackdiski mage', 'fakeuser', '0100', '/var/lib/ zvmsdk/ images/ netboot/ rhel7/fakeimg/ 0100']) , '/usr/bin/ scp', '-B', '-P', '22', '-o StrictHostKeyCh ecking= no', 'user@1. 1.1.1:/ faketran' , '/tmp/tmpdir/ faketran' ])] bin/unpackdiski mage', 'fakeuser', '0100', '/var/lib/ zvmsdk/ images/ netboot/ rhel7/fakeimg/ 0100']) , '/usr/bin/ scp', '-B', 'user@1. 1.1.1:/ faketran' , '/tmp/tmpdir/ faketran' ])]
FAIL: test_guest_
-------
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "/<<PKGBUILDDIR
execute.
File "/usr/lib/
), cause)
File "<string>", line 3, in raise_from
AssertionError: Calls not found.
Expected: [call(['sudo', '/opt/zthin/
call([
Actual: [call(['sudo', '/opt/zthin/
call([