-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix specs #17
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The spec is still broken but I'm putting it down for now and commiting my findings.
This is no longer relevant. This should be handled by jobs in iiif_print.
Previously, we could call work.read_groups= and it will set the read group, but now we need to alter the access control list and save it. Also, updated the WorkAuthorization to be valkyrie compatible.
The WorkAuthorization spec is still not passing but we at least made a little bit of progress.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ran specs locally and these are the failures:
bundle exec rspec ./spec/indexers/cdl_resource_indexer_spec.rb:12
# CdlResourceIndexer behaves like a Hyrax::Resource indexer #to_solr indexes base resource fieldsbundle exec rspec ./spec/models/concerns/account_settings_spec.rb:39
# AccountSettings#public_settings when is_superadmin is false returns all settings except private, disabled, and superadmin settingsbundle exec rspec ./spec/jobs/create_group_and_add_members_job_spec.rb:64
# CreateGroupAndAddMembersJob#perform when does not have all its child works retries the jobbundle exec rspec ./spec/jobs/create_group_and_add_members_job_spec.rb:70
# CreateGroupAndAddMembersJob#perform when does not have all its child works does not retry the job more than 5 timesbundle exec rspec ./spec/jobs/create_group_and_add_members_job_spec.rb:43
# CreateGroupAndAddMembersJob#perform when has all its child works assigns the group to the read_groups of each work's memberbundle exec rspec ./spec/jobs/create_group_and_add_members_job_spec.rb:50
# CreateGroupAndAddMembersJob#perform when has all its child works assigns the group to the read_groups of each work's member's memberbundle exec rspec ./spec/jobs/create_group_and_add_members_job_spec.rb:37
# CreateGroupAndAddMembersJob#perform when has all its child works assigns the group to the work read_groupsbundle exec rspec ./spec/jobs/create_group_and_add_members_job_spec.rb:33
# CreateGroupAndAddMembersJob#perform when has all its child works creates a groupbundle exec rspec ./spec/features/create_etd_spec.rb:37
# Create a Etd a logged in user with the :work_depositor role can create an Etdbundle exec rspec ./spec/features/roles_spec.rb:20
# Site Roles as an administrator updates user rolesbundle exec rspec ./spec/features/roles_spec.rb:13
# Site Roles as an administrator lists user rolesbundle exec rspec ./spec/views/themes/institutional_repository/_user_util_links.html.erb_spec.rb:35
# /themes/institutional_repository/_user_util_links.html.erb when feature flipper is on logged in admin user shows the linksbundle exec rspec ./spec/views/themes/institutional_repository/_user_util_links.html.erb_spec.rb:20
# /themes/institutional_repository/_user_util_links.html.erb when feature flipper is on logged in user shows the linksbundle exec rspec ./spec/views/themes/institutional_repository/_user_util_links.html.erb_spec.rb:50
# /themes/institutional_repository/_user_util_links.html.erb when feature flipper is on logged out user links to login pathbundle exec rspec ./spec/views/themes/institutional_repository/_user_util_links.html.erb_spec.rb:82
# /themes/institutional_repository/_user_util_links.html.erb When feature flipper is off logged in admin user shows the linksbundle exec rspec ./spec/views/themes/institutional_repository/_user_util_links.html.erb_spec.rb:97
# /themes/institutional_repository/_user_util_links.html.erb When feature flipper is off logged out user hides the login pathbundle exec rspec ./spec/views/themes/institutional_repository/_user_util_links.html.erb_spec.rb:67
# /themes/institutional_repository/_user_util_links.html.erb When feature flipper is off logged in user hides the linksbundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:32
# Hyrax::Actors::OerActor#create adds a related versionbundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:54
# Hyrax::Actors::OerActor#update updates the related itembundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:49
# Hyrax::Actors::OerActor#update updates the alternate versionbundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:39
# Hyrax::Actors::OerActor#update updates the previous version itemsbundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:44
# Hyrax::Actors::OerActor#update updates the newer version itemsbundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:80
# Hyrax::Actors::OerActor#update adds and removes relationships on same submitbundle exec rspec ./spec/actors/hyrax/actors/oer_actor_spec.rb:61
# Hyrax::Actors::OerActor#update removes the related version itemsspec/features/advanced_search_spec.rb
Pals vs Knapsack:
bundle exec rspec ./spec/features/advanced_search_spec.rb:17
# Advanced Search with unauthenticated user can perform advanced searchbundle exec rspec ./spec/features/advanced_search_spec.rb:9
# Advanced Search with unauthenticated user can perform searchbundle exec rspec ./spec/jobs/destroy_split_pages_job_spec.rb:15
# DestroySplitPagesJob#perform destroys the child works when the work is destroyedcsv_parser_decorator_spec
this logic needs to be updated. valid_import? returns false instead of true
bundle exec rspec ./spec/parsers/bulkrax/csv_parser_decorator_spec.rb:214
# Bulkrax::CsvParserDecorator#valid_import? when the csv header is the parser_mappings value still returns truebundle exec rspec ./spec/parsers/bulkrax/csv_parser_decorator_spec.rb:203
# Bulkrax::CsvParserDecorator#valid_import? when the csv headers do not have underscores still returns truebundle exec rspec ./spec/omni_auth/strategies/open_id_connect_decorator_spec.rb:84
# OmniAuth::Strategies::OpenIDConnect#options method source_location is expected to contain exactly "/app/samvera/hyrax-webapp/lib/omni_auth/strategies/open_id_connect_decorator.rb" and Integerbundle exec rspec ./spec/features/create_oer_spec.rb:41
# Create a Oer a logged in user with the :work_depositor roleaccessibility_features_service_spec.rb
We need to pull over schema_org.yml to the knapsack config, and make sure to reset the constant FILENAME. I'm having issues overriding the constant - it still wants to use the schema_org.yml defined in hyrax, which does not have the key we're looking for - so it defaults to CreativeWorks and fails the spec.
bundle exec rspec ./spec/services/hyrax/accessibility_hazards_service_spec.rb:25
# Hyrax::AccessibilityHazardsService.microdata_type when id is in the i18n gives schema.org typebundle exec rspec ./spec/views/themes/cultural_repository/_user_util_links.html.erb_spec.rb:53
# /themes/cultural_repository/_user_util_links.html.erb when feature flipper is on logged out user links to login pathbundle exec rspec ./spec/views/themes/cultural_repository/_user_util_links.html.erb_spec.rb:38
# /themes/cultural_repository/_user_util_links.html.erb when feature flipper is on logged in admin user shows the linksbundle exec rspec ./spec/views/themes/cultural_repository/_user_util_links.html.erb_spec.rb:23
# /themes/cultural_repository/_user_util_links.html.erb when feature flipper is on logged in user shows the linksbundle exec rspec ./spec/views/themes/cultural_repository/_user_util_links.html.erb_spec.rb:73
# /themes/cultural_repository/_user_util_links.html.erb When feature flipper is off logged in user hides the linksbundle exec rspec ./spec/views/themes/cultural_repository/_user_util_links.html.erb_spec.rb:88
# /themes/cultural_repository/_user_util_links.html.erb When feature flipper is off logged in admin user shows the linksbundle exec rspec ./spec/views/themes/cultural_repository/_user_util_links.html.erb_spec.rb:103
# /themes/cultural_repository/_user_util_links.html.erb When feature flipper is off logged out user hides the login pathbundle exec rspec ./spec/indexers/oer_resource_indexer_spec.rb:12
# OerResourceIndexer behaves like a Hyrax::Resource indexer #to_solr indexes base resource fieldswork_authoritzation_spec
bundle exec rspec ./spec/models/work_authorization_spec.rb:86
# WorkAuthorization.handle_signin_for! when not given a work_pid will de-authorize all authorizations that have expired but not those that have not expiredbundle exec rspec ./spec/models/work_authorization_spec.rb:73
# WorkAuthorization.handle_signin_for! when given a work_pid will re-authorize the given work and expire non-specified worksbundle exec rspec ./spec/models/work_authorization_spec.rb:61
# WorkAuthorization.handle_signin_for! when given a work_pid and a scope will authorize the given work_pid and scope’s workbundle exec rspec ./spec/models/work_authorization_spec.rb:102
# WorkAuthorization.authorize! gives the borrowing user the ability to "read" the workbundle exec rspec ./spec/models/work_authorization_spec.rb:120
# WorkAuthorization.revoke! gracefully handles revoking that which was never authorizedbundle exec rspec ./spec/models/work_authorization_spec.rb:112
# WorkAuthorization.revoke! revokes an authorized user from being able to "read" the workbundle exec rspec ./spec/indexers/etd_resource_indexer_spec.rb:12
# EtdResourceIndexer behaves like a Hyrax::Resource indexer #to_solr indexes base resource fieldsbundle exec rspec ./spec/helpers/blacklight/advanced_search_helper_spec.rb:13
# Blacklight::AdvancedSearchHelper#primary_search_fields returns the client specified advanced search fields