Skip to content

Port e2e tests from hyades repository#1884

Merged
nscuro merged 1 commit intomainfrom
e2e
Mar 15, 2026
Merged

Port e2e tests from hyades repository#1884
nscuro merged 1 commit intomainfrom
e2e

Conversation

@nscuro
Copy link
Copy Markdown
Member

@nscuro nscuro commented Mar 15, 2026

Description

Ports e2e tests from hyades repository.

Addressed Issue

N/A

Additional Details

N/A

Checklist

  • 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
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • 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 nscuro added this to the 5.7.0 milestone Mar 15, 2026
Copilot AI review requested due to automatic review settings March 15, 2026 22:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR ports end-to-end tests from the hyades repository into the main project. It introduces a new e2e Maven module that uses Testcontainers to spin up PostgreSQL and the API server, with Feign for API interaction, WireMock for webhook verification, and GreenMail for email testing.

Changes:

  • Adds a new e2e Maven module with an abstract base test class, Feign-based API client, model records, and five e2e test classes covering BOM upload processing, vulnerability analysis (internal, Snyk, OSS Index), notification workflows, and vulnerability policies.
  • Adds OpenFeign BOM to the parent pom.xml dependency management.
  • Adds Makefile target and documentation for running e2e tests.

Reviewed changes

Copilot reviewed 33 out of 34 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pom.xml Adds e2e module and OpenFeign BOM to dependency management
e2e/pom.xml New module POM with test dependencies and failsafe plugin config
e2e/src/main/java/.../api/ApiClient.java Feign API client interface for DT API
e2e/src/main/java/.../api/ApiAuthInterceptor.java Auth interceptor supporting bearer token and API key
e2e/src/main/java/.../api/CompositeDecoder.java Response decoder with JSON and text support
e2e/src/main/java/.../api/CompositeEncoder.java Request encoder with JSON and form-urlencoded support
e2e/src/main/java/.../api/model/*.java Record classes for API request/response models
e2e/src/test/java/.../AbstractE2ET.java Base test class managing containers and API client setup
e2e/src/test/java/.../BomUploadProcessingE2ET.java E2E test for BOM upload with webhook and email notifications
e2e/src/test/java/.../BomUploadSnykAnalysisE2ET.java E2E test for Snyk vulnerability analysis
e2e/src/test/java/.../BomUploadOssIndexAnalysisE2ET.java E2E test for OSS Index vulnerability analysis
e2e/src/test/java/.../BomProcessedNotificationDelayedE2ET.java E2E test for delayed BOM_PROCESSED notifications
e2e/src/test/java/.../VulnerabilityPolicyE2ET.java E2E test for vulnerability policy lifecycle
e2e/src/test/resources/* Test resources (BOM file, logger config)
Makefile Adds test-e2e target
DEVELOPING.md, AGENTS.md Documents e2e test execution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread e2e/src/main/java/org/dependencytrack/e2e/api/CompositeDecoder.java Outdated
Comment thread e2e/src/test/java/org/dependencytrack/e2e/VulnerabilityPolicyE2ET.java Outdated
nscuro added a commit to DependencyTrack/hyades that referenced this pull request Mar 15, 2026
It has been migrated to the API server repository via DependencyTrack/hyades-apiserver#1884.

Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
nscuro added a commit to DependencyTrack/hyades that referenced this pull request Mar 15, 2026
It has been migrated to the API server repository via DependencyTrack/hyades-apiserver#1884.

Signed-off-by: nscuro <nscuro@protonmail.com>
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+1.39% (target: -1.00%) (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (1e497bd) 32770 27399 83.61%
Head commit (bb489f5) 26446 (-6324) 22478 (-4921) 85.00% (+1.39%)

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 (#1884) 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

@nscuro nscuro merged commit 45510a4 into main Mar 15, 2026
12 checks passed
@nscuro nscuro deleted the e2e branch March 15, 2026 22:40
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants