-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: add CPE to component #138
Conversation
Thank you for the PullRequest, @jblu42. Can you open an Issue Ticket to describe the feature/fix etc. that you are contributing please? It will help us (and the community) understand and track the change. Could you fix the following functional points?:
Aside from the PR comments, there are a couple of other hygiene points to look at:
Thanks again and don't hesitate to ask any questions. do you have any additional remarks, @madpah ? |
Sorry forgot some fixes in the last commit, now added. I think for JSON output there are no changes required as it uses the JSON schema as reference and the CPE is included in there. At least in my tests the JSON output is working. Are the tests required? There are no tests for the other optional attributes, but if you like I can add some, just need to look how the tests are defined. |
If you can, please add a test for the JSON and for the XML output, that includes a non- |
@jblu42 ,
|
Strange, I did run it through poetry tests before committing, will have a look at it again. The problem with the sign off is my first commit, who was not signed off, do you know how to correct that, I am not using git so often? |
Hello @jblu42 , |
Setting CPE was missing for component, now it is possible to set CPE and output CPE for a component. Signed-off-by: Jens Lucius <[email protected]>
- Fixed styling errors - Added reference to CPE Spec - Adding CPE parameter as last parameter to not break arguments Signed-off-by: Jens Lucius <[email protected]>
Missing in the last commit Signed-off-by: Jens Lucius <[email protected]>
Signed-off-by: Jens Lucius <[email protected]>
- Added output tests for CPE in XML and JSON - Fixes style error in components - Fixes order for CPE output in XML (CPE has to come before PURL) Signed-off-by: Jens Lucius <[email protected]>
CPE was still in the wrong position in one of the tests - fixed Signed-off-by: Jens Lucius <[email protected]>
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.
This is looking great. Couple of very minor things in tests.
FYI @jkowalleck
- cpe was still in wrong position in 1.2 JSON - Indentation fixed in 1.4 JSON Signed-off-by: Jens Lucius <[email protected]>
Thanks again @jblu42 - we'll just wait for @jkowalleck to come back regarding positioning of the new |
Signed-off-by: Jens Lucius <[email protected]>
PR looks solid. approval from my side. |
Setting CPE was missing for component, now it is possible to set CPE and output CPE for a component.
fixes #139