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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | rdk.zip\rdk\product\tests | Rakefile | Mon Aug 28 19:41:48 2017 UTC |
| 2 | rdk.zip\rdk\product\tests | Rakefile | Tue Oct 3 17:26:16 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 236 |
| 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 | ||
| 2 | require Fi le.dirname (__FILE__) + '/Patie ntSynchron izer.rb' | |
| 3 | require Fi le.dirname (__FILE__) + '/knife -helper.rb ' | |
| 4 | require 'r ubygems' | |
| 5 | require 'j son' | |
| 6 | ||
| 7 | task :intt est, [:env ] => [:env ironment_s etup] | |
| 8 | ||
| 9 | task :envi ronment_se tup, :env do |task, args| | |
| 10 | env = ar gs[:env] | | 'virtual box' | |
| 11 | environm ent_endpoi nts(env) | |
| 12 | get_rdk_ config_fil es(env) | |
| 13 | end | |
| 14 | ||
| 15 | def enviro nment_endp oints(env) | |
| 16 | case env | |
| 17 | when "vi rtualbox" | |
| 18 | ENV["R DK_FETCH_H OST"] = kn ife_search _for_ip("r esource_se rver") | |
| 19 | ENV["R DK_FETCH_P ORT"] = kn ife_search _for_attri bute("reso urce_serve r", ["rdk" , "fetch_s erver", "p ort"], "de fault") | |
| 20 | ENV["R DK_WRITEBA CK_HOST"] = knife_se arch_for_i p("resourc e_server") | |
| 21 | ENV["R DK_WRITEBA CK_PORT"] = knife_se arch_for_a ttribute(" resource_s erver", [" rdk", "wri te_back", "port"], " default") | |
| 22 | ENV["R DK_PICKLIS T_HOST"] = knife_sea rch_for_ip ("resource _server") | |
| 23 | ENV["R DK_PICKLIS T_PORT"] = knife_sea rch_for_at tribute("r esource_se rver", ["r dk", "pick _list", "p ort"], "de fault") | |
| 24 | ENV['J DS_IP'] = knife_sear ch_for_ip( 'jds') | |
| 25 | when "aw s" | |
| 26 | ENV["R DK_FETCH_H OST"] = kn ife_search _for_ip("r esource_se rver") | |
| 27 | ENV["R DK_FETCH_P ORT"] = kn ife_search _for_attri bute("reso urce_serve r", ["rdk" , "fetch_s erver", "p ort"], "de fault") | |
| 28 | ENV["R DK_WRITEBA CK_HOST"] = knife_se arch_for_i p("resourc e_server") | |
| 29 | ENV["R DK_WRITEBA CK_PORT"] = knife_se arch_for_a ttribute(" resource_s erver", [" rdk", "wri te_back", "port"], " default") | |
| 30 | ENV["R DK_PICKLIS T_HOST"] = knife_sea rch_for_ip ("resource _server") | |
| 31 | ENV["R DK_PICKLIS T_PORT"] = knife_sea rch_for_at tribute("r esource_se rver", ["r dk", "pick _list", "p ort"], "de fault") | |
| 32 | begin | |
| 33 | ENV[ "JDS_IP"] = knife_se arch_for_i p("jds") | |
| 34 | rescue | |
| 35 | ENV[ "JDS_IP"] = knife_se arch_for_i p("jds_app _server") | |
| 36 | end | |
| 37 | else | |
| 38 | fail " Unrecogniz ed environ ment type: #{env}. A llowable t ypes are: 'virtualbo x' and 'aw s'" | |
| 39 | end | |
| 40 | end | |
| 41 | ||
| 42 | def get_rd k_config_f iles(drive r) | |
| 43 | configDi r = "./rdk _config_fi les" | |
| 44 | configs = ["rdk-fe tch-server -config.js on", "rdk- pick-list- server-con fig.json", "rdk-writ e-server-c onfig.json "] | |
| 45 | key = kn ife_search _for_key_n ame("rdk", driver) | |
| 46 | user = dri ver == "aw s" ? " DNS " : "vagra nt" | |
| 47 | ip = kni fe_search_ for_ip("re source_ser ver") | |
| 48 | Dir.mkdi r("#{confi gDir}") un less File. exists?("# {configDir }") | |
| 49 | puts "co py rdk con figs from rdk machin e to #{con figDir}" | |
| 50 | configs. each do |c onfigname| | |
| 51 | sh('sc p', '-o', 'StrictHos tKeyChecki ng=no', '- i', "#{key }", "#{use r}@#{ip}:/ opt/rdk/co nfig/#{con figname}", "#{config Dir}") | |
| 52 | end | |
| 53 | end | |
| 54 | ||
| 55 | desc "Run integratio n tests ag ainst the fetch, wri te-back an d pick-lis t processe s" | |
| 56 | task :intt est do |t, args| | |
| 57 | Dir.chdi r("#{File. dirname(__ FILE__)}/. ./producti on/rdk"){ | |
| 58 | # init ial npm in stall to e nsure the node_modul es are the re | |
| 59 | puts " start npm install" | |
| 60 | sh "np m install --registry https://s tore.vista core.us/ne xus/conten t/reposito ries/npm-a ll/" | |
| 61 | puts " completed npm instal l" | |
| 62 | # fetc h server i ntegration tests usi ng the cop ied fetch- server-con fig file | |
| 63 | puts " start fetc h integrat ion tests using --co nfig #{Fil e.dirname( __FILE__)} /rdk_confi g_files/rd k-fetch-se rver-confi g.json" | |
| 64 | sh "TE ST_CONFIG= #{File.dir name(__FIL E__)}/rdk_ config_fil es/rdk-fet ch-server- config.jso n npm --lo glevel ver bose run t est:integr ation:fetc h" | |
| 65 | puts " completed fetch inte gration te sts" | |
| 66 | # writ e-back ser ver integr ation test s using th e copied w rite-back- server-con fig file | |
| 67 | puts " start writ e-back int egration t ests using --config #{File.dir name(__FIL E__)}/rdk_ config_fil es/rdk-wri te-server- config.jso n" | |
| 68 | sh "TE ST_CONFIG= #{File.dir name(__FIL E__)}/rdk_ config_fil es/rdk-wri te-server- config.jso n npm --lo glevel ver bose run t est:integr ation:writ e-back" | |
| 69 | puts " completed write-back integrati on tests" | |
| 70 | # pick -list serv er integra tion tests using the copied pi ck-list-se rver-confi g file | |
| 71 | puts " start pick -list inte gration te sts using --config # {File.dirn ame(__FILE __)}/rdk_c onfig_file s/rdk-pick -list-serv er-config. json" | |
| 72 | sh "TE ST_CONFIG= #{File.dir name(__FIL E__)}/rdk_ config_fil es/rdk-pic k-list-ser ver-config .json npm --loglevel verbose r un test:in tegration: pick-list" | |
| 73 | puts " completed pick-list integratio n tests" | |
| 74 | } | |
| 75 | end | |
| 76 | ||
| 77 | desc "Pres ync the ca che with t he patient _sync_list prior to int/acc te st runs" | |
| 78 | task :sync Cache do | |
| 79 | patient_ sync_list = [ | |
| 80 | "9E7A; 227", | |
| 81 | "9E7A; 71", | |
| 82 | "9E7A; 253", | |
| 83 | "9E7A; 239", | |
| 84 | "9E7A; 100001", | |
| 85 | "9E7A; 231", | |
| 86 | "9E7A; 3", | |
| 87 | "9E7A; 9", | |
| 88 | "9E7A; 18", | |
| 89 | "9E7A; 722", | |
| 90 | "9E7A; 100716", | |
| 91 | "9E7A; 100840", | |
| 92 | "9E7A; 100731", | |
| 93 | "9E7A; 8", | |
| 94 | "9E7A; 230", | |
| 95 | "9E7A; 100125", | |
| 96 | "9E7A; 229", | |
| 97 | "9E7A; 100022", | |
| 98 | "9E7A; 271", | |
| 99 | "C877; 1", | |
| 100 | "9E7A; 428", | |
| 101 | "9E7A; 1", | |
| 102 | "9E7A; 100184", | |
| 103 | "9E7A; 167", | |
| 104 | "9E7A; 100615", | |
| 105 | "9E7A; 301", | |
| 106 | "9E7A; 100033", | |
| 107 | "9E7A; 100817", | |
| 108 | "9E7A; 149", | |
| 109 | "9E7A; 204" | |
| 110 | ] | |
| 111 | begin | |
| 112 | ENV["J DS_IP"] = knife_sear ch_for_ip( "jds") | |
| 113 | rescue | |
| 114 | ENV["J DS_IP"] = knife_sear ch_for_ip( "jds_app_s erver") | |
| 115 | end | |
| 116 | ENV["VX_ SYNC_IP"] = knife_se arch_for_i p("vxsync_ client") | |
| 117 | PatientS ynchronize r.wait_unt il_operati onal_data_ loaded "ht tp://#{ENV ["JDS_IP"] }:9080", 6 00, ["9E7A ", "C877"] | |
| 118 | PatientS ynchronize r.synchron ize_patien t_list "ht tp://#{ENV ["VX_SYNC_ IP"]}:8080 ", 3600, p atient_syn c_list | |
| 119 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.