Reviewed: https://review.opendev.org/676844 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8d50b509ece98db3dec94f1779b0fa0f1e2b319b Submitter: Zuul Branch: stable/queens
commit 8d50b509ece98db3dec94f1779b0fa0f1e2b319b Author: Takashi NATSUME <email address hidden> Date: Wed Aug 7 14:38:45 2019 +0900
Fix non-existent method of Mock
There is no method called_once_with() in Mock object. Use assert_called_once_with() or assert_has_calls() instead.
Conflicts: nova/tests/unit/compute/test_compute_api.py nova/tests/unit/console/test_websocketproxy.py nova/tests/unit/virt/libvirt/test_driver.py
NOTE(takashin): The conflict is due to not having the following changes in stable/queens.
I4636a8d270ce01c1831bc951c4497ad472bc9aa8 If1b6e5f20d2ea82d94f5f0550f13189fc9bc16c4 Icdd039bb4374269d9da38e7f8d2e15e05ca8aadb
Change-Id: I9f73fcbe7c3dfd64e75ac8224c13934b03443cd5 Closes-Bug: #1544522 (cherry picked from commit cf7d28eb6ea47818e9f3584f65ec025f5a46326b) (cherry picked from commit d90186068b197f0912fa2bf525bb752f2d8f3c31) (cherry picked from commit a5f39bd9c3771b4cf64c1a5b68bb850988e1fc73)
Reviewed: https:/ /review. opendev. org/676844 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8d50b509ece 98db3dec94f1779 b0fa0f1e2b319b
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 8d50b509ece98db 3dec94f1779b0fa 0f1e2b319b
Author: Takashi NATSUME <email address hidden>
Date: Wed Aug 7 14:38:45 2019 +0900
Fix non-existent method of Mock
There is no method called_once_with() in Mock object. called_ once_with( ) or assert_has_calls() instead.
Use assert_
Conflicts:
nova/tests/ unit/compute/ test_compute_ api.py
nova/tests/ unit/console/ test_websocketp roxy.py
nova/tests/ unit/virt/ libvirt/ test_driver. py
NOTE(takashin): The conflict is due to not having the following changes
in stable/queens.
Change-Id: I9f73fcbe7c3dfd 64e75ac8224c139 34b03443cd5 8e9f3584f65ec02 5f5a46326b) 912fa2bf525bb75 2f2d8f3c31) cf64c1a5b68bb85 0988e1fc73)
Closes-Bug: #1544522
(cherry picked from commit cf7d28eb6ea4781
(cherry picked from commit d90186068b197f0
(cherry picked from commit a5f39bd9c3771b4