Commit 691422a0 authored by Siebers, Michael's avatar Siebers, Michael
Browse files

run system tests completely

parent 67fa897c
......@@ -356,7 +356,7 @@ system_test:prepare_container:
- swipl --version
script:
- swipl daemon.pl --user nobody
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json --reporters junit --reporter-junit-export="api-report.xml" --bail
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json --reporters junit --reporter-junit-export="api-report.xml"
- swipl daemon.pl --shutdown
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
......@@ -379,7 +379,7 @@ system_test:prepare_container:
extends: .system_test:run
script:
- swipl daemon.pl --user nobody
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json -d tests/api/${TEST_NAME}-data.json --reporters junit --reporter-junit-export="api-report.xml" --bail
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json -d tests/api/${TEST_NAME}-data.json --reporters junit --reporter-junit-export="api-report.xml"
- swipl daemon.pl --shutdown
.system_test:run_with_data_and_db:
......@@ -388,7 +388,7 @@ system_test:prepare_container:
- cp -f tests/api/${TEST_NAME}-theory_bg.db theory_bg.db
- chown webapi theory_bg.db
- swipl daemon.pl --user webapi
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json -d tests/api/${TEST_NAME}-data.json --reporters junit --reporter-junit-export="api-report.xml" --bail
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json -d tests/api/${TEST_NAME}-data.json --reporters junit --reporter-junit-export="api-report.xml"
- swipl daemon.pl --shutdown
.system_test:run_with_db:
......@@ -397,7 +397,7 @@ system_test:prepare_container:
- cp -f tests/api/${TEST_NAME}-theory_bg.db theory_bg.db
- chown webapi theory_bg.db
- swipl daemon.pl --user webapi
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json --reporters junit --reporter-junit-export="api-report.xml" --bail
- newman run tests/api/${TEST_NAME}-tests.json -e tests/api/env.json --reporters junit --reporter-junit-export="api-report.xml"
- swipl daemon.pl --shutdown
......
......@@ -128,7 +128,7 @@
{"request_body": "[{\"type\":\"file\",\"abs_path\":\"testfile.ext\",\"file_size\":1024,\"creation_time\":1604235569,\"modification_time\":1604235569,\"access_time\":1604235569,\"change_time\":1604235569,\"media_type\":\"other\",\"filename_extension\":12.387}]"},
{"request_body": "[{\"type\":\"file\",\"abs_path\":\"testfile.ext\",\"file_size\":1024,\"creation_time\":1604235569,\"modification_time\":1604235569,\"access_time\":1604235569,\"change_time\":1604235569,\"media_type\":\"other\",\"filename_extension\":[\"e\",\"x\",\"t\"]}]"},
{"request_body": "[{\"type\":\"file\",\"abs_path\":\"testfile.ext\",\"file_size\":1024,\"creation_time\":1604235569,\"modification_time\":1604235569,\"access_time\":1604235569,\"change_time\":1604235569,\"media_type\":\"other\",\"filename_extension\":{\"ext\":\"yes\"}}]"},
{"request_body": "[{\"type\":\"file\",\"abs_path\":\"testfile.ext\",\"file_size\":1024,\"creation_time\":1604235569,\"modification_time\":1604235569,\"access_time\":1604235569,\"change_time\":1604235569,\"media_type\":\"other\"}]"}
{"request_body": "[{\"type\":\"file\",\"abs_path\":\"testfile.ext\",\"file_size\":1024,\"creation_time\":1604235569,\"modification_time\":1604235569,\"access_time\":1604235569,\"change_time\":1604235569,\"media_type\":\"other\"}]"},
{"request_body":"[{\"type\":\"directory\",\"abs_path\":\"top\",\"creation_time\":1604235209},\"a string\"]"},
{"request_body":"[{\"type\":\"directory\",\"abs_path\":\"top\",\"creation_time\":1604235209},23789]"},
{"request_body":"[{\"type\":\"directory\",\"abs_path\":\"top\",\"creation_time\":1604235209},5.612]"},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment