diff --git a/.github/workflows/run_newman.yml b/.github/workflows/run_newman.yml index a90e18ec6..eb618fd14 100644 --- a/.github/workflows/run_newman.yml +++ b/.github/workflows/run_newman.yml @@ -30,10 +30,10 @@ jobs: - name: Start Test Server And Execute Test Scripts run: | cd build - dotnet ./AasxServerBlazor.dll --aspnet --data-path ../test/rest_api/data & + dotnet ./AasxServerBlazor.dll --rest --no-security --data-path ../test/rest_api/data --host 0.0.0.0 & sleep 10 cd .. - newman run ./test/rest_api/postman/SubmodelElementTest.json.postman_collection -e ./test/rest_api/postman/GitHubActionEnvironment.json.postman_environment --reporters cli,htmlextra --reporter-htmlextra-export report.html --insecure + newman run ./test/rest_api/AASTests.json.postman_collection -e ./test/rest_api/postman/GitHubActionEnvironment.json.postman_environment --reporters cli,htmlextra --reporter-htmlextra-export report.html --insecure kill -9 `lsof -i:5001 -t` - name: Upload Report uses: actions/upload-artifact@v2 diff --git a/test/rest_api/postman/GitHubActionEnvironment.json.postman_environment b/test/rest_api/postman/GitHubActionEnvironment.json.postman_environment new file mode 100644 index 000000000..5356f3267 --- /dev/null +++ b/test/rest_api/postman/GitHubActionEnvironment.json.postman_environment @@ -0,0 +1,15 @@ +{ + "id": "4e4247e9-4f2d-445d-84ce-9f8dda21f66f", + "name": "GitHubActionEnvironment", + "values": [ + { + "key": "baseUrl", + "value": "http://localhost:5001", + "type": "default", + "enabled": true + } + ], + "_postman_variable_scope": "environment", + "_postman_exported_at": "2022-02-23T14:39:15.480Z", + "_postman_exported_using": "Postman/9.14.4" +} \ No newline at end of file