File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ describe("Authentication validation",() => {
1414 } ) ;
1515 it ( 'Result authentication failed case' , async ( ) => {
1616 let cxScanConfig_fail = new CxScanConfig ( ) ;
17- cxScanConfig_fail . baseUri = process . env [ "CX_BASE_URI" ] ;
18- cxScanConfig_fail . clientId = "" ;
19- cxScanConfig_fail . clientSecret = "" ;
17+ cxScanConfig_fail . baseUri = "error" ;
18+ cxScanConfig_fail . clientId = "error " ;
19+ cxScanConfig_fail . clientSecret = "error " ;
2020 cxScanConfig_fail . tenant = process . env [ "CX_TENANT" ] ;
21- cxScanConfig_fail . apiKey = "" ;
21+ cxScanConfig_fail . apiKey = "error " ;
2222
23- const auth = new CxWrapper ( cxScanConfig ) ;
23+ const auth = new CxWrapper ( cxScanConfig_fail ) ;
2424 const data = await auth . authValidate ( ) ;
2525 const cxCommandOutput : CxCommandOutput = data ;
2626 expect ( cxCommandOutput . exitCode ) . toBe ( 1 ) ;
You can’t perform that action at this time.
0 commit comments