Produced by Araxis Merge on 10/4/2017 8:04:41 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\acceptance-tests\features\steps | audit_steps.rb | Mon Aug 21 12:51:01 2017 UTC |
| 2 | rdk.zip\rdk\product\tests\acceptance-tests\features\steps | audit_steps.rb | Tue Oct 3 17:27:12 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 178 |
| 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 | Given(/^an authorize d client " (.*?)" has requested patient s earch for patient "( .*?)"$/) d o |usernam e, name| | |
| 2 | temp = R DKQuery.ne w('patient -search-fu ll-name') | |
| 3 | temp.add _parameter ("name.ful l", name) | |
| 4 | @respons e = HTTPar tyRDK.get_ as_user(te mp.path, u sername, T estClients .password_ for(userna me)) | |
| 5 | end | |
| 6 | ||
| 7 | Given(/^an authorize d client " (.*?)" has requested resource directory$ /) do |use rname| | |
| 8 | path = R DClass.res ourcedirec tory_fetch .get_url(" resource-d irectory") | |
| 9 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 10 | end | |
| 11 | ||
| 12 | Given(/^an authorize d client " (.*?)" has requested clinical notes for patient "( .*?)"$/) d o |usernam e, pid| | |
| 13 | path = Q ueryRDKDom ain.new("d ocument", pid).path | |
| 14 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 15 | end | |
| 16 | ||
| 17 | Given(/^an authorize d client " (.*?)" has requested problem l ist for pa tient "(.* ?)"$/) do |username, pid| | |
| 18 | path = Q ueryRDKDom ain.new("p roblem", p id).path | |
| 19 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 20 | end | |
| 21 | ||
| 22 | Given(/^an authorize d client " (.*?)" has requested lab for p atient "(. *?)"$/) do |username , pid| | |
| 23 | path = Q ueryRDKDom ain.new("l ab", pid). path | |
| 24 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 25 | end | |
| 26 | ||
| 27 | Given(/^an authorize d client " (.*?)" has requested radiology for patie nt "(.*?)" $/) do |us ername, pi d| | |
| 28 | path = Q ueryRDKDom ain.new("r ad", pid). path | |
| 29 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 30 | end | |
| 31 | ||
| 32 | Given(/^an authorize d client " (.*?)" has requested medicatio ns for pat ient "(.*? )"$/) do | username, pid| | |
| 33 | path = Q ueryRDKDom ain.new("m ed", pid). path | |
| 34 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 35 | end | |
| 36 | ||
| 37 | Given(/^an authorize d client " (.*?)" has requested demograph ics for pa tient "(.* ?)"$/) do |username, pid| | |
| 38 | path = Q ueryRDKDom ain.new("p atient", p id).path | |
| 39 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 40 | end | |
| 41 | ||
| 42 | Given(/^an authorize d client " (.*?)" has requested allergies for patie nt "(.*?)" $/) do |us ername, pi d| | |
| 43 | path = Q ueryRDKDom ain.new("a llergy", p id).path | |
| 44 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 45 | end | |
| 46 | ||
| 47 | Given(/^an authorize d client " (.*?)" has requested vitals fo r patient "(.*?)"$/) do |usern ame, pid| | |
| 48 | path = Q ueryRDKDom ain.new("v ital", pid ).path | |
| 49 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 50 | end | |
| 51 | ||
| 52 | When(/^aud it logs fo r patient "(.*?)" ar e requeste d$/) do |p id| | |
| 53 | # path = QueryRDKA udit.new(" pid", pid) .path | |
| 54 | query = RDKQuery.n ew('audit- record-sea rch') | |
| 55 | query.ad d_paramete r("pid", p id) | |
| 56 | path = q uery.path | |
| 57 | @respons e = HTTPar tyRDK.get_ as_user(pa th, "Audit LogUser", TestClient s.password _for("Audi tLogUser") ) | |
| 58 | end | |
| 59 | ||
| 60 | Then(/^the audit log entry con tains$/) d o |table| | |
| 61 | #2014-06 -30T20:38: 51.825Z | |
| 62 | dateform at = /\d\d \d\d-\d\d- \d\dT\d\d: \d\d:\d\d. \d\d\dZ/ | |
| 63 | ||
| 64 | @json_ob ject = JSO N.parse(@r esponse.bo dy) | |
| 65 | ||
| 66 | audit_ar ray = @jso n_object[" data"] | |
| 67 | expect(a udit_array .length).t o be > 0 | |
| 68 | result_a rray = [] | |
| 69 | result_a rray.push( audit_arra y[audit_ar ray.length -1]) | |
| 70 | search_j son(result _array, ta ble, datef ormat) | |
| 71 | end | |
| 72 | ||
| 73 | When(/^aud it logs fo r user "(. *?)" are r equested$/ ) do |user name| | |
| 74 | # path = QueryRDKA udit.new(" user", use rname).pat h | |
| 75 | query = RDKQuery.n ew('audit- record-sea rch') | |
| 76 | query.ad d_paramete r("user", username) | |
| 77 | path = q uery.path | |
| 78 | @respons e = HTTPar tyRDK.get_ as_user(pa th, "Audit LogUser", TestClient s.password _for("Audi tLogUser") ) | |
| 79 | end | |
| 80 | ||
| 81 | Given(/^th e rdk audi t logs are cleared$/ ) do | |
| 82 | path = R DClass.res ourcedirec tory_fetch .get_url(" audit-reco rd-clear") | |
| 83 | @respons e = HTTPar tyRDK.get_ as_user(pa th, "Audit LogUser", TestClient s.password _for("Audi tLogUser") ) | |
| 84 | expect(@ response.c ode).to eq (200), "re sponse cod e was #{@r esponse.co de}: respo nse body # {@response .body}" | |
| 85 | end | |
| 86 | ||
| 87 | if __FILE_ _ == $PROG RAM_NAME | |
| 88 | p TestClie nts.passwo rd_for(" DNS ") | |
| 89 | p TestCl ients.pass word_for(" badname") | |
| 90 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.