Changeset View
Changeset View
Standalone View
Standalone View
docker/tests/test_01_loader_git.sh
#!/bin/bash | #!/bin/bash | ||||
shopt -s nullglob extglob | shopt -s nullglob extglob | ||||
TEST_GIT_REPO_NAME="swh-loader-core" | TEST_GIT_REPO_NAME="swh-loader-core" | ||||
TEST_GIT_REPO_URL="https://forge.softwareheritage.org/source/${TEST_GIT_REPO_NAME}.git" | TEST_GIT_REPO_URL="https://forge.softwareheritage.org/source/${TEST_GIT_REPO_NAME}.git" | ||||
status_message "Scheduling the loading of the git repository located at ${TEST_GIT_REPO_URL}" | status_message "Scheduling the loading of the git repository located at ${TEST_GIT_REPO_URL}" | ||||
docker-compose $DOCO_OPTIONS exec -T swh-scheduler swh scheduler task add load-git repo_url=$TEST_GIT_REPO_URL | docker-compose $DOCO_OPTIONS exec -T swh-scheduler swh scheduler task add load-git url=$TEST_GIT_REPO_URL | ||||
status_message "Waiting for the git loading task to complete" | status_message "Waiting for the git loading task to complete" | ||||
wait_for_service_output 300 swh-loader "swh.loader.git.tasks.UpdateGitRepository.*succeeded" | wait_for_service_output 300 swh-loader "swh.loader.git.tasks.UpdateGitRepository.*succeeded" | ||||
status_message "The loading task has been successfully executed" | status_message "The loading task has been successfully executed" | ||||
status_message "Getting all git objects contained in the repository" | status_message "Getting all git objects contained in the repository" | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |