This is an automated email from the ASF dual-hosted git repository. weizhou pushed a commit to branch 4.19-fix-kvm-LibvirtReplugNicCommandWrapperTest in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit e24716077ca803ea393f8985517b76562f25e68c Author: Wei Zhou <[email protected]> AuthorDate: Thu Aug 24 12:44:30 2023 +0200 kvm: fix unit test LibvirtReplugNicCommandWrapperTest --- .../kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java b/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java index 50864e4bb8c..f072f62e8ca 100644 --- a/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java +++ b/plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java @@ -283,6 +283,7 @@ public class LibvirtReplugNicCommandWrapperTest { final Connect conn = Mockito.mock(Connect.class); + when(libvirtComputingResource.getInterfaces(conn, "")).thenReturn(ifaces); final LibvirtReplugNicCommandWrapper wrapper = new LibvirtReplugNicCommandWrapper(); final NicTO nic = new NicTO(); nic.setType(Networks.TrafficType.Guest);
