Skip to content

Fix get_scan_report_status field names#210

Merged
cx-happy-yang merged 1 commit into
masterfrom
fix/get-scan-report-status-fields
Jul 9, 2026
Merged

Fix get_scan_report_status field names#210
cx-happy-yang merged 1 commit into
masterfrom
fix/get-scan-report-status-fields

Conversation

@cx-happy-yang

Copy link
Copy Markdown
Contributor

The CxPortal SOAP GetScanReportStatus response has no Status field — the returned dict's Status key was always None. The real fields are IsReady and IsFailed (both booleans). Return those instead.

Test upgrade: the existing assertion only checked IsSuccesfull, so it never caught the always-None Status. Assert that IsReady and IsFailed are both present and are bool — the previous code would fail this because it never populated those keys.

Verified against the live SAST server (test passes in ~2s).

The CxPortal SOAP GetScanReportStatus response has no `Status` field —
the returned dict's `Status` key was always None. The real fields are
`IsReady` and `IsFailed` (both booleans). Return those instead.

Test upgrade: the existing assertion only checked IsSuccesfull, so it
never caught the always-None `Status`. Assert that IsReady and IsFailed
are both present and are bool — the previous code would fail this
because it never populated those keys.

Verified against the live SAST server (test passes in ~2s).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cx-happy-yang cx-happy-yang self-assigned this Jul 8, 2026
@cx-happy-yang cx-happy-yang added the workflows-approved A PR needs the label workflows-approved to run any workflows. label Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Logo
Checkmarx One – Scan Summary & Details5c4a19c7-99a2-4bff-b13d-44c1576fc3c1

Great job! No new security vulnerabilities introduced in this pull request

@cx-james-bostock cx-james-bostock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cx-happy-yang,
Looks good to me.

@cx-happy-yang

Copy link
Copy Markdown
Contributor Author

Thank you @cx-james-bostock !

@cx-happy-yang
cx-happy-yang merged commit c107581 into master Jul 9, 2026
9 checks passed
@cx-happy-yang
cx-happy-yang deleted the fix/get-scan-report-status-fields branch July 9, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflows-approved A PR needs the label workflows-approved to run any workflows.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants