Skip to content

Commit

Permalink
go fmt from make test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaovilai committed May 10, 2022
1 parent c0dc1a6 commit a0ecefd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controllers/velero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ import (
"k8s.io/utils/pointer"
"sigs.k8s.io/controller-runtime/pkg/client"
)

const proxyEnvKey = "HTTP_PROXY"
const proxyEnvValue = "http://proxy.example.com:8080"

func TestDPAReconciler_buildVeleroDeployment(t *testing.T) {
type fields struct {
Client client.Client
Expand All @@ -42,7 +44,7 @@ func TestDPAReconciler_buildVeleroDeployment(t *testing.T) {
wantErr bool
wantVeleroDeployment *appsv1.Deployment
clientObjects []client.Object
testProxy bool
testProxy bool
}{
{
name: "DPA CR is nil",
Expand Down Expand Up @@ -387,11 +389,11 @@ func TestDPAReconciler_buildVeleroDeployment(t *testing.T) {
Value: "/plugins",
},
{
Name: proxyEnvKey,
Name: proxyEnvKey,
Value: proxyEnvValue,
},
{
Name: strings.ToLower(proxyEnvKey),
Name: strings.ToLower(proxyEnvKey),
Value: proxyEnvValue,
},
},
Expand Down

0 comments on commit a0ecefd

Please sign in to comment.