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\rspec-tests\spec | f117_patient_complex_note_spec.rb | Mon Aug 21 12:51:01 2017 UTC |
| 2 | rdk.zip\rdk\product\tests\rspec-tests\spec | f117_patient_complex_note_spec.rb | Tue Oct 3 17:28:22 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 408 |
| Changed | 1 | 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 | # encoding : utf-8 | |
| 2 | ||
| 3 | require 'r ubygems' | |
| 4 | require 'r spec' | |
| 5 | require 'w atir-webdr iver' | |
| 6 | ||
| 7 | require_re lative '.. /../shared -test-ruby /WebDriver Factory' | |
| 8 | require_re lative '.. /lib/helpe r/QueryRDK ' | |
| 9 | require_re lative '.. /lib/helpe r/HTTParty WithBasicA uth' | |
| 10 | require_re lative '.. /lib/helpe r/HTTParty WithAuthor ization' | |
| 11 | require_re lative '.. /lib/helpe r/FetchRes ourceDirec tory' | |
| 12 | require_re lative '.. /lib/helpe r/HTTParty WithCookie s' | |
| 13 | require_re lative '.. /lib/helpe r/JsonFiel dDateValid ator.rb' | |
| 14 | require_re lative '.. /lib/helpe r/JsonVeri fier.rb' | |
| 15 | require_re lative '.. /lib/helpe r/VerifyJs onRuntimeV alue.rb' | |
| 16 | ||
| 17 | require_re lative '.. /lib/modul e/vxapi_ut ility' | |
| 18 | require_re lative '.. /lib/modul e/json_uti lities' | |
| 19 | ||
| 20 | describe ' f117_patie nt_complex _note_spec .rb', acce ptance: tr ue do | |
| 21 | include VxAPIUtili ty | |
| 22 | include JsonUtilit ies | |
| 23 | ||
| 24 | before(: all) do | |
| 25 | @comma nd = 'reso urce/patie nt/record/ complex-no te' | |
| 26 | ||
| 27 | @pid_d ata = '101 08V420871' | |
| 28 | @sync_url = 'http:// IP ' | |
| 29 | @rdk_url = 'http:// IP ' | |
| 30 | ||
| 31 | # rdk_ clear_sync (@pid_data ) | |
| 32 | rdk_sy nc(@pid_da ta) | |
| 33 | end | |
| 34 | ||
| 35 | context 'pid' do | |
| 36 | it 'DE 2115: icn format' do | |
| 37 | resp onse = rdk _fetch(@co mmand, | |
| 38 | 'pi d' => @pid _data, | |
| 39 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003:10 00000648') | |
| 40 | expe ct(respons e.code).to eq(200) | |
| 41 | dump (response. body) | |
| 42 | end | |
| 43 | ||
| 44 | it 'DE 2115: pid format' do | |
| 45 | resp onse = rdk _fetch(@co mmand, | |
| 46 | 'pi d' => '9E7 A;3', | |
| 47 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003:10 00000648') | |
| 48 | expe ct(respons e.code).to eq(200) | |
| 49 | end | |
| 50 | ||
| 51 | it 'no complex d ocument' d o | |
| 52 | resp onse = rdk _fetch(@co mmand, | |
| 53 | 'pi d' => '500 0000009V08 2878', | |
| 54 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003:10 00000648') | |
| 55 | expe ct(respons e.code).to eq(404) | |
| 56 | end | |
| 57 | ||
| 58 | it 'om itted' do | |
| 59 | resp onse = rdk _fetch(@co mmand, | |
| 60 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003:10 00000648') | |
| 61 | expe ct(respons e.code).to eq(403) | |
| 62 | end | |
| 63 | ||
| 64 | it 'bl ank' do | |
| 65 | resp onse = rdk _fetch(@co mmand, | |
| 66 | 'pi d' => '', | |
| 67 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003:10 00000648') | |
| 68 | expe ct(respons e.code).to eq(403) | |
| 69 | end | |
| 70 | end | |
| 71 | ||
| 72 | context 'uid' do | |
| 73 | it 'no n-complex document' do | |
| 74 | resp onse = rdk _fetch(@co mmand, | |
| 75 | 'pi d' => @pid _data, | |
| 76 | 'ui d' => 'urn :va:docume nt:9E7A:3: 2745') | |
| 77 | expe ct(respons e.code).to eq(404) | |
| 78 | end | |
| 79 | ||
| 80 | it 'om itted' do | |
| 81 | resp onse = rdk _fetch(@co mmand, 'pi d' => @pid _data) | |
| 82 | expe ct(respons e.code).to eq(400) | |
| 83 | end | |
| 84 | ||
| 85 | it 'nu ll' do | |
| 86 | resp onse = rdk _fetch(@co mmand, 'pi d' => @pid _data, | |
| 87 | 'ui d' => '') | |
| 88 | expe ct(respons e.code).to eq(400) | |
| 89 | end | |
| 90 | ||
| 91 | it 'up per case' do | |
| 92 | resp onse = rdk _fetch(@co mmand, | |
| 93 | 'pi d' => @pid _data, | |
| 94 | 'ui d' => 'URN :VA:DOCUME NT:DOD:000 0000003:10 00000648') | |
| 95 | expe ct(respons e.code).to eq(404) | |
| 96 | end | |
| 97 | ||
| 98 | it 'in complete' do | |
| 99 | resp onse = rdk _fetch(@co mmand, | |
| 100 | 'pi d' => @pid _data, | |
| 101 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003') | |
| 102 | expe ct(respons e.code).to eq(404) | |
| 103 | end | |
| 104 | ||
| 105 | it 'tr uncated' d o | |
| 106 | resp onse = rdk _fetch(@co mmand, | |
| 107 | 'pi d' => @pid _data, | |
| 108 | 'ui d' => 'urn :va:docume nt:DOD:000 0000003:') | |
| 109 | expe ct(respons e.code).to eq(404) | |
| 110 | end | |
| 111 | ||
| 112 | it 'no n-existing domain' d o | |
| 113 | resp onse = rdk _fetch(@co mmand, | |
| 114 | 'pi d' => @pid _data, | |
| 115 | 'ui d' => 'urn :va:NOTEXI ST:DOD:000 0000003:10 00000648') | |
| 116 | expe ct(respons e.code).to eq(404) | |
| 117 | end | |
| 118 | ||
| 119 | it 'up per case u rn' do | |
| 120 | resp onse = rdk _fetch(@co mmand, | |
| 121 | 'pi d' => @pid _data, | |
| 122 | 'ui d' => 'URN :va:docume nt:DOD:000 0000003:10 00000648') | |
| 123 | expe ct(respons e.code).to eq(404) | |
| 124 | end | |
| 125 | ||
| 126 | it 'up per case v a' do | |
| 127 | resp onse = rdk _fetch(@co mmand, | |
| 128 | 'pi d' => @pid _data, | |
| 129 | 'ui d' => 'urn :VA:docume nt:DOD:000 0000003:10 00000648') | |
| 130 | expe ct(respons e.code).to eq(404) | |
| 131 | end | |
| 132 | ||
| 133 | it 'up per case d omain' do | |
| 134 | resp onse = rdk _fetch(@co mmand, | |
| 135 | 'pi d' => @pid _data, | |
| 136 | 'ui d' => 'urn :va:DOCUME NT:DOD:000 0000003:10 00000648') | |
| 137 | expe ct(respons e.code).to eq(404) | |
| 138 | end | |
| 139 | ||
| 140 | it 'mi ssing urn' do | |
| 141 | resp onse = rdk _fetch(@co mmand, | |
| 142 | 'pi d' => @pid _data, | |
| 143 | 'ui d' => ':va :document: DOD:000000 0003:10000 00648') | |
| 144 | expe ct(respons e.code).to eq(404) | |
| 145 | end | |
| 146 | ||
| 147 | it 'mi ssing va' do | |
| 148 | resp onse = rdk _fetch(@co mmand, | |
| 149 | 'pi d' => @pid _data, | |
| 150 | 'ui d' => 'urn ::document :DOD:00000 00003:1000 000648') | |
| 151 | expe ct(respons e.code).to eq(404) | |
| 152 | end | |
| 153 | ||
| 154 | it 'mi ssing doma in' do | |
| 155 | resp onse = rdk _fetch(@co mmand, | |
| 156 | 'pi d' => @pid _data, | |
| 157 | 'ui d' => 'urn :va::DOD:0 000000003: 1000000648 ') | |
| 158 | expe ct(respons e.code).to eq(404) | |
| 159 | end | |
| 160 | ||
| 161 | it 'mi ssing site ' do | |
| 162 | resp onse = rdk _fetch(@co mmand, | |
| 163 | 'pi d' => @pid _data, | |
| 164 | 'ui d' => 'urn :va:docume nt::000000 0003:10000 00648') | |
| 165 | expe ct(respons e.code).to eq(404) | |
| 166 | end | |
| 167 | ||
| 168 | it 'mi ssing all' do | |
| 169 | resp onse = rdk _fetch(@co mmand, | |
| 170 | 'pi d' => @pid _data, | |
| 171 | 'ui d' => '::: ::') | |
| 172 | expe ct(respons e.code).to eq(404) | |
| 173 | end | |
| 174 | end | |
| 175 | ||
| 176 | def rdk_ clear_sync (pid) | |
| 177 | # Clea r out pati ent | |
| 178 | post_a nd_check_r esponse_co de("#{@syn c_url}/syn c/clearPat ient?icn=" + pid, | |
| 179 | '') | |
| 180 | get_an d_check_re sponse_cod e("#{@rdk_ url}/resou rce/sync/s tatus?pid= "+pid, | |
| 181 | 404) | |
| 182 | end | |
| 183 | ||
| 184 | def post _and_check _response_ code(path, payload, response_c ode = nil) | |
| 185 | respon se = HTTPa rtyWithBas icAuth.pos t_json_wit h_authoriz ation(path , payload) | |
| 186 | unless response_ code.nil? | |
| 187 | expe ct(respons e.code).to eq(respon se_code), response.b ody | |
| 188 | end | |
| 189 | puts " post" | |
| 190 | puts r esponse.co de | |
| 191 | puts r esponse.bo dy | |
| 192 | ||
| 193 | respon se.body | |
| 194 | end | |
| 195 | ||
| 196 | def get_ and_check_ response_c ode(path, response_c ode = nil) | |
| 197 | respon se = HTTPa rtyWithBas icAuth.get _with_auth orization( path) | |
| 198 | unless response_ code.nil? | |
| 199 | expe ct(respons e.code).to eq(respon se_code), response.b ody | |
| 200 | end | |
| 201 | puts " get" | |
| 202 | puts r esponse.co de | |
| 203 | puts r esponse.bo dy | |
| 204 | respon se.body | |
| 205 | end | |
| 206 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.