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

Remove reports folder #41

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/verifier/core/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
z.extractall(path=tempdirname)
manifest = None
for root, dirs, _ in os.walk(tempdirname):
if "META-INF" not in dirs or 'reports' not in dirs:
if "META-INF" not in dirs:

Check warning on line 121 in src/verifier/core/reporting.py

View check run for this annotation

Codecov / codecov/patch

src/verifier/core/reporting.py#L121

Added line #L121 was not covered by tests
continue
metaDir = os.path.join(root, 'META-INF')
name = os.path.join(root, 'META-INF', 'reports.json')
Expand Down Expand Up @@ -391,7 +391,7 @@
files = []
manifest = None
for root, dirs, _ in os.walk(tempdirname):
if "META-INF" not in dirs or 'reports' not in dirs:
if "META-INF" not in dirs:

Check warning on line 394 in src/verifier/core/reporting.py

View check run for this annotation

Codecov / codecov/patch

src/verifier/core/reporting.py#L394

Added line #L394 was not covered by tests
continue

metaDir = os.path.join(root, 'META-INF')
Expand All @@ -404,8 +404,7 @@
if "documentInfo" not in manifest:
raise kering.ValidationError("Invalid manifest file in report package, missing "
"'documentInfo")
reportsDir = os.path.join(root, 'reports')
files = os.listdir(reportsDir)
files = os.listdir(root)

Check warning on line 407 in src/verifier/core/reporting.py

View check run for this annotation

Codecov / codecov/patch

src/verifier/core/reporting.py#L407

Added line #L407 was not covered by tests

if manifest is None:
raise kering.ValidationError("No manifest in file, invalid signed report package")
Expand Down
Loading