summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorManuel Bentele2021-03-24 12:35:37 +0100
committerManuel Bentele2021-03-24 12:35:37 +0100
commit936887890b6517d844331c7a37a1dc56c6a47da1 (patch)
tree1b673b26703bb951141823c8990bbccee4787eda /src/test
parentAdd MAC address for network interfaces in Libvirt domain XML documents (diff)
downloadmaster-sync-shared-936887890b6517d844331c7a37a1dc56c6a47da1.tar.gz
master-sync-shared-936887890b6517d844331c7a37a1dc56c6a47da1.tar.xz
master-sync-shared-936887890b6517d844331c7a37a1dc56c6a47da1.zip
Add parallel and serial devices to Libvirt domain XML documents
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/openslx/libvirt/domain/DomainTest.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/test/java/org/openslx/libvirt/domain/DomainTest.java b/src/test/java/org/openslx/libvirt/domain/DomainTest.java
index 1712b68..b4e0187 100644
--- a/src/test/java/org/openslx/libvirt/domain/DomainTest.java
+++ b/src/test/java/org/openslx/libvirt/domain/DomainTest.java
@@ -302,7 +302,7 @@ public class DomainTest
public void testGetDevices()
{
Domain vm = this.newDomainInstance( "qemu-kvm_default-ubuntu-20-04-vm.xml" );
- assertEquals( 21, vm.getDevices().size() );
+ assertEquals( 22, vm.getDevices().size() );
}
@Test
@@ -346,6 +346,22 @@ public class DomainTest
}
@Test
+ @DisplayName( "Get all VM parallel port devices from libvirt XML file" )
+ public void testGetParallelDevices()
+ {
+ Domain vm = this.newDomainInstance( "qemu-kvm_default-ubuntu-20-04-vm.xml" );
+ assertEquals( 0, vm.getParallelDevices().size() );
+ }
+
+ @Test
+ @DisplayName( "Get all VM serial port devices from libvirt XML file" )
+ public void testGetSerialDevices()
+ {
+ Domain vm = this.newDomainInstance( "qemu-kvm_default-ubuntu-20-04-vm.xml" );
+ assertEquals( 1, vm.getSerialDevices().size() );
+ }
+
+ @Test
@DisplayName( "Get all VM sound devices from libvirt XML file" )
public void testGetSoundDevices()
{