File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -635,27 +635,6 @@ describe('getSeparateEnvConfigArgs', () => {
635635 expect ( configString ) . not . toContain ( '--username test-user' ) ;
636636 expect ( configString ) . not . toContain ( '--oidc-audience=jfrog-github' ) ;
637637 } ) ;
638- it ( 'Access Token Auth should be prioritized over basic auth' , async ( ) => {
639- const jfrogCredentials : JfrogCredentials = {
640- jfrogUrl : 'https://example.jfrog.io' ,
641- username : 'test-user' ,
642- password : 'test-password' ,
643- accessToken : 'test-access-token' ,
644- oidcProviderName : '' ,
645- oidcAudience : '' ,
646- oidcTokenId : '' ,
647- } ;
648-
649- const configArgs : string [ ] | undefined = await Utils . getSeparateEnvConfigArgs ( jfrogCredentials ) ;
650-
651- // Ensure the command does not include conflicting or duplicate arguments
652- const configString : string = configArgs ?. join ( ' ' ) || '' ;
653- expect ( configString ) . toContain ( '--url https://example.jfrog.io' ) ;
654- expect ( configString ) . toContain ( '--interactive=false' ) ;
655- expect ( configString ) . toContain ( '--overwrite=true' ) ;
656- expect ( configString ) . toContain ( '--access-token test-access-token' ) ;
657- expect ( configString ) . not . toContain ( '--username test-user' ) ;
658- } ) ;
659638} ) ;
660639
661640describe ( 'handleOidcAuth' , ( ) => {
You can’t perform that action at this time.
0 commit comments