diff options
author | Thomas Hipp <thomashipp@gmail.com> | 2017-11-28 09:55:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 09:55:44 +0100 |
commit | 3fe13bb19661adfd488ff20d978fbac407e34835 (patch) | |
tree | 4e607290bc9e5e57669a97b0060268f9db6bc64b /libvirt/resource_libvirt_network_test.go | |
parent | c7cc7221d46e8fa7ee7d64c7eab64f5515980fc1 (diff) | |
parent | c18ea2d3772fc16f7d4479d59a69becd3e81cba4 (diff) | |
download | terraform-provider-libvirt-3fe13bb19661adfd488ff20d978fbac407e34835.tar terraform-provider-libvirt-3fe13bb19661adfd488ff20d978fbac407e34835.tar.gz |
Merge pull request #253 from monstermunchkin/test-formatting
tests: format hcl strings
Diffstat (limited to 'libvirt/resource_libvirt_network_test.go')
-rw-r--r-- | libvirt/resource_libvirt_network_test.go | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/libvirt/resource_libvirt_network_test.go b/libvirt/resource_libvirt_network_test.go index cedcc507..f3c0d211 100644 --- a/libvirt/resource_libvirt_network_test.go +++ b/libvirt/resource_libvirt_network_test.go @@ -2,10 +2,11 @@ package libvirt import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" "github.com/libvirt/libvirt-go" - "testing" ) func TestNetworkAutostart(t *testing.T) { @@ -17,13 +18,13 @@ func TestNetworkAutostart(t *testing.T) { Steps: []resource.TestStep{ { Config: fmt.Sprintf(` - resource "libvirt_network" "test_net" { - name = "networktest" - mode = "nat" - domain = "k8s.local" - addresses = ["10.17.3.0/24"] - autostart = true - }`), + resource "libvirt_network" "test_net" { + name = "networktest" + mode = "nat" + domain = "k8s.local" + addresses = ["10.17.3.0/24"] + autostart = true + }`), Check: resource.ComposeTestCheckFunc( networkExists("libvirt_network.test_net", &network), resource.TestCheckResourceAttr("libvirt_network.test_net", "autostart", "true"), @@ -31,13 +32,13 @@ func TestNetworkAutostart(t *testing.T) { }, { Config: fmt.Sprintf(` - resource "libvirt_network" "test_net" { - name = "networktest" - mode = "nat" - domain = "k8s.local" - addresses = ["10.17.3.0/24"] - autostart = false - }`), + resource "libvirt_network" "test_net" { + name = "networktest" + mode = "nat" + domain = "k8s.local" + addresses = ["10.17.3.0/24"] + autostart = false + }`), Check: resource.ComposeTestCheckFunc( networkExists("libvirt_network.test_net", &network), resource.TestCheckResourceAttr("libvirt_network.test_net", "autostart", "false"), |