336. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:43 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.

336.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\tests\integration-tests CDSIintegrationTest.sh Mon Aug 21 12:51:01 2017 UTC
2 rdk.zip\rdk\product\tests\integration-tests CDSIintegrationTest.sh Wed Oct 4 12:28:12 2017 UTC

336.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 94
Changed 1 2
Inserted 0 0
Removed 0 0

336.3 Comparison options

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

336.4 Active regular expressions

No regular expressions were active.

336.5 Comparison detail

  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   # The $jso nPayload f ile will g et generat ed using t he values  below. "us erId" and  "siteId" a re somewha t arbitrar y; the "pa tientId" f ield must  contain va lid values  (which ca n be obtai ned from t he "gradle  syncCache " output.
  22  
  23   cat << EOF  > $jsonPa yload
  24   {
  25         "con text": {
  26              "patientId " : "9E7A; 100599",
  27              "userId" :  "1",
  28              "siteId" :  "111"
  29           },
  30         "rea son":"prov iderIntera ctiveAdvic e"
  31   }
  32   EOF
  33  
  34           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`
  35           rm  -f $jsonP ayload
  36  
  37           if  [ $result  -eq 1 ]
  38           th en
  39                    stat us="PASSED "
  40           el se
  41                    stat us="FAILED "
  42           fi
  43  
  44           ec ho "The $n ode Integr ation Test  $status"
  45   else
  46           ec ho "ERROR:   Either t he $node n ode is unr eachable,  or an inva lid IP add ress has b een specif ied"
  47           ex it -2
  48   fi