Produced by Araxis Merge on 10/2/2017 7:00:31 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | cds.zip\cds\product\tests\acceptance-tests | CDSIacceptanceTest.sh | Wed Dec 16 14:11:22 2015 UTC |
| 2 | cds.zip\cds\product\tests\acceptance-tests | CDSIacceptanceTest.sh | Thu Sep 28 17:31:11 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 82 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | if [ $# -e q 1 ] | |
| 4 | then | |
| 5 | IP addr=$1 | |
| 6 | pi ng -c 3 $1 > /dev/nu ll | |
| 7 | if [ $? -eq 0 ] | |
| 8 | th en | |
| 9 | TCPport= PORT | |
| 10 | targ etURL=http ://$IPaddr :$TCPport/ cds-result s-service/ rest/invok eRulesForP atient | |
| 11 | json Payload=/t mp/jasonPa yload.$$ | |
| 12 | ||
| 13 | ca t << EOF > $jsonPayl oad | |
| 14 | { | |
| 15 | "con text": { | |
| 16 | "patientId " : "9E7A; 100599", | |
| 17 | "userId" : "24", | |
| 18 | "siteId" : "111" | |
| 19 | }, | |
| 20 | "rea son":"prov iderIntera ctiveAdvic e" | |
| 21 | } | |
| 22 | EOF | |
| 23 | ||
| 24 | resu lt=`curl - X POST -H "Accept: A pplication /json" -H "Content-T ype: appli cation/jso n" -d @$js onPayload $targetURL 2> /dev/n ull | grep -c Succes s` | |
| 25 | rm - f $jsonPay load | |
| 26 | ||
| 27 | if [ $result - eq 1 ] | |
| 28 | then | |
| 29 | status ="PASSED" | |
| 30 | else | |
| 31 | status ="FAILED" | |
| 32 | fi | |
| 33 | ||
| 34 | echo "The CDSi nvocation Acceptance Test $sta tus" | |
| 35 | el se | |
| 36 | echo "ERROR: Either the CDSinvoca tion host is unreach able, or a n invalid IP address has been specified" | |
| 37 | exit -2 | |
| 38 | fi | |
| 39 | else | |
| 40 | ec ho "Usage: $0 IPadd ress (of t he CDSinvo cation nod e)" | |
| 41 | ex it -1 | |
| 42 | fi |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.