@@ -833,6 +833,13 @@ func TestAccLibvirtDomain_Consoles(t *testing.T) {
833
833
target_type = "virtio"
834
834
source_path = "/dev/pts/2"
835
835
}
836
+ console {
837
+ type = "tcp"
838
+ target_port = "0"
839
+ target_type = "virtio"
840
+ source_host = "127.0.1.1"
841
+ source_service = "cisco-sccp"
842
+ }
836
843
}` , randomDomainName , randomDomainName )
837
844
838
845
resource .Test (t , resource.TestCase {
@@ -858,6 +865,16 @@ func TestAccLibvirtDomain_Consoles(t *testing.T) {
858
865
"libvirt_domain." + randomDomainName , "console.1.target_type" , "virtio" ),
859
866
resource .TestCheckResourceAttr (
860
867
"libvirt_domain." + randomDomainName , "console.1.source_path" , "/dev/pts/2" ),
868
+ resource .TestCheckResourceAttr (
869
+ "libvirt_domain." + randomDomainName , "console.2.type" , "tcp" ),
870
+ resource .TestCheckResourceAttr (
871
+ "libvirt_domain." + randomDomainName , "console.2.target_port" , "0" ),
872
+ resource .TestCheckResourceAttr (
873
+ "libvirt_domain." + randomDomainName , "console.2.target_type" , "virtio" ),
874
+ resource .TestCheckResourceAttr (
875
+ "libvirt_domain." + randomDomainName , "console.2.source_host" , "127.0.1.1" ),
876
+ resource .TestCheckResourceAttr (
877
+ "libvirt_domain." + randomDomainName , "console.2.source_service" , "cisco-sccp" ),
861
878
),
862
879
},
863
880
},
0 commit comments