Skip to content

Commit 5683fe3

Browse files
committed
Fixed the ContextUserTokenTest: No username is set in token-based authentication
1 parent 052f597 commit 5683fe3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/KubernetesClientConfigurationTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,12 @@ public void ContextHostTest(string context, string host)
6363
/// <param name="username"></param>
6464
/// <param name="token"></param>
6565
[Theory]
66-
[InlineData("queen-anne-context", "black-user" ,"black-token")]
67-
public void ContextUserTokenTest(string context, string username, string token)
66+
[InlineData("queen-anne-context", "black-token")]
67+
public void ContextUserTokenTest(string context, string token)
6868
{
6969
var fi = new FileInfo(kubeConfigFileName);
7070
var cfg = new KubernetesClientConfiguration(fi, context);
7171
Assert.Equal(context, cfg.CurrentContext);
72-
Assert.Equal(username, cfg.Username);
7372
Assert.Equal(token, cfg.AccessToken);
7473
}
7574

0 commit comments

Comments
 (0)