@@ -546,7 +546,7 @@ describe('ClusterCommand unit tests', () => {
546
546
expect ( contextPromptStub ) . not . called ;
547
547
expect ( command . getK8 ( ) . setCurrentContext ) . to . have . been . calledWith ( 'context-2' ) ;
548
548
expect ( command . getK8 ( ) . testContextConnection ) . calledOnce ;
549
- expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'context-2' , 'cluster-2' ) ;
549
+ expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'context-2' ) ;
550
550
} ) ;
551
551
552
552
it ( 'should prompt for context when reading unknown cluster' , async ( ) => {
@@ -565,7 +565,7 @@ describe('ClusterCommand unit tests', () => {
565
565
expect ( contextPromptStub ) . calledOnce ;
566
566
expect ( command . getK8 ( ) . setCurrentContext ) . to . have . been . calledWith ( 'prompted-context' ) ;
567
567
expect ( command . getK8 ( ) . testContextConnection ) . calledOnce ;
568
- expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'prompted-context' , 'cluster-4' ) ;
568
+ expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'prompted-context' ) ;
569
569
} ) ;
570
570
571
571
it ( 'should throw error for invalid prompted context' , async ( ) => {
@@ -587,7 +587,7 @@ describe('ClusterCommand unit tests', () => {
587
587
expect ( e . message ) . to . eq ( ErrorMessages . INVALID_CONTEXT_FOR_CLUSTER_DETAILED ( 'prompted-context' , 'cluster-4' ) ) ;
588
588
expect ( contextPromptStub ) . calledOnce ;
589
589
expect ( command . getK8 ( ) . testContextConnection ) . calledOnce ;
590
- expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'prompted-context' , 'cluster-4' ) ;
590
+ expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'prompted-context' ) ;
591
591
}
592
592
} ) ;
593
593
@@ -616,7 +616,7 @@ describe('ClusterCommand unit tests', () => {
616
616
expect ( e . message ) . to . eq ( ErrorMessages . REMOTE_CONFIGS_DO_NOT_MATCH ( 'cluster-3' , 'cluster-4' ) ) ;
617
617
expect ( contextPromptStub ) . calledOnce ;
618
618
expect ( command . getK8 ( ) . testContextConnection ) . calledOnce ;
619
- expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'prompted-context' , 'cluster-4' ) ;
619
+ expect ( command . getK8 ( ) . testContextConnection ) . calledWith ( 'prompted-context' ) ;
620
620
}
621
621
} ) ;
622
622
} ) ;
0 commit comments