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

Validate tag files allowed #14

Merged
merged 6 commits into from Dec 5, 2018

Conversation

Projects
None yet
2 participants
@kba
Contributor

kba commented Nov 19, 2018

c.f. bagit-profiles/bagit-profiles#14

  • check whether Tag-Files-Required is a subset of Tag-Files-Allowed
  • check whether exisiting tag files are in Tag-Files-Allowed

In both cases wildcards (i.e. fnmatch patterns) are respected.

Also simplifies how validate() calls the individual validation methods and saves errors on a property report to inspect the errors detected in each call of validate().

@ruebot

This comment has been minimized.

Collaborator

ruebot commented Nov 20, 2018

Weird. CircleCI hasn't run.

Other than that, nice work!

@ruebot ruebot requested review from mjordan and ruebot Nov 20, 2018

@kba kba force-pushed the kba:validate-tag-files-allowed branch from 80392d0 to e9dc615 Nov 20, 2018

@kba

This comment has been minimized.

Contributor

kba commented Nov 20, 2018

Force-pushed to trigger CircleCI, tests pass now.

@ruebot

ruebot approved these changes Nov 20, 2018

@kba kba force-pushed the kba:validate-tag-files-allowed branch from a85b66f to 6ecf798 Nov 29, 2018

@ruebot

ruebot approved these changes Dec 5, 2018

@ruebot ruebot merged commit edfc0de into bagit-profiles:master Dec 5, 2018

5 checks passed

ci/circleci: build-python27 Your tests passed on CircleCI!
Details
ci/circleci: build-python34 Your tests passed on CircleCI!
Details
ci/circleci: build-python35 Your tests passed on CircleCI!
Details
ci/circleci: build-python36 Your tests passed on CircleCI!
Details
ci/circleci: build-python37 Your tests passed on CircleCI!
Details
@ruebot

This comment has been minimized.

Collaborator

ruebot commented Dec 6, 2018

Huh. This is now failing locally for me, and on CircleCI. Did I miss something?

@kba

This comment has been minimized.

Contributor

kba commented Dec 6, 2018

Fixed the error in #16

@kba kba deleted the kba:validate-tag-files-allowed branch Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment