Produced by Araxis Merge on 10/2/2017 7:00:08 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\integration-tests | CDSIintegrationTest.sh | Wed Dec 16 14:11:22 2015 UTC |
| 2 | cds.zip\cds\product\integration-tests | CDSIintegrationTest.sh | Thu Sep 28 16:08:43 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 88 |
| Changed | 2 | 4 |
| 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 | #!/usr/bin /env sh | |
| 2 | ||
| 3 | node=cdsin vocation | |
| 4 | ||
| 5 | # The firs t thing we need to d o is deter mine wheth er we are testing LO CALly or t esting in AWS. | |
| 6 | ||
| 7 | local_aws= `knife sea rch node " name:$node * NOT name :*build*" -c ~/Proje cts/vistac ore/.chef/ knife.rb | grep '^Ro les:' | he ad -1 | aw k '{print $2}' | awk -F, '{pri nt $1}'` | |
| 8 | ||
| 9 | case $loca l_aws in | |
| 10 | lo cal) IPadd r=`knife s earch node "name:$no de* AND ro le:*local* NOT name: *build*" - c ~/Projec ts/vistaco re/.chef/k nife.rb | grep '^IP: ' | head - 1 | awk '{ print $2}' ` ;; | |
| 11 | aw s) IPaddr= `knife sea rch node " name:$node * AND role :*aws* NOT name:*bui ld*" -c ~/ Projects/v istacore/. chef/knife .rb | grep '^IP:' | head -1 | awk '{prin t $2}'` ;; | |
| 12 | esac | |
| 13 | ||
| 14 | ping -c 3 $IPaddr > /dev/null | |
| 15 | if [ $? -e q 0 ] | |
| 16 | then | |
| 17 | TC Pport= PORT | |
| 18 | ta rgetURL=ht tp://$IPad dr:$TCPpor t/cds-resu lts-servic e/rest/inv okeRulesFo rPatient | |
| 19 | js onPayload= /tmp/jason Payload.$$ | |
| 20 | ||
| 21 | cat << EOF > $jsonPa yload | |
| 22 | { | |
| 23 | "con text": { | |
| 24 | "patientId " : "9E7A; 100599", | |
| 25 | "userId" : " REDACTED ", | |
| 26 | "siteId" : "111" | |
| 27 | }, | |
| 28 | "rea son":"prov iderIntera ctiveAdvic e" | |
| 29 | } | |
| 30 | EOF | |
| 31 | ||
| 32 | re sult=`curl -X POST - H "Accept: Applicati on/json" - H "Content -Type: app lication/j son" -d @$ jsonPayloa d $targetU RL 2> /dev /null | gr ep -c Succ ess` | |
| 33 | rm -f $jsonP ayload | |
| 34 | ||
| 35 | if [ $result -eq 1 ] | |
| 36 | th en | |
| 37 | stat us="PASSED " | |
| 38 | el se | |
| 39 | stat us="FAILED " | |
| 40 | fi | |
| 41 | ||
| 42 | ec ho "The $n ode Integr ation Test $status" | |
| 43 | else | |
| 44 | ec ho "ERROR: Either t he $node n ode is unr eachable, or an inva lid IP add ress has b een specif ied" | |
| 45 | ex it -2 | |
| 46 | fi |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.