Skip to content

Commit

Permalink
Run integration tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 14, 2024
1 parent 7d2f3db commit 1960f18
Show file tree
Hide file tree
Showing 77 changed files with 130 additions and 88 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: create
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
secure_ssl_only: false
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: create
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
content_type: invalid_content_type
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/additional_files_test/create.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: create
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
input_csv: create.csv
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/additional_files_test/rollback.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/check_test/add_media.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/check_test/create.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: create
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
secure_ssl_only: false
2 changes: 1 addition & 1 deletion tests/assets/check_test/delete.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: delete
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
input_csv: delete.csv
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/check_test/google_sheet.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/check_test/update.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: update
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
input_csv: update.csv
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/commented_csvs_test/excel.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/commented_csvs_test/google_sheets.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/commented_csvs_test/raw_csv.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/create_from_files_test/create.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/create_multi_parents/children.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/create_multi_parents/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/create_paged_content_test/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/create_test/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/create_with_field_templates_test/create.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/csv_row_filters_test/csv_row_filters_test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/delete_test/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/delete_test/delete.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/delimiter_test/create_tab.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/execute_bootstrap_script_test/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
task: create
host: https://islandora.traefik.me
host: https://islandora.dev
username: admin
password: password
media_type: document
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/geolocation_test/bad_geocoordinates.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/google_gid_test/gid_0.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/google_gid_test/gid_1867618389.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/google_gid_test/gid_390347846.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/google_gid_test/gid_953977578.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/header_column_mismatch_test/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/max_node_title_length_test/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/max_node_title_length_test/update.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/non_latin_text_test/create.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading

0 comments on commit 1960f18

Please sign in to comment.