Skip to content

Conversation

@GraemeF
Copy link
Contributor

@GraemeF GraemeF commented Jan 7, 2026

Ticket: PAE-797

Summary

  • Add INITIATED to CDP_UPLOAD_STATUS enum (for initial upload state before files are received)
  • Add PENDING to CDP_FILE_STATUS enum (for files still being scanned)

These intermediate states can be returned when polling the CDP Uploader /status/{uploadId} endpoint before scanning completes. Without these values, our adapter couldn't represent all possible states.

Also removed pointless tests.

Add INITIATED to CDP_UPLOAD_STATUS and PENDING to CDP_FILE_STATUS
to handle intermediate states when polling the status endpoint before
scanning completes.

These values are returned by CDP Uploader but were missing from our
adapter's status enums.
Constants are covered by being imported and used in other tests.
Testing that a constant equals itself adds no value.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

@GraemeF GraemeF marked this pull request as ready for review January 7, 2026 17:27
@GraemeF GraemeF enabled auto-merge (squash) January 7, 2026 17:27
@GraemeF GraemeF merged commit 8527a62 into main Jan 8, 2026
6 checks passed
@GraemeF GraemeF deleted the PAE-797-cdp-uploader-status-values branch January 8, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants