@@ -16,7 +16,7 @@ func TestAuthenticate(t *testing.T) {
16
16
expectedErr := errors .New ("call error" )
17
17
k .deployExec .Endpoint .(* api.DefaultEndpoint ).MockErr (expectedErr )
18
18
19
- if _ , err := k .Authenticate ("foo" , "bar" ); ! errors .Is (err , expectedErr ) {
19
+ if _ , err := k .Authenticate ("foo" , "bar" , "" ); ! errors .Is (err , expectedErr ) {
20
20
t .Error ("unexpected error return from Authenticate" )
21
21
}
22
22
@@ -29,7 +29,7 @@ func TestAuthenticate(t *testing.T) {
29
29
CA : "ca" ,
30
30
})
31
31
32
- if _ , err := k .Authenticate ("foo" , "bar" ); ! strings .Contains (err .Error (), "failed to generate access credentials" ) {
32
+ if _ , err := k .Authenticate ("foo" , "bar" , "" ); ! strings .Contains (err .Error (), "failed to generate access credentials" ) {
33
33
t .Errorf ("unexpected error from DeployExec call: %v" , err )
34
34
}
35
35
@@ -43,7 +43,7 @@ func TestAuthenticate(t *testing.T) {
43
43
44
44
authTempPath = t .TempDir ()
45
45
46
- if cloudService , err := k .Authenticate ("foo" , "bar" ); err != nil {
46
+ if cloudService , err := k .Authenticate ("foo" , "bar" , "" ); err != nil {
47
47
t .Errorf ("unexpected error from Authenticate call: %v" , err )
48
48
} else if cloudService != "path" {
49
49
t .Errorf ("unexpected cloudService return: %s" , cloudService )
@@ -104,7 +104,7 @@ func TestKubectl(t *testing.T) {
104
104
t .Error ("should get error before authenticating" )
105
105
}
106
106
107
- _ , _ = k .Authenticate ("foo" , "bar" )
107
+ _ , _ = k .Authenticate ("foo" , "bar" , "" )
108
108
109
109
if cmd , _ := k .Kubectl (fakeShell ); cmd .Cmd () != "kubectl" {
110
110
t .Error ("should use kubectl" )
0 commit comments