Skip to content

Commit

Permalink
Readme updates for port setup (#18)
Browse files Browse the repository at this point in the history
pmanko authored Nov 18, 2021
1 parent 13f99aa commit a4dfede
Showing 4 changed files with 15 additions and 16 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Run the tests:
```sh
sudo docker-compose -f docker-compose.local.yml up mllp_tests
```
4 changes: 1 addition & 3 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion heartbeat

This file was deleted.

5 changes: 3 additions & 2 deletions test/mllp/tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4dfede

Please sign in to comment.