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

test behavior after a published Fixity check failure on Valkyrie #6259

Merged
merged 2 commits into from Aug 30, 2023

Conversation

no-reply
Copy link
Member

if a Valkyrie Fixity service (to be invented) fails, it should be able to
publish an event to be picked up by FileSetLifecycleNotificationListener and a
notification can be published.

this updates the tests for the fixity failure notification path to avoid testing
AF behavior when Wings is disabled, and to add support for Valkyrie to the code
path.

Changes proposed in this pull request:

  • fixes a bug in the Fixity failure notifications that always reported the original_file failed, even when another file's fixity was checked
  • adds support for Valkyrie to fixity failure notification code paths

@samvera/hyrax-code-reviewers

@no-reply no-reply added notes-valkyrie Release Notes: Valkyrie specific notes-bugfix Release Notes: Fixed a bug labels Aug 30, 2023
tamsin johnson added 2 commits August 29, 2023 21:12
the FixityCheckFailureService was, for some reason, reporting the FileSet's
`original_file` URI as the failed fixity check regardless of which file in the
FileSet was actually checked.

the audit log data has the actual information, it's just the notifications that
were wrong.
if a Valkyrie Fixity service (to be invented) fails, it should be able to
publish an event to be picked up by `FileSetLifecycleNotificationListener` and a
notification can be published.

this updates the tests for the fixity failure notification path to avoid testing
AF behavior when Wings is disabled, and to add support for Valkyrie to the code
path.
Copy link
Contributor

@dlpierce dlpierce left a comment

Choose a reason for hiding this comment

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

Glad to see :with_file for the FileMetadata factory!

@dlpierce dlpierce merged commit b10f1c3 into main Aug 30, 2023
3 checks passed
@dlpierce dlpierce deleted the fixity-failure branch August 30, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants