-
Notifications
You must be signed in to change notification settings - Fork 2
add test_purl_decode #816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test_purl_decode #816
Conversation
There was a problem hiding this 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 adds an integration test to verify that Package URLs (PURLs) with and without percent-encoded characters are correctly unescaped and decoded when creating service dependencies from an SBOM.
- Introduces
test_purl_escape_and_decode
with two PURL variants. - Asserts that the decoded package name appears in the created dependencies.
- Uses existing SBOM JSON generation helpers to drive the test.
Comments suppressed due to low confidence (1)
api/app/tests/integrations/test_pteams.py:1340
- [nitpick] The variable name
service1
is ambiguous here; consider renaming it tomatched_service
or simplyservice
to clarify its purpose.
service1 = next(filter(lambda x: x["service_name"] == service_name, services), None)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テストの方法について確認しました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テスト対象について確認お願いします
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APIテストについてコメントしました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR の目的
経緯・意図・意思決定