International-Data-Spaces-Association / IDS-testbed

Apache License 2.0
24 stars 32 forks source link

Postman collection not running completely anymore #134

Closed emilienIMT closed 9 months ago

emilienIMT commented 9 months ago

Hello, I have several instances of the testbed deployed on different environments, and they all have the same issue : for several days, the Postman collection (TestbedPreconfiguration.postman_collection.json) is not running completely anymore.

It fails at the step :Start Negotiation: POST /api/ids/contract

I have the issue on our different environments :

Collection run fails

The export of the run : TestBed_Guide.postman_test_run.json

log error

The export of the testbed docker compose logs : logs.log

Do you have a clue regarding this bug ?

Best regards Emilien Maudet Institut Mines Telecom - Teralab

emilienIMT commented 9 months ago

The same issue occurs with the exact versions specified in the installation guide :

Can you tell me if someone is still receiving/dealing the issues of this repository please ?

jfernandezsqs commented 9 months ago

Hello @emilienIMT, I have deployed the IDS-testbed and encountered the same error at the negotiation step. I will move the issue and try to solve it ASAP. Thank you for reporting the issue.

egonity commented 9 months ago

Hello, @emilienIMT i have faced the same problem. The solution is quite simple, we have to update the contract time. Because in the contract template it is: { "title": "Contract", "description": "This is an example contract", "provider":"https://connectora:8080/", "start": "2021-10-22T07:48:37.068Z", "end": "2023-10-22T07:48:37.068Z" } The end date must be updated, and then I think it will work.

jfernandezsqs commented 9 months ago

Hello all, Yes, @egonity the error detailed in this issue is due to the contract generation of the postman collection, which is outdated. I share at this PR a Postman collection with the contract date fixed. TestBed_Guide.postman_collection.json I have tested it and with this change it works correctly.

The error will be fixed with the next merge performed to the IDS-testbed.

emilienIMT commented 9 months ago

Hello ! thank you both for your time ! And thank you for the tip @egonity ! This was the solution indeed. @jfernandezsqs Maybe the error message (when the contrat is expired) can be a little bit more specific ;)