From 5ae472210c4955a22672eca84974018513847f61 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 4 Dec 2025 11:55:03 +0530 Subject: [PATCH 1/6] Added changed to show or update SCA triage --- checkmarx-ast-cli.version | 2 +- src/main/wrapper/CxConstants.ts | 1 + src/main/wrapper/CxWrapper.ts | 32 ++++++++ src/tests/PredicateTest.test.ts | 138 ++++++++++++++++++++++++++++++++ 4 files changed, 172 insertions(+), 1 deletion(-) diff --git a/checkmarx-ast-cli.version b/checkmarx-ast-cli.version index 0f1c3e55..929c535c 100644 --- a/checkmarx-ast-cli.version +++ b/checkmarx-ast-cli.version @@ -1 +1 @@ -2.3.40 +2.3.40-sca-triage diff --git a/src/main/wrapper/CxConstants.ts b/src/main/wrapper/CxConstants.ts index 7c40bc12..28e25439 100644 --- a/src/main/wrapper/CxConstants.ts +++ b/src/main/wrapper/CxConstants.ts @@ -1,4 +1,5 @@ export enum CxConstants { + VULNERABILITIES = "--vulnerabilities", IGNORE__FILE_PATH = "--ignored-file-path", SOURCE = "-s", VERBOSE = "-v", diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 67ded66c..1b5fe5d0 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -298,6 +298,38 @@ export class CxWrapper { return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.PREDICATE_TYPE); } + async triageSCAShow(projectId: string, vulnerabilities: string, scanType: string): Promise { + const commands: string[] = [ + CxConstants.CMD_TRIAGE, + CxConstants.SUB_CMD_SHOW, + CxConstants.SCAN_TYPES_SUB_CMD, scanType, + CxConstants.VULNERABILITIES, vulnerabilities, + CxConstants.PROJECT_ID, projectId + ]; + commands.push(...this.initializeCommands(true)); + const exec = new ExecutionService(); + return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.PREDICATE_TYPE); + } + + async triageSCAUpdate(projectId: string, vulnerabilities: string, scanType: string, state: string, comment: string,stateId: number | null = null): Promise { + const commands: string[] = [ + CxConstants.CMD_TRIAGE, + CxConstants.SUB_CMD_UPDATE, + CxConstants.SCAN_TYPES_SUB_CMD, scanType, + CxConstants.VULNERABILITIES, vulnerabilities, + CxConstants.STATE, state, + CxConstants.COMMENT, comment, + CxConstants.PROJECT_ID, projectId + ]; + if (stateId) { + commands.push(CxConstants.STATE_ID); + commands.push(stateId.toString()); + } + commands.push(...this.initializeCommands(false)); + const exec = new ExecutionService(); + return await exec.executeCommands(this.config.pathToExecutable, commands); + } + async triageUpdate(projectId: string, similarityId: string, scanType: string, state: string, comment: string, severity: string, stateId: number | null = null): Promise { const commands: string[] = [CxConstants.CMD_TRIAGE, CxConstants.SUB_CMD_UPDATE, CxConstants.PROJECT_ID, projectId, CxConstants.SIMILARITY_ID, similarityId, CxConstants.SCAN_TYPES_SUB_CMD, scanType, CxConstants.STATE, state, CxConstants.COMMENT, comment, CxConstants.SEVERITY, severity]; if (stateId) { diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index ffa7b708..67046fbf 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -5,6 +5,120 @@ import CxResult from '../main/results/CxResult'; import {CxConstants} from '../main/wrapper/CxConstants'; describe("Triage cases", () => { + + it('SCA Triage Show and Update Successful case', async () => { + const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; + const vulnerabilities = "packagename=Maven-org.apache.tomcat.embed:tomcat-embed-core,packageversion=9.0.14,vulnerabilityId=CVE-2024-56337,packagemanager=maven"; + const scanType = "sca"; + const state = "To_verify"; + const comment = "comment1"; + await handleTriageSCAShow(projectId, vulnerabilities, scanType); + await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + }); + + // SCA Triage Update with stateId + it('SCA Triage Update with stateId', async () => { + const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; + const vulnerabilities = "packagename=Maven-org.apache.tomcat.embed:tomcat-embed-core,packageversion=9.0.14,vulnerabilityId=CVE-2024-56337,packagemanager=maven"; + const scanType = "sca"; + const state = "To_verify"; + const comment = "comment1"; + const stateId = 123; + await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment, stateId); + }); + + // SCA Triage Show and Update - Failure + it('SCA Triage Show and Update Failure case', async () => { + const projectId = "invalid-project-id"; + const vulnerabilities = "invalid-vulnerability-string"; + const scanType = "invalid"; + const state = "invalid_state"; + const comment = "invalid_comment"; + let errorShow = false; + let errorUpdate = false; + try { + const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); + expect(cxShow.exitCode).not.toEqual(0); + } catch (e) { + errorShow = true; + } + try { + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + expect(cxUpdate.exitCode).not.toEqual(0); + } catch (e) { + errorUpdate = true; + } + expect(errorShow || errorUpdate).toBe(true); + }); + + // SCA Triage Show and Update - Edge case: empty vulnerabilities + it('SCA Triage Show and Update with empty vulnerabilities', async () => { + const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; + const vulnerabilities = ""; + const scanType = "sca"; + const state = "To_verify"; + const comment = "comment1"; + let errorShow = false; + let errorUpdate = false; + try { + const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); + expect(cxShow.exitCode).not.toEqual(0); + } catch (e) { + errorShow = true; + } + try { + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + expect(cxUpdate.exitCode).not.toEqual(0); + } catch (e) { + errorUpdate = true; + } + expect(errorShow || errorUpdate).toBe(true); + }); + + // SCA Triage Show and Update - Edge case: null/undefined arguments + it('SCA Triage Show and Update with null/undefined arguments', async () => { + let errorShow = false; + let errorUpdate = false; + try { + // @ts-ignore + const cxShow: CxCommandOutput = await auth.triageSCAShow(undefined, undefined, undefined); + expect(cxShow.exitCode).not.toEqual(0); + } catch (e) { + errorShow = true; + } + try { + // @ts-ignore + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(undefined, undefined, undefined, undefined, undefined); + expect(cxUpdate.exitCode).not.toEqual(0); + } catch (e) { + errorUpdate = true; + } + expect(errorShow || errorUpdate).toBe(true); + }); + + it('SCA Triage Show and Update Failure case', async () => { + // Example values for SCA triage (simulate failure) + const projectId = "invalid-project-id"; + const vulnerabilities = "invalid-vulnerability-string"; + const scanType = "invalid"; + const state = "invalid_state"; + const comment = "invalid_comment"; + let errorShow = false; + let errorUpdate = false; + try { + const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); + expect(cxShow.exitCode).not.toEqual(0); + } catch (e) { + errorShow = true; + } + try { + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + expect(cxUpdate.exitCode).not.toEqual(0); + } catch (e) { + errorUpdate = true; + } + expect(errorShow || errorUpdate).toBe(true); + }); const cxScanConfig = new BaseTest(); const auth = new CxWrapper(cxScanConfig); const getScanAndResult = async (): Promise<{ scan: any, result: CxResult }> => { @@ -39,6 +153,19 @@ describe("Triage cases", () => { ); expect(cxUpdate.exitCode).toEqual(0); }; + + // Helper for SCA triage show + const handleTriageSCAShow = async (projectId: string, vulnerabilities: string, scanType: string) => { + const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); + expect(cxShow.exitCode).toEqual(0); + }; + + // Helper for SCA triage update + const handleTriageSCAUpdate = async (projectId: string, vulnerabilities: string, scanType: string, state: string, comment: string, stateId: number | null = null) => { + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment, stateId); + expect(cxUpdate.exitCode).toEqual(0); + }; + const handlegetStates = async () => { const cxCommandOutput: CxCommandOutput = await auth.triageGetStates(false); console.log("Json object from states successful case: " + JSON.stringify(cxCommandOutput)); @@ -47,12 +174,23 @@ describe("Triage cases", () => { return cxCommandOutput }; + it('SCA Triage Show and Update Successful case', async () => { + const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; + const vulnerabilities = "packagename=Maven-org.apache.tomcat.embed:tomcat-embed-core,packageversion=9.0.14,vulnerabilityId=CVE-2024-56337,packagemanager=maven"; + const scanType = "sca"; + const state = "To_verify"; + const comment = "comment1"; + await handleTriageSCAShow(projectId, vulnerabilities, scanType); + await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + }); + it('Triage Successful case', async () => { const { scan, result } = await getScanAndResult(); await handleTriageShow(scan, result); await handleTriageUpdate(scan, result, result.state, result.severity.toLowerCase() === "high" ? CxConstants.SEVERITY_MEDIUM : CxConstants.SEVERITY_HIGH); }); + it.skip('Triage with custom state Successful case', async () => { const { scan, result } = await getScanAndResult(); From 72e02ae4d15f5083a75f2cea6e14c2c2b3421d32 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 4 Dec 2025 12:02:11 +0530 Subject: [PATCH 2/6] removed comment --- src/tests/PredicateTest.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index 67046fbf..bb077701 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -80,14 +80,12 @@ describe("Triage cases", () => { let errorShow = false; let errorUpdate = false; try { - // @ts-ignore const cxShow: CxCommandOutput = await auth.triageSCAShow(undefined, undefined, undefined); expect(cxShow.exitCode).not.toEqual(0); } catch (e) { errorShow = true; } try { - // @ts-ignore const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(undefined, undefined, undefined, undefined, undefined); expect(cxUpdate.exitCode).not.toEqual(0); } catch (e) { From 59cdaf4a5eb9bd135eadd128f4905c201cae4d9a Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 4 Dec 2025 12:28:00 +0530 Subject: [PATCH 3/6] updated CLI binaries --- src/main/wrapper/resources/cx-linux | 4 ++-- src/main/wrapper/resources/cx-mac | 4 ++-- src/main/wrapper/resources/cx.exe | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/wrapper/resources/cx-linux b/src/main/wrapper/resources/cx-linux index ab37b459..a9b30237 100755 --- a/src/main/wrapper/resources/cx-linux +++ b/src/main/wrapper/resources/cx-linux @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:64460df9a00bcc48a599688c878ddabe20187127f5f7e0fb84cee08abc21120f -size 80982200 +oid sha256:976e2bc115e2172b632ace012dd609a9aec3c066558d6f9e0407b3be440ab804 +size 81002680 diff --git a/src/main/wrapper/resources/cx-mac b/src/main/wrapper/resources/cx-mac index b4b2df59..0c1005ac 100755 --- a/src/main/wrapper/resources/cx-mac +++ b/src/main/wrapper/resources/cx-mac @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ab046570766900b90ca6412175eb60096bbbc1b251142237f4f836f54afb56be -size 162864288 +oid sha256:aa582bd9dbcc6cc6326890f6a39bd7ec088cde1a8cc36da05b90a6ffe1c1c4ed +size 162885680 diff --git a/src/main/wrapper/resources/cx.exe b/src/main/wrapper/resources/cx.exe index a62fc095..bdce6c09 100644 --- a/src/main/wrapper/resources/cx.exe +++ b/src/main/wrapper/resources/cx.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:606e331a9a722cf2668e6f8e09966f0972e483c3a2a1135277172194604b8195 -size 82958272 +oid sha256:7f699fe2dd1d4bf27024f94bd0835b739ed96678271b6e6c00cb639a475b06a1 +size 82977216 From e652056fd2d14114b6e69b2a1781fcaf63749ef4 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 4 Dec 2025 20:18:23 +0530 Subject: [PATCH 4/6] updated test --- src/main/wrapper/CxWrapper.ts | 6 +- src/tests/PredicateTest.test.ts | 112 -------------------------------- 2 files changed, 1 insertion(+), 117 deletions(-) diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 1b5fe5d0..ff8eb56f 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -311,7 +311,7 @@ export class CxWrapper { return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.PREDICATE_TYPE); } - async triageSCAUpdate(projectId: string, vulnerabilities: string, scanType: string, state: string, comment: string,stateId: number | null = null): Promise { + async triageSCAUpdate(projectId: string, vulnerabilities: string, scanType: string, state: string, comment: string): Promise { const commands: string[] = [ CxConstants.CMD_TRIAGE, CxConstants.SUB_CMD_UPDATE, @@ -321,10 +321,6 @@ export class CxWrapper { CxConstants.COMMENT, comment, CxConstants.PROJECT_ID, projectId ]; - if (stateId) { - commands.push(CxConstants.STATE_ID); - commands.push(stateId.toString()); - } commands.push(...this.initializeCommands(false)); const exec = new ExecutionService(); return await exec.executeCommands(this.config.pathToExecutable, commands); diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index bb077701..d37db955 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -5,118 +5,6 @@ import CxResult from '../main/results/CxResult'; import {CxConstants} from '../main/wrapper/CxConstants'; describe("Triage cases", () => { - - it('SCA Triage Show and Update Successful case', async () => { - const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; - const vulnerabilities = "packagename=Maven-org.apache.tomcat.embed:tomcat-embed-core,packageversion=9.0.14,vulnerabilityId=CVE-2024-56337,packagemanager=maven"; - const scanType = "sca"; - const state = "To_verify"; - const comment = "comment1"; - await handleTriageSCAShow(projectId, vulnerabilities, scanType); - await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); - }); - - // SCA Triage Update with stateId - it('SCA Triage Update with stateId', async () => { - const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; - const vulnerabilities = "packagename=Maven-org.apache.tomcat.embed:tomcat-embed-core,packageversion=9.0.14,vulnerabilityId=CVE-2024-56337,packagemanager=maven"; - const scanType = "sca"; - const state = "To_verify"; - const comment = "comment1"; - const stateId = 123; - await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment, stateId); - }); - - // SCA Triage Show and Update - Failure - it('SCA Triage Show and Update Failure case', async () => { - const projectId = "invalid-project-id"; - const vulnerabilities = "invalid-vulnerability-string"; - const scanType = "invalid"; - const state = "invalid_state"; - const comment = "invalid_comment"; - let errorShow = false; - let errorUpdate = false; - try { - const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); - expect(cxShow.exitCode).not.toEqual(0); - } catch (e) { - errorShow = true; - } - try { - const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); - expect(cxUpdate.exitCode).not.toEqual(0); - } catch (e) { - errorUpdate = true; - } - expect(errorShow || errorUpdate).toBe(true); - }); - - // SCA Triage Show and Update - Edge case: empty vulnerabilities - it('SCA Triage Show and Update with empty vulnerabilities', async () => { - const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; - const vulnerabilities = ""; - const scanType = "sca"; - const state = "To_verify"; - const comment = "comment1"; - let errorShow = false; - let errorUpdate = false; - try { - const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); - expect(cxShow.exitCode).not.toEqual(0); - } catch (e) { - errorShow = true; - } - try { - const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); - expect(cxUpdate.exitCode).not.toEqual(0); - } catch (e) { - errorUpdate = true; - } - expect(errorShow || errorUpdate).toBe(true); - }); - - // SCA Triage Show and Update - Edge case: null/undefined arguments - it('SCA Triage Show and Update with null/undefined arguments', async () => { - let errorShow = false; - let errorUpdate = false; - try { - const cxShow: CxCommandOutput = await auth.triageSCAShow(undefined, undefined, undefined); - expect(cxShow.exitCode).not.toEqual(0); - } catch (e) { - errorShow = true; - } - try { - const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(undefined, undefined, undefined, undefined, undefined); - expect(cxUpdate.exitCode).not.toEqual(0); - } catch (e) { - errorUpdate = true; - } - expect(errorShow || errorUpdate).toBe(true); - }); - - it('SCA Triage Show and Update Failure case', async () => { - // Example values for SCA triage (simulate failure) - const projectId = "invalid-project-id"; - const vulnerabilities = "invalid-vulnerability-string"; - const scanType = "invalid"; - const state = "invalid_state"; - const comment = "invalid_comment"; - let errorShow = false; - let errorUpdate = false; - try { - const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); - expect(cxShow.exitCode).not.toEqual(0); - } catch (e) { - errorShow = true; - } - try { - const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); - expect(cxUpdate.exitCode).not.toEqual(0); - } catch (e) { - errorUpdate = true; - } - expect(errorShow || errorUpdate).toBe(true); - }); const cxScanConfig = new BaseTest(); const auth = new CxWrapper(cxScanConfig); const getScanAndResult = async (): Promise<{ scan: any, result: CxResult }> => { From 64580b925a776db08ae64535e831e70f1d9d49d5 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 4 Dec 2025 20:20:17 +0530 Subject: [PATCH 5/6] updated test --- src/tests/PredicateTest.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index d37db955..96d8a7e6 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -47,8 +47,8 @@ describe("Triage cases", () => { }; // Helper for SCA triage update - const handleTriageSCAUpdate = async (projectId: string, vulnerabilities: string, scanType: string, state: string, comment: string, stateId: number | null = null) => { - const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment, stateId); + const handleTriageSCAUpdate = async (projectId: string, vulnerabilities: string, scanType: string, state: string, comment: string) => { + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); expect(cxUpdate.exitCode).toEqual(0); }; From d4a85047cf2fdd1e01c1c9b3c6d0bb243c01578b Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 4 Dec 2025 20:35:47 +0530 Subject: [PATCH 6/6] updated test cases --- src/tests/PredicateTest.test.ts | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/tests/PredicateTest.test.ts b/src/tests/PredicateTest.test.ts index 96d8a7e6..a9e977d0 100644 --- a/src/tests/PredicateTest.test.ts +++ b/src/tests/PredicateTest.test.ts @@ -70,6 +70,40 @@ describe("Triage cases", () => { await handleTriageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); }); + it('SCA Triage Show and Update Failure case', async () => { + const projectId = "invalid-project-id"; + const vulnerabilities = "invalid-vulnerability-string"; + const scanType = "invalid"; + const state = "invalid_state"; + const comment = "invalid_comment"; + + const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); + expect(cxShow.exitCode).not.toEqual(0); + + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + expect(cxUpdate.exitCode).not.toEqual(0); + }); + + it('SCA Triage Show and Update with empty vulnerabilities', async () => { + const projectId = "d4d7f382-8dee-48c7-ac8f-67fab2c313a8"; + const vulnerabilities = ""; + const scanType = "sca"; + const state = "To_verify"; + const comment = "comment1"; + const cxShow: CxCommandOutput = await auth.triageSCAShow(projectId, vulnerabilities, scanType); + expect(cxShow.exitCode).not.toEqual(0); + + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(projectId, vulnerabilities, scanType, state, comment); + expect(cxUpdate.exitCode).not.toEqual(0); + }); + + it('SCA Triage Show and Update with null/undefined arguments', async () => { + const cxShow: CxCommandOutput = await auth.triageSCAShow(undefined, undefined, undefined); + expect(cxShow.exitCode).not.toEqual(0); + const cxUpdate: CxCommandOutput = await auth.triageSCAUpdate(undefined, undefined, undefined, undefined, undefined); + expect(cxUpdate.exitCode).not.toEqual(0); + }); + it('Triage Successful case', async () => { const { scan, result } = await getScanAndResult(); await handleTriageShow(scan, result);