Skip to content

Add HTTP coverage for evidence link/unlink routes#3

Open
Mehrn0ush wants to merge 2 commits into
CycloneDX:mainfrom
Mehrn0ush:test/evidence-link-unlink-http
Open

Add HTTP coverage for evidence link/unlink routes#3
Mehrn0ush wants to merge 2 commits into
CycloneDX:mainfrom
Mehrn0ush:test/evidence-link-unlink-http

Conversation

@Mehrn0ush
Copy link
Copy Markdown

Summary

This change adds HTTP test coverage for the evidence link and unlink
routes.

It restores coverage for the link route and for the unlink route's
authentication, permission, and missing-resource cases, using the current route
behavior already implemented in the backend.

What changed

  • added local fixture setup for started assessment requirements
  • restored HTTP coverage for evidence link behavior
  • restored HTTP coverage for unlink error/auth/permission cases

Notes

The unlink happy-path test is intentionally left skipped for now.

While expanding this coverage, the unlink success path appeared to return 404
even after a successful link, which looks like a separate follow-up item. This
PR keeps the scope narrow and focuses on the cases that already behave
consistently.

Related

Addresses #2

Restore skipped HTTP coverage for evidence link and unlink
routes and add fixture setup for started assessment
requirements.

Signed-off-by: Mehrn0ush <mehrnoush.vaseghi@gmail.com>
Keep passing link and unlink coverage enabled and leave the
unlink happy-path test skipped pending follow-up on current
route behavior.

Signed-off-by: Mehrn0ush <mehrnoush.vaseghi@gmail.com>
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

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.

1 participant