summaryrefslogtreecommitdiff
path: root/libvirt/resource_libvirt_domain_test.go
diff options
context:
space:
mode:
authorlocalghost <zkostrzewa@gmail.com>2017-06-15 23:12:48 +0200
committerlocalghost <zkostrzewa@gmail.com>2017-06-15 23:14:27 +0200
commitec5e7edfaa4023b1dbfaa05c0265a3d4e42df34c (patch)
treef9c8229cf85c6618d761b7b5c9904f8f308ad86f /libvirt/resource_libvirt_domain_test.go
parentc658e4449c0f47f013b0db17a72889e7237b7210 (diff)
downloadterraform-provider-libvirt-ec5e7edfaa4023b1dbfaa05c0265a3d4e42df34c.tar
terraform-provider-libvirt-ec5e7edfaa4023b1dbfaa05c0265a3d4e42df34c.tar.gz
Set "custom" CPU mode in CPU acceptance test.
This is the default mode according to libvirt docs.
Diffstat (limited to 'libvirt/resource_libvirt_domain_test.go')
-rw-r--r--libvirt/resource_libvirt_domain_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/resource_libvirt_domain_test.go b/libvirt/resource_libvirt_domain_test.go
index 942770d8..fba2d6da 100644
--- a/libvirt/resource_libvirt_domain_test.go
+++ b/libvirt/resource_libvirt_domain_test.go
@@ -330,7 +330,7 @@ func TestAccLibvirtDomain_Cpu(t *testing.T) {
resource "libvirt_domain" "acceptance-test-domain" {
name = "terraform-test"
cpu {
- mode = "host-passthrough"
+ mode = "custom"
}
}`)
@@ -344,7 +344,7 @@ func TestAccLibvirtDomain_Cpu(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckLibvirtDomainExists("libvirt_domain.acceptance-test-domain", &domain),
resource.TestCheckResourceAttr(
- "libvirt_domain.acceptance-test-domain", "cpu.mode", "host-passthrough"),
+ "libvirt_domain.acceptance-test-domain", "cpu.mode", "custom"),
),
},
},