Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Fix formatting of Fatalf messages #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions api_vca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestClient_vaacquireservice(t *testing.T) {
}

if vacomputehref.String() != "http://localhost:4444/api/vchs/compute/00000000-0000-0000-0000-000000000000" {
t.Fatalf("VAComputeHREF not set on client: %s", vacomputehref)
t.Fatalf("VAComputeHREF not set on client: %s", vacomputehref.String())
}

if client.Region != "US - Anywhere" {
Expand Down Expand Up @@ -212,7 +212,7 @@ func TestClient_vaacquirecompute(t *testing.T) {
}

if vavdchref.String() != "http://localhost:4444/api/vchs/compute/00000000-0000-0000-0000-000000000000/vdc/00000000-0000-0000-0000-000000000000/vcloudsession" {
t.Fatalf("VAVDCHREF not set on client: %s", vavdchref)
t.Fatalf("VAVDCHREF not set on client: %s", vavdchref.String())
}

// Test client errors
Expand Down Expand Up @@ -276,7 +276,7 @@ func TestClient_vagetbackendauth(t *testing.T) {
t.Fatalf("VCDAuthHeader not set on client: %s", client.Client.VCDAuthHeader)
}
if client.Client.VCDVDCHREF.String() != "http://localhost:4444/api/vdc/00000000-0000-0000-0000-000000000000" {
t.Fatalf("VDC not set on client: %s", client.Client.VCDVDCHREF)
t.Fatalf("VDC not set on client: %s", client.Client.VCDVDCHREF.String())
}

// Test client errors
Expand Down Expand Up @@ -368,7 +368,7 @@ func TestClient_vaacquireservice_env(t *testing.T) {
}

if vacomputehref.String() != "http://localhost:4444/api/vchs/compute/00000000-0000-0000-0000-000000000000" {
t.Fatalf("VAComputeHREF not set on client: %s", vacomputehref)
t.Fatalf("VAComputeHREF not set on client: %s", vacomputehref.String())
}

if client.Region != "US - Anywhere" {
Expand Down Expand Up @@ -399,7 +399,7 @@ func TestClient_vaacquirecompute_env(t *testing.T) {
}

if vavdchref.String() != "http://localhost:4444/api/vchs/compute/00000000-0000-0000-0000-000000000000/vdc/00000000-0000-0000-0000-000000000000/vcloudsession" {
t.Fatalf("VAVDCHREF not set on client: %s", vavdchref)
t.Fatalf("VAVDCHREF not set on client: %s", vavdchref.String())
}

}
Expand Down Expand Up @@ -432,7 +432,7 @@ func TestClient_vagetbackendauth_env(t *testing.T) {
t.Fatalf("VCDAuthHeader not set on client: %s", client.Client.VCDAuthHeader)
}
if client.Client.VCDVDCHREF.String() != "http://localhost:4444/api/vdc/00000000-0000-0000-0000-000000000000" {
t.Fatalf("VDC not set on client: %s", client.Client.VCDVDCHREF)
t.Fatalf("VDC not set on client: %s", client.Client.VCDVDCHREF.String())
}

}
Expand Down Expand Up @@ -611,7 +611,7 @@ func makeClient(t *testing.T) VAClient {
t.Fatalf("VCDAuthHeader not set on client: %s", client.Client.VCDAuthHeader)
}
if client.Client.VCDVDCHREF.String() != "http://localhost:4444/api/vdc/00000000-0000-0000-0000-000000000000" {
t.Fatalf("VDC not set on client: %s", client.Client.VCDVDCHREF)
t.Fatalf("VDC not set on client: %s", client.Client.VCDVDCHREF.String())
}

return *client
Expand Down