diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 0000000..4504859 --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,42 @@ +name: Run unittests + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + steps: + - name: Checkout isle-site-template + uses: actions/checkout@v4 + with: + repository: Islandora-Devops/isle-site-template + + - name: Install mkcert + run: |- + curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" + chmod +x mkcert-v*-linux-amd64 + sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert + + - name: Start islandora-starter-site + run: ./tests/init-template-starter.sh + env: + ISLANDORA_TAG: main + ISLANDORA_STARTER_REF: "heads/main" + ISLANDORA_STARTER_OWNER: "Islandora-Devops" + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python setup.py install + + - name: Run unittests + run: | + python tests/islandora_tests.py diff --git a/tests/assets/WorkbenchConfig_test/config_01_create_short_valid.yml b/tests/assets/WorkbenchConfig_test/config_01_create_short_valid.yml index 9f67012..96e7305 100644 --- a/tests/assets/WorkbenchConfig_test/config_01_create_short_valid.yml +++ b/tests/assets/WorkbenchConfig_test/config_01_create_short_valid.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password secure_ssl_only: false diff --git a/tests/assets/WorkbenchConfig_test/config_02_01_create_short_invalid.yml b/tests/assets/WorkbenchConfig_test/config_02_01_create_short_invalid.yml index ddf3491..037e3af 100644 --- a/tests/assets/WorkbenchConfig_test/config_02_01_create_short_invalid.yml +++ b/tests/assets/WorkbenchConfig_test/config_02_01_create_short_invalid.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password content_type: invalid_content_type diff --git a/tests/assets/WorkbenchConfig_test/config_02_02_create_short_invalid.yml b/tests/assets/WorkbenchConfig_test/config_02_02_create_short_invalid.yml index bc231db..8da25df 100644 --- a/tests/assets/WorkbenchConfig_test/config_02_02_create_short_invalid.yml +++ b/tests/assets/WorkbenchConfig_test/config_02_02_create_short_invalid.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password use_node_title_for_media: true diff --git a/tests/assets/WorkbenchConfig_test/config_02_03_create_short_invalid.yml b/tests/assets/WorkbenchConfig_test/config_02_03_create_short_invalid.yml index 6a167ac..9ce033e 100644 --- a/tests/assets/WorkbenchConfig_test/config_02_03_create_short_invalid.yml +++ b/tests/assets/WorkbenchConfig_test/config_02_03_create_short_invalid.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password use_node_title_for_media: true diff --git a/tests/assets/additional_files_test/create.yml b/tests/assets/additional_files_test/create.yml index 44d892f..fe0be90 100644 --- a/tests/assets/additional_files_test/create.yml +++ b/tests/assets/additional_files_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: create.csv diff --git a/tests/assets/additional_files_test/rollback.yml b/tests/assets/additional_files_test/rollback.yml index 2a3c030..48e0f67 100644 --- a/tests/assets/additional_files_test/rollback.yml +++ b/tests/assets/additional_files_test/rollback.yml @@ -1,5 +1,5 @@ task: delete -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/additional_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false.yml b/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false.yml index efe4d42..c353c97 100644 --- a/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false.yml +++ b/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false_with_soft_checks.yml b/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false_with_soft_checks.yml index ac8a85b..105c868 100644 --- a/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false_with_soft_checks.yml +++ b/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_false_with_soft_checks.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_true.yml b/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_true.yml index b24170b..3543fa4 100644 --- a/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_true.yml +++ b/tests/assets/allow_missing_files_test/add_media_additional_files_allow_missing_files_true.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false.yml b/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false.yml index fecbe0d..358673b 100644 --- a/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false.yml +++ b/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false_with_soft_checks.yml b/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false_with_soft_checks.yml index 126ea99..5632b57 100644 --- a/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false_with_soft_checks.yml +++ b/tests/assets/allow_missing_files_test/add_media_allow_missing_files_false_with_soft_checks.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_allow_missing_files_true.yml b/tests/assets/allow_missing_files_test/add_media_allow_missing_files_true.yml index 7ae7532..b7967f6 100644 --- a/tests/assets/allow_missing_files_test/add_media_allow_missing_files_true.yml +++ b/tests/assets/allow_missing_files_test/add_media_allow_missing_files_true.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/add_media_create_nodes.yml b/tests/assets/allow_missing_files_test/add_media_create_nodes.yml index c748393..e53df80 100644 --- a/tests/assets/allow_missing_files_test/add_media_create_nodes.yml +++ b/tests/assets/allow_missing_files_test/add_media_create_nodes.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false.yml b/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false.yml index a7e589a..9710db3 100644 --- a/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false.yml +++ b/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false_with_soft_checks.yml b/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false_with_soft_checks.yml index 36c7330..0969eea 100644 --- a/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false_with_soft_checks.yml +++ b/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_false_with_soft_checks.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_true.yml b/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_true.yml index ecb26f0..7904b31 100644 --- a/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_true.yml +++ b/tests/assets/allow_missing_files_test/create_additional_files_allow_missing_files_true.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/create_allow_missing_files_false.yml b/tests/assets/allow_missing_files_test/create_allow_missing_files_false.yml index ee69185..8b4ca02 100644 --- a/tests/assets/allow_missing_files_test/create_allow_missing_files_false.yml +++ b/tests/assets/allow_missing_files_test/create_allow_missing_files_false.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/create_allow_missing_files_false_with_soft_checks.yml b/tests/assets/allow_missing_files_test/create_allow_missing_files_false_with_soft_checks.yml index 6acea06..6072b20 100644 --- a/tests/assets/allow_missing_files_test/create_allow_missing_files_false_with_soft_checks.yml +++ b/tests/assets/allow_missing_files_test/create_allow_missing_files_false_with_soft_checks.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/allow_missing_files_test/create_allow_missing_files_true.yml b/tests/assets/allow_missing_files_test/create_allow_missing_files_true.yml index 34da3bd..4a08aba 100644 --- a/tests/assets/allow_missing_files_test/create_allow_missing_files_true.yml +++ b/tests/assets/allow_missing_files_test/create_allow_missing_files_true.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/allow_missing_files_test diff --git a/tests/assets/check_test/add_media.yml b/tests/assets/check_test/add_media.yml index 012b659..ee64f76 100644 --- a/tests/assets/check_test/add_media.yml +++ b/tests/assets/check_test/add_media.yml @@ -1,5 +1,5 @@ task: add_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: add_media.csv diff --git a/tests/assets/check_test/create.yml b/tests/assets/check_test/create.yml index 9f67012..96e7305 100644 --- a/tests/assets/check_test/create.yml +++ b/tests/assets/check_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password secure_ssl_only: false diff --git a/tests/assets/check_test/delete.yml b/tests/assets/check_test/delete.yml index c3c5ba5..ad8d122 100644 --- a/tests/assets/check_test/delete.yml +++ b/tests/assets/check_test/delete.yml @@ -1,5 +1,5 @@ task: delete -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: delete.csv diff --git a/tests/assets/check_test/google_sheet.yml b/tests/assets/check_test/google_sheet.yml index 1eb48c3..dbd5fdf 100644 --- a/tests/assets/check_test/google_sheet.yml +++ b/tests/assets/check_test/google_sheet.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: 'https://docs.google.com/spreadsheets/d/13Mw7gtBy1A3ZhYEAlBzmkswIdaZvX18xoRBxfbgxqWc/edit#gid=0' diff --git a/tests/assets/check_test/update.yml b/tests/assets/check_test/update.yml index 87a3ea4..64be439 100644 --- a/tests/assets/check_test/update.yml +++ b/tests/assets/check_test/update.yml @@ -1,5 +1,5 @@ task: update -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: update.csv diff --git a/tests/assets/commented_csvs_test/excel.yml b/tests/assets/commented_csvs_test/excel.yml index 8617d0b..7e2a4c9 100644 --- a/tests/assets/commented_csvs_test/excel.yml +++ b/tests/assets/commented_csvs_test/excel.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/commented_csvs_test" diff --git a/tests/assets/commented_csvs_test/google_sheets.yml b/tests/assets/commented_csvs_test/google_sheets.yml index 4687ee3..d803790 100644 --- a/tests/assets/commented_csvs_test/google_sheets.yml +++ b/tests/assets/commented_csvs_test/google_sheets.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/commented_csvs_test diff --git a/tests/assets/commented_csvs_test/raw_csv.yml b/tests/assets/commented_csvs_test/raw_csv.yml index 28b66db..5025f72 100644 --- a/tests/assets/commented_csvs_test/raw_csv.yml +++ b/tests/assets/commented_csvs_test/raw_csv.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/commented_csvs_test" diff --git a/tests/assets/create_from_files_test/create.yml b/tests/assets/create_from_files_test/create.yml index dbdabda..cb7955a 100644 --- a/tests/assets/create_from_files_test/create.yml +++ b/tests/assets/create_from_files_test/create.yml @@ -1,5 +1,5 @@ task: create_from_files -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/create_from_files_test/files diff --git a/tests/assets/create_multi_parents/children.yml b/tests/assets/create_multi_parents/children.yml index da113e0..401e3ca 100644 --- a/tests/assets/create_multi_parents/children.yml +++ b/tests/assets/create_multi_parents/children.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/create_multi_parents" diff --git a/tests/assets/create_multi_parents/create.yml b/tests/assets/create_multi_parents/create.yml index 32da1db..7918963 100644 --- a/tests/assets/create_multi_parents/create.yml +++ b/tests/assets/create_multi_parents/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/create_multi_parents" diff --git a/tests/assets/create_paged_content_from_directories_test/books.yml b/tests/assets/create_paged_content_from_directories_test/books.yml index bf91e4a..482d4a9 100644 --- a/tests/assets/create_paged_content_from_directories_test/books.yml +++ b/tests/assets/create_paged_content_from_directories_test/books.yml @@ -1,7 +1,7 @@ paged_content_from_directories: true paged_content_page_model_tid: http://id.loc.gov/ontologies/bibframe/part task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/create_paged_content_from_directories_test/samplebooks diff --git a/tests/assets/create_paged_content_from_directories_test/books_page_files_source_dir_field.yml b/tests/assets/create_paged_content_from_directories_test/books_page_files_source_dir_field.yml index f2a8cd1..285b55d 100644 --- a/tests/assets/create_paged_content_from_directories_test/books_page_files_source_dir_field.yml +++ b/tests/assets/create_paged_content_from_directories_test/books_page_files_source_dir_field.yml @@ -1,7 +1,7 @@ paged_content_from_directories: true paged_content_page_model_tid: http://id.loc.gov/ontologies/bibframe/part task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/create_paged_content_from_directories_test/samplebooks diff --git a/tests/assets/create_paged_content_test/create.yml b/tests/assets/create_paged_content_test/create.yml index 2470767..224e33f 100644 --- a/tests/assets/create_paged_content_test/create.yml +++ b/tests/assets/create_paged_content_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/create_paged_content_test" diff --git a/tests/assets/create_test/create.yml b/tests/assets/create_test/create.yml index 0648735..7313a0a 100644 --- a/tests/assets/create_test/create.yml +++ b/tests/assets/create_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/create_test" diff --git a/tests/assets/create_with_field_templates_test/create.yml b/tests/assets/create_with_field_templates_test/create.yml index 9fbff81..32569a5 100644 --- a/tests/assets/create_with_field_templates_test/create.yml +++ b/tests/assets/create_with_field_templates_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/create_with_field_templates_test diff --git a/tests/assets/csv_row_filters_test/csv_row_filters_test.yml b/tests/assets/csv_row_filters_test/csv_row_filters_test.yml index a8d5d00..2a653a5 100644 --- a/tests/assets/csv_row_filters_test/csv_row_filters_test.yml +++ b/tests/assets/csv_row_filters_test/csv_row_filters_test.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: csv_row_filters_test.csv diff --git a/tests/assets/delete_test/create.yml b/tests/assets/delete_test/create.yml index 1046e44..fa229ad 100644 --- a/tests/assets/delete_test/create.yml +++ b/tests/assets/delete_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/delete_test" diff --git a/tests/assets/delete_test/delete.yml b/tests/assets/delete_test/delete.yml index 0ef55dd..24f5c68 100644 --- a/tests/assets/delete_test/delete.yml +++ b/tests/assets/delete_test/delete.yml @@ -1,5 +1,5 @@ task: delete -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/delete_test" diff --git a/tests/assets/delimiter_test/create_tab.yml b/tests/assets/delimiter_test/create_tab.yml index 85cc393..76fee5d 100644 --- a/tests/assets/delimiter_test/create_tab.yml +++ b/tests/assets/delimiter_test/create_tab.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/delimiter_test" diff --git a/tests/assets/execute_bootstrap_script_test/config.yml b/tests/assets/execute_bootstrap_script_test/config.yml index bfad787..31f8e19 100644 --- a/tests/assets/execute_bootstrap_script_test/config.yml +++ b/tests/assets/execute_bootstrap_script_test/config.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password media_type: document diff --git a/tests/assets/execute_post_action_entity_script_test/create.yml b/tests/assets/execute_post_action_entity_script_test/create.yml index 72aa620..bdd6c44 100644 --- a/tests/assets/execute_post_action_entity_script_test/create.yml +++ b/tests/assets/execute_post_action_entity_script_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/execute_post_action_entity_script_test diff --git a/tests/assets/geolocation_test/bad_geocoordinates.yml b/tests/assets/geolocation_test/bad_geocoordinates.yml index c61dc65..0bd3dd0 100644 --- a/tests/assets/geolocation_test/bad_geocoordinates.yml +++ b/tests/assets/geolocation_test/bad_geocoordinates.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/geolocation_test/input_data diff --git a/tests/assets/google_gid_test/gid_0.yml b/tests/assets/google_gid_test/gid_0.yml index 1eb48c3..dbd5fdf 100644 --- a/tests/assets/google_gid_test/gid_0.yml +++ b/tests/assets/google_gid_test/gid_0.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: 'https://docs.google.com/spreadsheets/d/13Mw7gtBy1A3ZhYEAlBzmkswIdaZvX18xoRBxfbgxqWc/edit#gid=0' diff --git a/tests/assets/google_gid_test/gid_1867618389.yml b/tests/assets/google_gid_test/gid_1867618389.yml index 6bd9232..72f28f6 100644 --- a/tests/assets/google_gid_test/gid_1867618389.yml +++ b/tests/assets/google_gid_test/gid_1867618389.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: 'https://docs.google.com/spreadsheets/d/13Mw7gtBy1A3ZhYEAlBzmkswIdaZvX18xoRBxfbgxqWc/edit#gid=0' diff --git a/tests/assets/google_gid_test/gid_390347846.yml b/tests/assets/google_gid_test/gid_390347846.yml index c73fcd0..9162282 100644 --- a/tests/assets/google_gid_test/gid_390347846.yml +++ b/tests/assets/google_gid_test/gid_390347846.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: 'https://docs.google.com/spreadsheets/d/13Mw7gtBy1A3ZhYEAlBzmkswIdaZvX18xoRBxfbgxqWc/edit#gid=0' diff --git a/tests/assets/google_gid_test/gid_953977578.yml b/tests/assets/google_gid_test/gid_953977578.yml index 62e0c60..9031ec2 100644 --- a/tests/assets/google_gid_test/gid_953977578.yml +++ b/tests/assets/google_gid_test/gid_953977578.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_csv: 'https://docs.google.com/spreadsheets/d/13Mw7gtBy1A3ZhYEAlBzmkswIdaZvX18xoRBxfbgxqWc/edit#gid=0' diff --git a/tests/assets/header_column_mismatch_test/create.yml b/tests/assets/header_column_mismatch_test/create.yml index d4fbf2d..0f8f4b7 100644 --- a/tests/assets/header_column_mismatch_test/create.yml +++ b/tests/assets/header_column_mismatch_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/header_column_mismatch_test" diff --git a/tests/assets/max_node_title_length_test/create.yml b/tests/assets/max_node_title_length_test/create.yml index 9c8ad1a..07ca1f0 100644 --- a/tests/assets/max_node_title_length_test/create.yml +++ b/tests/assets/max_node_title_length_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/max_node_title_length_test" diff --git a/tests/assets/max_node_title_length_test/update.yml b/tests/assets/max_node_title_length_test/update.yml index 3cda706..dcf2559 100644 --- a/tests/assets/max_node_title_length_test/update.yml +++ b/tests/assets/max_node_title_length_test/update.yml @@ -1,5 +1,5 @@ task: update -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/max_node_title_length_test" diff --git a/tests/assets/non_latin_text_test/create.yml b/tests/assets/non_latin_text_test/create.yml index 3f728a5..73640a8 100644 --- a/tests/assets/non_latin_text_test/create.yml +++ b/tests/assets/non_latin_text_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/non_latin_text_test" diff --git a/tests/assets/non_latin_text_test/delete.yml b/tests/assets/non_latin_text_test/delete.yml index de8622a..de7ef41 100644 --- a/tests/assets/non_latin_text_test/delete.yml +++ b/tests/assets/non_latin_text_test/delete.yml @@ -1,5 +1,5 @@ task: delete -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/non_latin_text_test" diff --git a/tests/assets/parents_precede_children_test/bad.yml b/tests/assets/parents_precede_children_test/bad.yml index 0443576..d4ee9a8 100644 --- a/tests/assets/parents_precede_children_test/bad.yml +++ b/tests/assets/parents_precede_children_test/bad.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/parents_precede_children_test diff --git a/tests/assets/parents_precede_children_test/good.yml b/tests/assets/parents_precede_children_test/good.yml index e986d8f..a725c6a 100644 --- a/tests/assets/parents_precede_children_test/good.yml +++ b/tests/assets/parents_precede_children_test/good.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/parents_precede_children_test diff --git a/tests/assets/secondary_task_test/create.yml b/tests/assets/secondary_task_test/create.yml index 906c79e..5581b57 100644 --- a/tests/assets/secondary_task_test/create.yml +++ b/tests/assets/secondary_task_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/secondary_task_test" diff --git a/tests/assets/secondary_task_test/secondary_create.yml b/tests/assets/secondary_task_test/secondary_create.yml index 0bf04bc..1b6e219 100644 --- a/tests/assets/secondary_task_test/secondary_create.yml +++ b/tests/assets/secondary_task_test/secondary_create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/secondary_task_test" diff --git a/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_primary.yml b/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_primary.yml index ba6096c..f8c4907 100644 --- a/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_primary.yml +++ b/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_primary.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password nodes_only: true diff --git a/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_secondary.yml b/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_secondary.yml index 8facb59..a06e127 100644 --- a/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_secondary.yml +++ b/tests/assets/secondary_task_with_google_sheets_and_excel_test/excel_secondary.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password nodes_only: true diff --git a/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_primary.yml b/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_primary.yml index 795a39b..5e36663 100644 --- a/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_primary.yml +++ b/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_primary.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password nodes_only: true diff --git a/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_secondary.yml b/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_secondary.yml index 63b4aae..df80402 100644 --- a/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_secondary.yml +++ b/tests/assets/secondary_task_with_google_sheets_and_excel_test/google_sheets_secondary.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password nodes_only: true diff --git a/tests/assets/taxonomies_test/create.yml b/tests/assets/taxonomies_test/create.yml index 08ab103..49cfe63 100644 --- a/tests/assets/taxonomies_test/create.yml +++ b/tests/assets/taxonomies_test/create.yml @@ -1,7 +1,7 @@ task: create allow_adding_terms: true allow_missing_files: true -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/taxonomies_test diff --git a/tests/assets/taxonomies_test/term_id_not_in_taxonomy.yml b/tests/assets/taxonomies_test/term_id_not_in_taxonomy.yml index 42cd6d2..ee73c78 100644 --- a/tests/assets/taxonomies_test/term_id_not_in_taxonomy.yml +++ b/tests/assets/taxonomies_test/term_id_not_in_taxonomy.yml @@ -1,7 +1,7 @@ task: create allow_adding_terms: false allow_missing_files: true -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/taxonomies_test diff --git a/tests/assets/taxonomies_test/term_name_not_in_taxonomy.yml b/tests/assets/taxonomies_test/term_name_not_in_taxonomy.yml index 297145f..281bb32 100644 --- a/tests/assets/taxonomies_test/term_name_not_in_taxonomy.yml +++ b/tests/assets/taxonomies_test/term_name_not_in_taxonomy.yml @@ -1,7 +1,7 @@ task: create allow_adding_terms: false allow_missing_files: true -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/taxonomies_test diff --git a/tests/assets/typed_relation_test/add_new_typed_relation.yml b/tests/assets/typed_relation_test/add_new_typed_relation.yml index 61a820f..91cb2fc 100644 --- a/tests/assets/typed_relation_test/add_new_typed_relation.yml +++ b/tests/assets/typed_relation_test/add_new_typed_relation.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/typed_relation_test/input_data diff --git a/tests/assets/typed_relation_test/bad_relator.yml b/tests/assets/typed_relation_test/bad_relator.yml index ed8d50c..c76bbca 100644 --- a/tests/assets/typed_relation_test/bad_relator.yml +++ b/tests/assets/typed_relation_test/bad_relator.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/typed_relation_test/input_data diff --git a/tests/assets/typed_relation_test/bad_uri.yml b/tests/assets/typed_relation_test/bad_uri.yml index 33adb30..f67906b 100644 --- a/tests/assets/typed_relation_test/bad_uri.yml +++ b/tests/assets/typed_relation_test/bad_uri.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/typed_relation_test/input_data diff --git a/tests/assets/typed_relation_test/create_with_new_typed_relation.yml b/tests/assets/typed_relation_test/create_with_new_typed_relation.yml index 2ef6ffd..9b37c95 100644 --- a/tests/assets/typed_relation_test/create_with_new_typed_relation.yml +++ b/tests/assets/typed_relation_test/create_with_new_typed_relation.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/typed_relation_test/input_data diff --git a/tests/assets/typed_relation_test/no_namespace.yml b/tests/assets/typed_relation_test/no_namespace.yml index 24c6c02..a004146 100644 --- a/tests/assets/typed_relation_test/no_namespace.yml +++ b/tests/assets/typed_relation_test/no_namespace.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: tests/assets/typed_relation_test/input_data diff --git a/tests/assets/update_media_test/update_media.yml b/tests/assets/update_media_test/update_media.yml index b9ee59b..96b2f0b 100644 --- a/tests/assets/update_media_test/update_media.yml +++ b/tests/assets/update_media_test/update_media.yml @@ -1,5 +1,5 @@ task: update_media -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/update_media_test" diff --git a/tests/assets/update_test/create.yml b/tests/assets/update_test/create.yml index cab7a31..ff9c273 100644 --- a/tests/assets/update_test/create.yml +++ b/tests/assets/update_test/create.yml @@ -1,5 +1,5 @@ task: create -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/update_test" diff --git a/tests/assets/update_test/delete.yml b/tests/assets/update_test/delete.yml index e0d0f2f..1b486dd 100644 --- a/tests/assets/update_test/delete.yml +++ b/tests/assets/update_test/delete.yml @@ -1,5 +1,5 @@ task: delete -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/update_test" diff --git a/tests/assets/update_test/update.yml b/tests/assets/update_test/update.yml index 638b987..63316d9 100644 --- a/tests/assets/update_test/update.yml +++ b/tests/assets/update_test/update.yml @@ -1,5 +1,5 @@ task: update -host: https://islandora.traefik.me +host: https://islandora.dev username: admin password: password input_dir: "tests/assets/update_test" diff --git a/tests/islandora_tests.py b/tests/islandora_tests.py index dad4de6..ba1373f 100644 --- a/tests/islandora_tests.py +++ b/tests/islandora_tests.py @@ -1,4 +1,4 @@ -"""unittest tests that require a live Drupal at https://islandora.traefik.me. In most cases, the host URL, +"""unittest tests that require a live Drupal at https://islandora.dev. In most cases, the host URL, credentials, etc. are in a configuration file referenced in the test. Files islandora_tests_check.py, islandora_tests_paged_content.py, and islandora_tests_hooks.py also @@ -54,7 +54,7 @@ def tearDown(self): "--config", self.create_config_file_path, "--quick_delete_node", - "https://islandora.traefik.me/node/" + nid, + "https://islandora.dev/node/" + nid, ] quick_delete_output = subprocess.check_output(quick_delete_cmd) @@ -100,7 +100,7 @@ def tearDown(self): "--config", self.create_config_file_path, "--quick_delete_node", - "https://islandora.traefik.me/node/" + nid, + "https://islandora.dev/node/" + nid, ] quick_delete_output = subprocess.check_output(quick_delete_cmd) @@ -165,7 +165,7 @@ def tearDown(self): "--config", self.create_config_file_path, "--quick_delete_node", - "https://islandora.traefik.me/node/" + nid, + "https://islandora.dev/node/" + nid, ] quick_delete_output = subprocess.check_output(quick_delete_cmd) @@ -243,9 +243,7 @@ def test_create(self): # Fetch each node in self.nids and check to see if its title is <= 30 chars long. All should be. for nid_to_update in self.nids: node_url = ( - "https://islandora.traefik.me/node/" - + str(self.nids[0]) - + "?_format=json" + "https://islandora.dev/node/" + str(self.nids[0]) + "?_format=json" ) node_response = requests.get(node_url, verify=False) node = json.loads(node_response.text) @@ -259,7 +257,7 @@ def tearDown(self): "--config", self.create_config_file_path, "--quick_delete_node", - "https://islandora.traefik.me/node/" + nid, + "https://islandora.dev/node/" + nid, ] quick_delete_output = subprocess.check_output(quick_delete_cmd) @@ -1622,12 +1620,14 @@ def test_secondary_task(self): nid = nid.strip(".") self.child_nids.append(nid) + self.assertEqual(len(self.child_nids), 4) + for nid in self.child_nids: node_url = self.islandora_host + "/node/" + nid + "?_format=json" response = requests.get(node_url, verify=False) node_json = json.loads(response.text) if node_json["title"][0]["value"] == "Child 1, 2": - self.assertEqual(len(node_json["field_member_of"]), 2) + self.assertEqual(len(node_json["field_member_of"]), 10) elif node_json["title"][0]["value"] == "Child 1": self.assertEqual(len(node_json["field_member_of"]), 1) elif node_json["title"][0]["value"] == "Child 1, 2, 3": diff --git a/tests/islandora_tests_check.py b/tests/islandora_tests_check.py index 856fe40..8c57ee5 100644 --- a/tests/islandora_tests_check.py +++ b/tests/islandora_tests_check.py @@ -1,4 +1,4 @@ -"""unittest tests that require a live Drupal at https://islandora.traefik.me. In most cases, the host URL, +"""unittest tests that require a live Drupal at https://islandora.dev. In most cases, the host URL, credentials, etc. are in a configuration file referenced in the test. This test file contains tests for --check. Files islandora_tests.py, islandora_tests_paged_content.py, @@ -282,7 +282,7 @@ def tearDown(self): "--config", self.create_config_file_path, "--quick_delete_node", - "https://islandora.traefik.me/node/" + nid, + "https://islandora.dev/node/" + nid, ] quick_delete_output = subprocess.check_output(quick_delete_cmd) diff --git a/tests/islandora_tests_hooks.py b/tests/islandora_tests_hooks.py index 0398162..7e66465 100644 --- a/tests/islandora_tests_hooks.py +++ b/tests/islandora_tests_hooks.py @@ -1,4 +1,4 @@ -"""unittest tests that require a live Drupal at https://islandora.traefik.me. In most cases, the host URL, +"""unittest tests that require a live Drupal at https://islandora.dev. In most cases, the host URL, credentials, etc. are in a configuration file referenced in the test. This test file contains tests for Workbench's hooks. Files islandora_tests.py, islandora_tests_paged_content.py, @@ -104,7 +104,7 @@ def tearDown(self): "--config", self.config_file_path, "--quick_delete_node", - "https://islandora.traefik.me/node/" + nid, + "https://islandora.dev/node/" + nid, ] quick_delete_output = subprocess.check_output(quick_delete_cmd) diff --git a/tests/islandora_tests_paged_content.py b/tests/islandora_tests_paged_content.py index 9822492..e06cf47 100644 --- a/tests/islandora_tests_paged_content.py +++ b/tests/islandora_tests_paged_content.py @@ -1,4 +1,4 @@ -"""unittest tests that require a live Drupal at https://islandora.traefik.me. In most cases, the host URL, +"""unittest tests that require a live Drupal at https://islandora.dev. In most cases, the host URL, credentials, etc. are in a configuration file referenced in the test. This test file contains tests for paged content. Files islandora_tests.py, islandora_tests_paged_check.py, diff --git a/tests/unit_tests_workbench_config.py b/tests/unit_tests_workbench_config.py index 3ed3e94..05d6a0c 100644 --- a/tests/unit_tests_workbench_config.py +++ b/tests/unit_tests_workbench_config.py @@ -99,7 +99,7 @@ def test_get_config_valid_config_file_01(self): # checking for config variables set in # tests/assets/execute_bootstrap_script_test/config.yml self.assertEqual(test_config_dict["task"], "create") - self.assertEqual(test_config_dict["host"], "https://islandora.traefik.me") + self.assertEqual(test_config_dict["host"], "https://islandora.dev") self.assertEqual(test_config_dict["username"], "admin") self.assertEqual(test_config_dict["password"], "password") # self.assertEqual(test_config_dict['media_type'], 'document') @@ -126,7 +126,7 @@ def test_init_validate_valid(self): test_config_obj = WorkbenchConfig(args) content_type = "islandora_object" - url = f"https://islandora.traefik.me/entity/entity_form_display/node.{content_type}.default?_format=json" + url = f"https://islandora.dev/entity/entity_form_display/node.{content_type}.default?_format=json" mocked_issue_request.assert_called_with( test_config_obj.get_config(), "GET", url ) @@ -151,7 +151,7 @@ def test_init_validate_invalid_content_type(self): test_config_obj = WorkbenchConfig(args) content_type = "invalid_content_type" - host = "https://islandora.traefik.me" + host = "https://islandora.dev" url = f"{host}/entity/entity_form_display/node.{content_type}.default?_format=json" mocked_issue_request.assert_called_with( test_config_obj.get_config(), "GET", url