You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by we...@apache.org on 2023/08/24 10:45:00 UTC
[cloudstack] branch 4.19-fix-kvm-LibvirtReplugNicCommandWrapperTest created (now e24716077ca)
This is an automated email from the ASF dual-hosted git repository.
weizhou pushed a change to branch 4.19-fix-kvm-LibvirtReplugNicCommandWrapperTest
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
at e24716077ca kvm: fix unit test LibvirtReplugNicCommandWrapperTest
This branch includes the following new commits:
new e24716077ca kvm: fix unit test LibvirtReplugNicCommandWrapperTest
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[cloudstack] 01/01: kvm: fix unit test LibvirtReplugNicCommandWrapperTest
Posted by we...@apache.org.
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 <we...@apache.org>
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);