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


The following commit(s) were added to 
refs/heads/4.19-fix-kvm-LibvirtReplugNicCommandWrapperTest by this push:
     new 41f9b6f236c kvm: fix unit test LibvirtReplugNicCommandWrapperTest
41f9b6f236c is described below

commit 41f9b6f236c5e06497411f97d7776b1a92aa51b0
Author: Wei Zhou <[email protected]>
AuthorDate: Thu Aug 24 15:57:29 2023 +0200

    kvm: fix unit test LibvirtReplugNicCommandWrapperTest
---
 .../kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java    | 6 ++++++
 1 file changed, 6 insertions(+)

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..8a6827f4139 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
@@ -236,6 +236,8 @@ public class LibvirtReplugNicCommandWrapperTest {
             bridgeVifDriver.configure(params);
             ovsVifDriver.configure(params);
         }
+
+        LibvirtVMDef.setGlobalLibvirtVersion(6400000L);
     }
 
     @Test
@@ -246,6 +248,10 @@ public class LibvirtReplugNicCommandWrapperTest {
                         + "<target dev='vnet10'/>\n"
                         + "<mac address='02:00:7c:98:00:02'/>\n"
                         + "<model type='virtio'/>\n"
+                        + "<bandwidth>\n"
+                        + "<inbound average='25600' peak='25600'/>\n"
+                        + "<outbound average='25600' peak='25600'/>\n"
+                        + "</bandwidth>\n"
                         + "<link state='up'/>\n"
                         + "</interface>\n";
         final String expectedAttachXml =

Reply via email to