1006. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/3/2017 11:16:07 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.

1006.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\tests\performance-tests build_performance_tests.sh Tue Dec 15 14:05:18 2015 UTC
2 ehmp.zip\ehmp\ehmp\product\tests\performance-tests build_performance_tests.sh Mon Oct 2 20:10:35 2017 UTC

1006.2 Comparison summary

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

1006.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

1006.4 Active regular expressions

No regular expressions were active.

1006.5 Comparison detail

  1   # Build th e performa nce test c lient node s, and/or  run the pe rformance  tests.
  2   # Optional  argument  specifies  the name o f the envi ronment. T he choices  are shown
  3   # below in  the if st atement.
  4  
  5  
  6  
  7   # Select t he environ ment. The  default is  the unman aged aws e nvironment .
  8   if [ -z $1  ]; then   # set defa uls
  9       #expor t ENVIRONM ENT="aws-m anaged-per f"   # man aged confi guration.
  10       export  ENVIRONME NT="aws-pe rf"            # non- managed co nfiguratio n.
  11   else
  12       export  ENVIRONME NT=$1
  13   fi
  14  
  15  
  16  
  17   export VAG RANT_LOG=d ebug
  18  
  19  
  20  
  21   # Set all  environmen t variable s that are  required.
  22   init_env()  {
  23       export  PATH=/opt /chef/embe dded/bin:$ PATH
  24       export  VISTACORE _HOME=/var /lib/jenki ns/Project s/vistacor e
  25       export  BERKSHELF _PATH=$VIS TACORE_HOM E/.berkshe lf
  26       export  VAGRANT_H OME=$VISTA CORE_HOME/ .vagrant.d
  27       export  GEM_HOME= $VISTACORE _HOME/.gem s
  28       export  GEM_PATH= $GEM_HOME: $GEM_PATH
  29       export  PATH=$GEM _HOME/bin: $PATH
  30       export  FQDN=ehmp -performan ce-test.vi stacore.us
  31       export  CHEF_LOG= debug
  32       
  33       case $ ENVIRONMEN T in
  34           "a ws-perf")
  35                export P ROJECT_ROO T=$WORKSPA CE
  36                ;;
  37           "a ws-managed -perf")
  38                export P ROJECT_ROO T=$WORKSPA CE
  39                ;;
  40           "l ocal")
  41                export P ROJECT_ROO T=$WORKSPA CE/ehmp
  42                ;;
  43           "l ocal-manag ed")
  44                export P ROJECT_ROO T=$WORKSPA CE/ehmp
  45                echo "WO RKSPACE=$W ORKSPACE"
  46                echo "MA VEN_OPTS=$ MAVEN_OPTS "
  47                echo "Se t PROJECT_ ROOT to $P ROJECT_ROO T"
  48                ;;
  49           "e de-managed -perf")
  50                echo "ED E not impl emented ye t"
  51                ;;
  52           *)
  53                echo "Un expected e nvironment : $ENVIRON MENT"
  54                ;;
  55       esac
  56   }
  57  
  58  
  59  
  60   # Create t he test cl ient nodes  that will  be used b y the perf ormance te sts in a
  61   # managed  configurat ion in aws .
  62   build_mana ged_test_c lients() {
  63       if [ $ ENVIRONMEN T == "aws- managed-pe rf" ]; the n  # only  applicable  to manage d config.
  64           ec ho "Buildi ng test cl ients for  managed co nfiguratio n"
  65           /u sr/bin/vag rant up -- provider a ws --provi sion
  66       fi
  67   }
  68  
  69  
  70  
  71   # Destroy  the nodes  that were  created vi a build_ma naged_test _clients.  This shoul d
  72   # be calle d before c alling bui ld_managed _test_clie nts in the  nodes exi st, so tha t
  73   # the old  nodes are  destroyed  before new  ones are  created.
  74   destroy_ma naged_test _clients()  {
  75       if [ $ ENVIRONMEN T == "aws- managed-pe rf" ]; the n  # only  applicable  to manage d config.
  76           ec ho "Destro ying manag ed client  nodes, if  they exist "
  77           cd  $PROJECT_ ROOT/infra structure/ vagrant/ma naged/crea te_perf_te st_clients
  78           /u sr/bin/vag rant destr oy -f
  79       fi
  80   }
  81  
  82  
  83  
  84   # Print th e IP addre sses of no des that w ere create d via buil d_managed_ test_clien ts.
  85   get_manage d_node_ips () {
  86       if [ $ ENVIRONMEN T == "aws- managed-pe rf" ]; the n  # only  applicable  to manage d config.
  87           ec ho "Gettin g IP addre sses of th e test cli ent nodes"
  88           cd  $PROJECT_ ROOT/produ ct/tests/p erformance -tests/man aged_test_ case
  89           ra ke get_man aged_node_ ips
  90       fi
  91   }
  92  
  93  
  94  
  95   # See if w e can do a  vagrant u p on the m anaged nod es - i.e.,  connect t o them.
  96   # To call  this, you  must first  have call ed build_m anaged_tes t_clients.
  97   do_managed _sanity_ch eck() {
  98       if [ $ ENVIRONMEN T == "aws- managed-pe rf" ]; the n  # only  applicable  to manage d config.
  99           ec ho "Sanity  check: Se e if we ca n connect  to the man aged nodes "
  100           cd  $PROJECT_ ROOT/infra structure/ vagrant/ma naged/mana ged-vista- exchange
  101           #/ usr/bin/va grant dest roy -f tes t_client_1
  102           ec ho "Connec ting to te st_client_ 1......"
  103           ls  -la Vagra ntfile
  104           /u sr/bin/vag rant up te st_client_ 1 --provid er managed
  105           ls  -la Vagra ntfile
  106  
  107           ec ho "Connec ting to te st_client_ 2......"
  108           /u sr/bin/vag rant up te st_client_ 2 --provid er managed
  109       fi
  110   }
  111  
  112  
  113  
  114   # Refresh  berkshelf' s cookbook s.
  115   update_coo kbooks() {
  116       echo " Running up date.cookb ooks.sh"
  117       cd $PR OJECT_ROOT /product/
  118       ./upda te.cookboo ks.sh
  119   }
  120  
  121  
  122  
  123   # Populate  the JDS/e VPR cache  with the p atients th at will be  used in t he perform nace
  124   # tests, f or the pur pose of pe rforming " synced" pa tient SLA  tests. Thi s must
  125   # be calle d prior to  performin g those te sts.
  126   sync_patie nts() {
  127       #cd $P ROJECT_ROO T/product/ tests/perf ormance-te sts/client -tests
  128       #bundl e exec rak e selected Tests["-t  @perf.sync ","feature s/perf.FHI Rhttparty. feature"
  129       #cd $P ROJECT_ROO T/product/ tests/acce ptance-tes ts
  130       #bundl e exec rak e selected Tests["-t  @patientde mographics earch","fe atures/F11 9_PatientN ameSearch. feature"]
  131       cd $PR OJECT_ROOT /product/t ests/perfo rmance-tes ts/client- tests
  132       bundle  exec rake  selectedT ests["-t @ perf.sync" ,"features /perf.FHIR httparty.f eature"]
  133   }
  134  
  135  
  136  
  137   # Execute  a performa nce test r un, in AWS , using ei ther the m anaged or  unmanaged
  138   # configur ation.
  139   run_perfor mance_test s() {
  140       echo " Running pe rformance  tests in $ PROJECT_RO OT"
  141       cd $PR OJECT_ROOT /product/t ests/perfo rmance-tes ts
  142       ls -la  Gemfile
  143       
  144       # Go t o the dire ctory for  the approp riate test s.
  145       case $ ENVIRONMEN T in
  146           "a ws-perf")
  147                echo "Ru nning bund le install "
  148                bundle i nstall
  149                cd maste r_scripts
  150                ;;
  151           "a ws-managed -perf")
  152                echo "Ru nning bund le install "
  153                bundle i nstall
  154                cd manag ed_test_ca se
  155                ;;
  156           "l ocal")
  157                echo "Ru nning bund le install "
  158                sudo bun dle instal l
  159                cd maste r_scripts
  160                ;;
  161           "l ocal-manag ed")
  162                echo "Ru nning bund le install "
  163                sudo bun dle instal l
  164                cd manag ed_test_ca se
  165                ;;
  166           "e de-managed -perf")
  167                echo "ED E not impl emented ye t"
  168                ;;
  169           *)
  170                echo "Un expected e nvironment : $ENVIRON MENT"
  171                ;;
  172       esac
  173       
  174       echo " Running ra ke"
  175       bundle  exec rake       
  176   }
  177  
  178  
  179  
  180   run_test_r unner_on_1 () {
  181       #cd $P ROJECT_ROO T/product/ tests/perf ormance-te sts/result s/REST_Loa d_Test_man aged/scrip ts/REST_Lo ad_Test_ma naged/test _client_1
  182         #ssh -F ss hconfig_te st_client_ DNS       @test_clie nt_1 pwd
  183         #ssh -F ss hconfig_te st_client_ DNS       @test_clie nt_1 /var/ scripts/te strunner.s h
  184       
  185       #cd $P ROJECT_ROO T/infrastr ucture/vag rant/manag ed/managed -vista-exc hange
  186       cd /va r/lib/jenk ins/worksp ace/ehmp-p erformance -test-buil d-managed- next/infra structure/ vagrant/ma naged/mana ged-vista- exchange
  187       /usr/b in/vagrant  ssh test_ client_1 - c pwd
  188   }
  189  
  190  
  191  
  192   run_one_ac c_test_in_ aws() {
  193       if [ $ ENVIRONMEN T != "aws- perf" ]; t hen
  194           ec ho "Unexpe cted envir onment: $E NVIRONMENT "
  195           ex it 1
  196       fi
  197       
  198       cd $PR OJECT_ROOT /product/t ests/perfo rmance-tes ts/client- tests
  199       echo " Running on e client t est..."
  200       bundle  exec rake  selectedT ests
  201   }
  202  
  203  
  204  
  205   # Below, w e invoke t he functio ns that we  want for  each env.  Edit this  according  to current  needs.
  206  
  207  
  208  
  209   case $ENVI RONMENT in
  210       "aws-p erf")
  211           so urce /etc/ profile.d/ rvm.sh
  212           rv m use 1.9. 3
  213           in it_env
  214           #s ync_patien ts
  215           #r un_one_acc _test_in_a ws
  216           ru n_performa nce_tests
  217           ;;
  218       "aws-m anaged-per f")
  219           so urce /etc/ profile.d/ rvm.sh
  220           rv m use 1.9. 3
  221           in it_env
  222           #d estroy_man aged_test_ clients
  223           #b uild_manag ed_test_cl ients
  224           #g et_managed _node_ips
  225           #u pdate_cook books
  226           #d o_managed_ sanity_che ck
  227           #r un_test_ru nner_on_1
  228           ru n_performa nce_tests
  229           ;;
  230       "local ")
  231           in it_env
  232           ru n_performa nce_tests
  233           ;;
  234       "local -managed")
  235           in it_env
  236           ru n_performa nce_tests
  237           ;;
  238       "ede-m anaged-per f")
  239           ec ho "EDE no t implemen ted yet"
  240           ;;
  241       *)
  242           ec ho "Unexpe cted envir onment: $E NVIRONMENT "
  243           ;;
  244   esac
  245