mojaloop / ml-core-test-harness

Can be used to spin-up mojaloop and make test transfers (P2P, etc) using TTK. This repo can also be used for functional tests in the core services.
5 stars 9 forks source link

feat: integrating transaction-request-service with testing-tookit #77

Closed devarsh10 closed 1 month ago

devarsh10 commented 1 month ago

Hello Everyone,

Currently, I am working on integrating Transaction-Request-Service to TTK.

Expected: The transaction-request-service will serve on port 4003 as the ml-api-apdapter, quoting-service, and central-ledger like services are serving and will pass the test which is in the receivedState.json file.

What's Happening: i. I cannot get the 202[OK] response from the server, as follows, image

What have I done? i. I have added the service named transaction-request-service in the ml-core-test-harness/docker-compose.yml file. ii. I have added the receivedState.json file, which consists of the HTTP GET, POST, and PUT requests to Transaction-req-svc and hub.json in the environments variable for the receivedState.json reference. I took both these files from the testing-toolkit-test-cases repository. iii. Along with these changes, I have made the changes in the ttk-provisioning service in the docker-compose.yml file.

iv. The transaction-request-service from the docker-hub exposes port 4001 and the port mentioned in the default.json file in the Transaction-Request-Service GitHub repository is 4003. So, I have changed too followed by building the image locally and using it. Which is, as a result, serving on port 4003.

Thank You Devarsh