Skip to content
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

Data transformation #5

Merged
merged 19 commits into from
Aug 18, 2020
Merged

Data transformation #5

merged 19 commits into from
Aug 18, 2020

Conversation

nichtsfrei
Copy link
Member

@nichtsfrei nichtsfrei commented Aug 17, 2020

Checklist:

@nichtsfrei nichtsfrei requested a review from a team as a code owner August 17, 2020 13:02
Copy link
Member

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

All python files should get a licence header and i am not sure why the requirements.txt is necessary.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
pheme/parser/xml.py Outdated Show resolved Hide resolved
pheme/views.py Outdated Show resolved Hide resolved
def test_parsing(xml):
under_test = XMLParser()
result = under_test.parse(xml)
assert result == {'data': {'a': 'b'}}
Copy link
Member

Choose a reason for hiding this comment

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

would be good to get additional tests for the normalization behavior too.

Copy link
Member Author

Choose a reason for hiding this comment

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

The data normalization is done within gvmd.py; there is a different test for that:
tests/test_gvmd_scanreport_datatransformation.py
the xml parser just creates a dict representation of any xml so far

nichtsfrei and others added 8 commits August 17, 2020 18:06
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Copy link
Member

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

Added links to the pr to the changelog

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
nichtsfrei and others added 3 commits August 18, 2020 09:07
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
pheme/transformation/scanreport/gvmd.py Outdated Show resolved Hide resolved
pheme/transformation/scanreport/gvmd.py Outdated Show resolved Hide resolved
nichtsfrei and others added 2 commits August 18, 2020 10:38
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
@bjoernricks bjoernricks merged commit 0341033 into greenbone:master Aug 18, 2020
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.

None yet

3 participants