hyades icon indicating copy to clipboard operation
hyades copied to clipboard

Add e2e test for BOM upload storage

Open nscuro opened this issue 1 year ago • 2 comments

Description

[!WARNING] Requires https://github.com/DependencyTrack/hyades-apiserver/pull/794.

Adds an e2e test to ensure that the S3 BOM upload storage works as expected.

Also updates:

  • The schema.sql file used in tests, so it includes the new BOM_UPLOAD table introduced in https://github.com/DependencyTrack/hyades-apiserver/pull/794.
  • The create-topics.sh script to include the new dtrack.event.bom-uploaded topic

Addressed Issue

Relates to #633.

Additional Details

N/A

Checklist

  • [x] I have read and understand the contributing guidelines
  • ~This PR fixes a defect, and I have provided tests to verify that the fix is effective~
  • [x] This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • [x] This PR introduces changes to the database model, and I have updated the migration changelog accordingly
  • ~This PR introduces new or alters existing behavior, and I have updated the documentation accordingly~

nscuro avatar Aug 05 '24 12:08 nscuro

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +18.14% (target: -1.00%) :white_check_mark: (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (008649af4c64a5fac494ed9515bd9921a3e5875d) 201 132 65.67%
Head commit (3d91334b8976fefdb47e3687343193e393570193) 6875 (+6674) 5762 (+5630) 83.81% (+18.14%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1432) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

codacy-production[bot] avatar Aug 05 '24 13:08 codacy-production[bot]

Blocked until https://github.com/DependencyTrack/hyades-apiserver/pull/794 is merged.

nscuro avatar Aug 09 '24 14:08 nscuro