kvm: fix unit test LibvirtReplugNicCommandWrapperTest (#7908)

This commit is contained in:
Wei Zhou 2023-08-24 18:11:04 +02:00 committed by GitHub
parent 47b6f0fd05
commit c683de4a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 =