diff options
author | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2017-11-19 17:01:50 +0100 |
---|---|---|
committer | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2017-11-19 17:01:50 +0100 |
commit | 49dadde97886f31fd32b220e1918c5025c6c317e (patch) | |
tree | 0fe385d5b26869a6706fde0662366706324c9a49 /libvirt | |
parent | 5ea094a4686747eba27dd1ced6b380300424f88f (diff) | |
download | terraform-provider-libvirt-49dadde97886f31fd32b220e1918c5025c6c317e.tar terraform-provider-libvirt-49dadde97886f31fd32b220e1918c5025c6c317e.tar.gz |
golint: Url -> URL
Diffstat (limited to 'libvirt')
-rw-r--r-- | libvirt/resource_libvirt_domain_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libvirt/resource_libvirt_domain_test.go b/libvirt/resource_libvirt_domain_test.go index 0fe6d078..65d9f898 100644 --- a/libvirt/resource_libvirt_domain_test.go +++ b/libvirt/resource_libvirt_domain_test.go @@ -203,14 +203,14 @@ func TestAccLibvirtDomain_ScsiDisk(t *testing.T) { } -func TestAccLibvirtDomainUrlDisk(t *testing.T) { +func TestAccLibvirtDomainURLDisk(t *testing.T) { var domain libvirt.Domain u, err := url.Parse("http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso") if err != nil { t.Error(err) } - var configUrl = fmt.Sprintf(` + var configURL = fmt.Sprintf(` resource "libvirt_domain" "acceptance-test-domain" { name = "terraform-test-domain" disk { @@ -224,10 +224,10 @@ func TestAccLibvirtDomainUrlDisk(t *testing.T) { CheckDestroy: testAccCheckLibvirtDomainDestroy, Steps: []resource.TestStep{ resource.TestStep{ - Config: configUrl, + Config: configURL, Check: resource.ComposeTestCheckFunc( testAccCheckLibvirtDomainExists("libvirt_domain.acceptance-test-domain", &domain), - testAccCheckLibvirtUrlDisk(u, &domain), + testAccCheckLibvirtURLDisk(u, &domain), ), }, }, @@ -623,7 +623,7 @@ func testAccCheckLibvirtScsiDisk(n string, domain *libvirt.Domain) resource.Test } } -func testAccCheckLibvirtUrlDisk(u *url.URL, domain *libvirt.Domain) resource.TestCheckFunc { +func testAccCheckLibvirtURLDisk(u *url.URL, domain *libvirt.Domain) resource.TestCheckFunc { return func(s *terraform.State) error { xmlDesc, err := domain.GetXMLDesc(0) if err != nil { |