From 49dadde97886f31fd32b220e1918c5025c6c317e Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Sun, 19 Nov 2017 17:01:50 +0100 Subject: golint: Url -> URL --- libvirt/resource_libvirt_domain_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libvirt') 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 { -- cgit v1.2.3