@@ -16,7 +16,7 @@ func TestAuthenticate(t *testing.T) {
1616 expectedErr := errors .New ("call error" )
1717 k .deployExec .Endpoint .(* api.DefaultEndpoint ).MockErr (expectedErr )
1818
19- if _ , err := k .Authenticate ("foo" , "bar" ); ! errors .Is (err , expectedErr ) {
19+ if _ , err := k .Authenticate ("foo" , "bar" , "" ); ! errors .Is (err , expectedErr ) {
2020 t .Error ("unexpected error return from Authenticate" )
2121 }
2222
@@ -29,7 +29,7 @@ func TestAuthenticate(t *testing.T) {
2929 CA : "ca" ,
3030 })
3131
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" ) {
3333 t .Errorf ("unexpected error from DeployExec call: %v" , err )
3434 }
3535
@@ -43,7 +43,7 @@ func TestAuthenticate(t *testing.T) {
4343
4444 authTempPath = t .TempDir ()
4545
46- if cloudService , err := k .Authenticate ("foo" , "bar" ); err != nil {
46+ if cloudService , err := k .Authenticate ("foo" , "bar" , "" ); err != nil {
4747 t .Errorf ("unexpected error from Authenticate call: %v" , err )
4848 } else if cloudService != "path" {
4949 t .Errorf ("unexpected cloudService return: %s" , cloudService )
@@ -104,7 +104,7 @@ func TestKubectl(t *testing.T) {
104104 t .Error ("should get error before authenticating" )
105105 }
106106
107- _ , _ = k .Authenticate ("foo" , "bar" )
107+ _ , _ = k .Authenticate ("foo" , "bar" , "" )
108108
109109 if cmd , _ := k .Kubectl (fakeShell ); cmd .Cmd () != "kubectl" {
110110 t .Error ("should use kubectl" )
0 commit comments