From a4dfede52416c7d7ba1ee91a5f4c9fcaa6a87275 Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Thu, 18 Nov 2021 10:44:12 -0800 Subject: [PATCH] Readme updates for port setup (#18) --- README.md | 21 +++++++++++---------- docker-compose.local.yml | 4 +--- heartbeat | 1 - test/mllp/tests.sh | 5 +++-- 4 files changed, 15 insertions(+), 16 deletions(-) delete mode 100644 heartbeat diff --git a/README.md b/README.md index dc985c8..70a02ea 100644 --- a/README.md +++ b/README.md @@ -124,18 +124,19 @@ For each client, add Basic Auth authentication in the Authentication tab. The cl To enable testing, the following temporary client should also be created and given access to all of the listed roles: `postman/postman`. If a password other than this default is required, the corresponding settings need to be updated in each `.json` file in `.postman/collections` for the tests to run correctly. - - ### 4. Run Postman Tests +Verify that the `.postman/postman_env.moh.json` environment file has the correct urls for the setup to be tested. +Run the tests: +```sh +./.postman/run-tests-offline.sh +``` +### 5. Run MLLP Tests -### MLLP Testing -Dependencies: openhim-core, openhim-console, shr, fhir-converter - -1. Check that the - -1. ADT -2. ORU +For this test, the test will respond with success if it passes, and it will log a couple transactions in the OpenHIM console. -For this test, the test will respond with success if it passes, and it will log a couple transactions in the OpenHIM console. \ No newline at end of file +Run the tests: +```sh +sudo docker-compose -f docker-compose.local.yml up mllp_tests +``` \ No newline at end of file diff --git a/docker-compose.local.yml b/docker-compose.local.yml index 435c282..3895668 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -30,9 +30,7 @@ services: - 8090:8090 - 5000:5000 - 5001:5001 - # - 2019:2019 - - 10040:10040 - - 10060:10060 + - 2575:2575 volumes: - ./configs/nginx/nginx.local.conf:/etc/nginx/nginx.conf - nginx-data:/var/www diff --git a/heartbeat b/heartbeat deleted file mode 100644 index 979be02..0000000 --- a/heartbeat +++ /dev/null @@ -1 +0,0 @@ -{"master":1411.2413046,"mediators":{"urn:mediator:hl7v2tofhir_translator":1142.0250136},"now":1635456738668} \ No newline at end of file diff --git a/test/mllp/tests.sh b/test/mllp/tests.sh index cbf4cc3..dc25760 100755 --- a/test/mllp/tests.sh +++ b/test/mllp/tests.sh @@ -1,5 +1,6 @@ #!/bin/bash -hostname="mllp-adt" +hostname="localhost" +port=2575 for hl7File in messages/* do @@ -16,5 +17,5 @@ do echo $hostname - echo -ne $msg | socat - TCP:$hostname:2575 + echo -ne $msg | socat - TCP:$hostname:$port done \ No newline at end of file