File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,7 @@ public void testTopology() {
566566 assertEquals ("<cpu><topology sockets='4' cores='2' threads='1' /></cpu>" , cpuModeDef .toString ());
567567 }
568568
569+ @ Test
569570 public void testTopologyNoInfo () {
570571 LibvirtVMDef .CpuModeDef cpuModeDef = new LibvirtVMDef .CpuModeDef ();
571572 cpuModeDef .setTopology (-1 , -1 , 4 );
@@ -577,5 +578,8 @@ public void testTpmModel() {
577578 LibvirtVMDef .TpmDef tpmDef = new LibvirtVMDef .TpmDef ("tpm-tis" , "2.0" );
578579 assertEquals (LibvirtVMDef .TpmDef .TpmModel .TIS , tpmDef .getModel ());
579580 assertEquals (LibvirtVMDef .TpmDef .TpmVersion .V2_0 , tpmDef .getVersion ());
581+ assertEquals ("<tpm model='tpm-tis'>\n " +
582+ "<backend type='emulator' version='2.0'/>\n " +
583+ "</tpm>\n " , tpmDef .toString ());
580584 }
581585}
You can’t perform that action at this time.
0 commit comments