Skip to content

Latest commit

 

History

History
 
 

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Test scripts

- 01-end-to-end.sh

This script ==can== be ran by itself to test the end-to-end workflow. It runs the following steps:

  1. Admin tests (end-to-end/tests/tests/admin/**/*.spec.js)
  2. Add UI test data (end-to-end//tests/tests/ui/data-migrations.js)
  3. UI tests (end-to-end//tests/tests/ui/*.spec.js)
Admin Tests
UI Tests
  • end-to-end/tests/ui/data-migrations.js
    • Adds test data to the UI.
    • Test several different scenarios (viewing pages, collection, media types, metadata exports, etc.)

- 02-static-config.sh

Verifies that bad configuration in config/sync will cause a startup failure for Docker

- 10-migration-backend-tests.sh

This script ==can== be ran by itself to test the end-to-end workflow. It runs the following steps:

"This script is the "controller" of the tests. It is responsible for executing the various test frameworks and controls the shell exit code. Each test framework executes in a Docker container, so there are no dependencies or configuration required to perform the tests, except for a working Docker." - tests/10-migration-backend-tests/README.md

- 11-file-deletion-tests.sh

make test test=11-file-deletion-tests.sh

- 12-media-tests.sh

This script migrates the media files and verifies that derivatives are created and file naming conventions are correct.

Some checks are at http://migration-assets/assets/image/formats/tiff.tif

- 13-migration-entity-resolution.sh

WARNING: This could become problematic if the fields change.

- 20-export-tests.sh

There are a few fields that might include more data in the quad when exported than was there during import. Export needs to be specific with a few fields, so the bundle data might be there, whereas it wasn't there on ingest. - tests/20-export-tests/README.md

- 21-large-file-derivatives-nightly.sh

  • Migrates in test data to trigger derivative creation
  • Verifies that derivatives are created
  • Additional test to make sure the JWT expiry is equal to or greater than 14400

- 21-role-permission-tests.sh

This adds the users and permissions for testing the role permissions. - tests/21-role-permission-tests/testcafe/role_permissions.spec.js - tests/21-role-permission-tests/testcafe/roles.js - tests/21-role-permission-tests/testcafe/util.js