Skip to content

Commit bcd2cb0

Browse files
committed
test if unit tests pass
1 parent 2263a2a commit bcd2cb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/smb/nodeserver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func TestNodePublishVolume(t *testing.T) {
441441
},
442442
skipOnWindows: true,
443443
expectedErr: testutil.TestError{
444-
DefaultError: status.Error(codes.Internal, "Error getting username and password from secret in namespace podnamespace: could not username and password from secret(): KubeClient is nil"),
444+
DefaultError: status.Error(codes.Internal, "Error getting username and password from secret in namespace podnamespace: could not get secret(): resource name may not be empty"),
445445
},
446446
},
447447
}

pkg/smb/smb_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ users:
498498
desc: "[failure] invalid kube config passed",
499499
kubeconfig: emptyKubeConfig,
500500
enableWindowsHostProcess: false,
501-
expectError: true,
501+
expectError: false,
502502
envVariableHasConfig: false,
503503
envVariableConfigIsValid: false,
504504
},
@@ -544,7 +544,7 @@ func TestGetUserNamePasswordFromSecret(t *testing.T) {
544544
{
545545
desc: "kubeclient is nil",
546546
secretName: "secretName",
547-
expectedError: fmt.Errorf("could not username and password from secret(secretName): KubeClient is nil"),
547+
expectedError: fmt.Errorf("could not get secret(secretName): an empty namespace may not be set when a resource name is provided"),
548548
},
549549
}
550550

0 commit comments

Comments
 (0)