Skip to content

Commit bd2fca1

Browse files
committed
Added the null check for username in ContextUserTokenTest
1 parent 5683fe3 commit bd2fca1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/KubernetesClientConfigurationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void ContextUserTokenTest(string context, string token)
6969
var fi = new FileInfo(kubeConfigFileName);
7070
var cfg = new KubernetesClientConfiguration(fi, context);
7171
Assert.Equal(context, cfg.CurrentContext);
72+
Assert.Null(cfg.Username);
7273
Assert.Equal(token, cfg.AccessToken);
7374
}
7475

0 commit comments

Comments
 (0)