Unverified Commit 7a958cf9 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #68402 from saravanan30erd/cloudprovider-ovirt

Fix golint failures - pkg/cloudprovider/providers/ovirt
parents 8b11fda2 14a9fa47
...@@ -89,7 +89,6 @@ pkg/auth/authorizer/abac ...@@ -89,7 +89,6 @@ pkg/auth/authorizer/abac
pkg/capabilities pkg/capabilities
pkg/cloudprovider/providers/fake pkg/cloudprovider/providers/fake
pkg/cloudprovider/providers/gce/cloud pkg/cloudprovider/providers/gce/cloud
pkg/cloudprovider/providers/ovirt
pkg/cloudprovider/providers/photon pkg/cloudprovider/providers/photon
pkg/cloudprovider/providers/vsphere pkg/cloudprovider/providers/vsphere
pkg/cloudprovider/providers/vsphere/vclib pkg/cloudprovider/providers/vsphere/vclib
......
...@@ -62,14 +62,14 @@ uri = https://localhost:8443/ovirt-engine/api ...@@ -62,14 +62,14 @@ uri = https://localhost:8443/ovirt-engine/api
func TestOVirtCloudXmlParsing(t *testing.T) { func TestOVirtCloudXmlParsing(t *testing.T) {
body1 := (io.Reader)(nil) body1 := (io.Reader)(nil)
_, err1 := getInstancesFromXml(body1) _, err1 := getInstancesFromXML(body1)
if err1 == nil { if err1 == nil {
t.Fatalf("An error is expected when body is missing") t.Fatalf("An error is expected when body is missing")
} }
body2 := strings.NewReader("") body2 := strings.NewReader("")
_, err2 := getInstancesFromXml(body2) _, err2 := getInstancesFromXML(body2)
if err2 == nil { if err2 == nil {
t.Fatalf("An error is expected when body is empty") t.Fatalf("An error is expected when body is empty")
} }
...@@ -80,7 +80,7 @@ func TestOVirtCloudXmlParsing(t *testing.T) { ...@@ -80,7 +80,7 @@ func TestOVirtCloudXmlParsing(t *testing.T) {
</vms> </vms>
`) `)
instances3, err3 := getInstancesFromXml(body3) instances3, err3 := getInstancesFromXML(body3)
if err3 != nil { if err3 != nil {
t.Fatalf("Unexpected error listing instances: %s", err3) t.Fatalf("Unexpected error listing instances: %s", err3)
} }
...@@ -111,7 +111,7 @@ func TestOVirtCloudXmlParsing(t *testing.T) { ...@@ -111,7 +111,7 @@ func TestOVirtCloudXmlParsing(t *testing.T) {
</vms> </vms>
`) `)
instances4, err4 := getInstancesFromXml(body4) instances4, err4 := getInstancesFromXML(body4)
if err4 != nil { if err4 != nil {
t.Fatalf("Unexpected error listing instances: %s", err4) t.Fatalf("Unexpected error listing instances: %s", err4)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment