Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Jun 6, 2019
1 parent bbdbacc commit e214499
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/integration/addons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ func testIngressController(t *testing.T) {
if err != nil {
t.Errorf("Error getting the file path for current directory: %s", curdir)
}
ingressPath, _ := path.Join(curdir, "testdata/nginx-ing.yaml")
ingressPath := path.Join(curdir, "testdata/nginx-ing.yaml")
if _, err := kubectlRunner.RunCommand([]string{"create", "-f", ingressPath}); err != nil {
t.Fatalf("creating nginx ingress resource: %v", err)
}

podPath, _ := path.Join(curdir, "testdata/nginx-pod-svc.yaml")
podPath := path.Join(curdir, "testdata/nginx-pod-svc.yaml")
if _, err := kubectlRunner.RunCommand([]string{"create", "-f", podPath}); err != nil {
t.Fatalf("creating nginx ingress resource: %v", err)
}
Expand Down Expand Up @@ -257,7 +257,7 @@ func createUntrustedWorkload(t *testing.T) {
if err != nil {
t.Errorf("Error getting the file path for current directory: %s", curdir)
}
ingressPath, _ := path.Join(curdir, "testdata", "nginx-untrusted.yaml")
untrustedPath := path.Join(curdir, "testdata", "nginx-untrusted.yaml")
t.Log("creating pod with untrusted workload annotation")
if _, err := kubectlRunner.RunCommand([]string{"replace", "-f", untrustedPath, "--force"}); err != nil {
t.Fatalf("creating untrusted nginx resource: %v", err)
Expand All @@ -270,7 +270,7 @@ func deleteUntrustedWorkload(t *testing.T) {
if err != nil {
t.Errorf("Error getting the file path for current directory: %s", curdir)
}
untrustedPath, _ := path.Join(curdir, "testdata", "/nginx-untrusted.yaml")
untrustedPath := path.Join(curdir, "testdata", "/nginx-untrusted.yaml")
if _, err := kubectlRunner.RunCommand([]string{"delete", "-f", untrustedPath}); err != nil {
t.Logf("error deleting untrusted nginx resource: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/mount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func testMounting(t *testing.T) {
if err != nil {
t.Errorf("Error getting the file path for current directory: %s", curdir)
}
podPath, _ := path.Join(curdir, "testdata", "busybox-mount-test.yaml")
podPath := path.Join(curdir, "testdata", "busybox-mount-test.yaml")

// Write file in mounted dir from host
expected := "test\n"
Expand Down

0 comments on commit e214499

Please sign in to comment.