eclipse-basyx / basyx-python-sdk

MIT License
60 stars 28 forks source link

Server and integration tests #302

Open Frosty2500 opened 1 month ago

Frosty2500 commented 1 month ago

As a part of refactoring towards a monolithic repository https://github.com/eclipse-basyx/basyx-python-sdk/issues/277 we will need tests for the server, which do not exist at all yet and integration tests for both the server and the compliance-tool.

For the server both adapter.http.py will have to be tested and the Docker container with which it will be spun up. Tests for the compliance-tool already exist, they will have to be integradted into the ci pipeline.

zrgt commented 3 weeks ago

This week I took part in IDTA Plug-Fest. One workstream was about testing with aas-test-engines. I could install it and try it out.

So, as a temporarlily workaround we may use it to test our server. I have already created issues (#309 , #310) based on some testing findings. There are much more errors, which will be found during the test!

P.S. As we serve our server locally with http, you need to add --no-verify argument when checking the server:

# Check server
aas_test_engines check_server https://localhost https://admin-shell.io/aas/API/3/0/AssetAdministrationShellRepositoryServiceSpecification/SSP-002 --no-verify