Skip to content

Commit b914e67

Browse files
committed
domain: Make Filesystems test work when unprivileged
i-e when using a libvirt connection other than local system libvirt.
1 parent dd48dc9 commit b914e67

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

libvirt/resource_libvirt_domain_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,6 @@ func TestAccLibvirtDomain_Filesystems(t *testing.T) {
789789
target = "tmp"
790790
readonly = false
791791
}
792-
filesystem {
793-
source = "/proc"
794-
target = "proc"
795-
readonly = true
796-
}
797792
}`, randomDomainName, randomDomainName)
798793

799794
resource.Test(t, resource.TestCase{
@@ -811,12 +806,6 @@ func TestAccLibvirtDomain_Filesystems(t *testing.T) {
811806
"libvirt_domain."+randomDomainName, "filesystem.0.target", "tmp"),
812807
resource.TestCheckResourceAttr(
813808
"libvirt_domain."+randomDomainName, "filesystem.0.readonly", "false"),
814-
resource.TestCheckResourceAttr(
815-
"libvirt_domain."+randomDomainName, "filesystem.1.source", "/proc"),
816-
resource.TestCheckResourceAttr(
817-
"libvirt_domain."+randomDomainName, "filesystem.1.target", "proc"),
818-
resource.TestCheckResourceAttr(
819-
"libvirt_domain."+randomDomainName, "filesystem.1.readonly", "true"),
820809
),
821810
},
822811
},

0 commit comments

Comments
 (0)