Produced by Araxis Merge on 10/3/2017 11:16:01 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 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\operational-data-store-request-handler | operational-data-store-request-handler-itest-spec.js | Tue Jan 10 16:20:50 2017 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\operational-data-store-request-handler | operational-data-store-request-handler-itest-spec.js | Tue Oct 3 12:49:56 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 220 |
| 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 | 'use stric t'; | |
| 2 | ||
| 3 | var _ = re quire('und erscore'); | |
| 4 | ||
| 5 | require('. ./../../.. /env-setup '); | |
| 6 | ||
| 7 | var handle = require (global.VX _HANDLERS + 'operati onal-data- store-requ est/operat ional-data -store-req uest-handl er'); | |
| 8 | var JdsCli ent = requ ire(global .VX_SUBSYS TEMS + 'jd s/jds-clie nt'); | |
| 9 | ||
| 10 | var val = require(gl obal.VX_UT ILS + 'obj ect-utils' ).getPrope rty; | |
| 11 | var wConfi g = requir e(global.V X_ROOT + ' worker-con fig'); | |
| 12 | var log = require(gl obal.VX_DU MMIES + 'd ummy-logge r'); | |
| 13 | // log = r equire('bu nyan').cre ateLogger( { | |
| 14 | // nam e: 'operat ional-sync -endpoint- handler-sp ec', | |
| 15 | // lev el: 'debug ' | |
| 16 | // }); | |
| 17 | ||
| 18 | describe(' operationa l-data-sto re-request -handler.j s', functi on() { | |
| 19 | ||
| 20 | descri be('handle ()', funct ion() { | |
| 21 | ||
| 22 | va r config = { | |
| 23 | jds: _.d efaults(wC onfig.jds, { | |
| 24 | prot ocol: 'htt p', | |
| 25 | host: ' IP ', | |
| 26 | port: PORT | |
| 27 | }) | |
| 28 | }; | |
| 29 | ||
| 30 | va r recordUi d = 'urn:v a:pt-selec t:EEEE:1:1 '; | |
| 31 | va r ptSelect Record = { | |
| 32 | 'stampTi me': 20150 311140030, | |
| 33 | 'birthDa te': 19350 407, | |
| 34 | 'familyN ame': 'INT -TEST', | |
| 35 | 'fullNam e': 'INT-T EST,PATIEN T', | |
| 36 | 'genderC ode': 'urn :va:pat-ge nder:M', | |
| 37 | 'genderN ame': 'Mal e', | |
| 38 | 'givenNa mes': 'PAT IENT', | |
| 39 | 'localId ': 1, | |
| 40 | 'pid': ' EEEE;1', | |
| 41 | 'sensiti ve': true, | |
| 42 | 'ssn': 6 66223456, | |
| 43 | 'uid': ' urn:va:pt- select:EEE E:1:1' | |
| 44 | }; | |
| 45 | va r storageJ ob = { | |
| 46 | 'record' : ptSelect Record, | |
| 47 | 'jpid': '21EC2021- 3AEA-4069- A2DD-08002 B30309D', | |
| 48 | 'type': 'operation al-store-r ecord' | |
| 49 | }; | |
| 50 | ||
| 51 | it ('handles an operati onal-store -record jo b', functi on() { | |
| 52 | var jdsC lient = ne w JdsClien t(log, log , config); | |
| 53 | var envi ronment = { | |
| 54 | jds: jdsClient , | |
| 55 | publ isherRoute r: { | |
| 56 | publish: f unction(jo b, callbac k) { | |
| 57 | callba ck(); | |
| 58 | } | |
| 59 | }, | |
| 60 | metr ics: log, | |
| 61 | solr : { | |
| 62 | add: funct ion(record , callback ) { | |
| 63 | callba ck(); | |
| 64 | } | |
| 65 | } | |
| 66 | }; | |
| 67 | ||
| 68 | var fini shed = fal se; | |
| 69 | runs(fun ction() { | |
| 70 | hand le(log, co nfig, envi ronment, s torageJob, function( error, res ult) { | |
| 71 | expect(err or).toBeNu ll(); | |
| 72 | expect(res ult).toEqu al('succes s'); | |
| 73 | finished = true; | |
| 74 | }); | |
| 75 | }); | |
| 76 | ||
| 77 | waitsFor (function( ) { | |
| 78 | retu rn finishe d; | |
| 79 | }); | |
| 80 | ||
| 81 | var fini shed2 = fa lse; | |
| 82 | //Verify record wa s actually stored | |
| 83 | runs(fun ction() { | |
| 84 | jdsC lient.getO perational DataByUid( recordUid, function( error, res ponse) { | |
| 85 | //console. log(JSON.s tringify(r esponse)); | |
| 86 | expect(err or).toBeFa lsy(); | |
| 87 | expect(res ponse).toB eTruthy(); | |
| 88 | expect(val (response, 'statusCo de')).toEq ual(200); | |
| 89 | finished2 = true; | |
| 90 | }); | |
| 91 | }); | |
| 92 | waitsFor (function( ) { | |
| 93 | retu rn finishe d2; | |
| 94 | }); | |
| 95 | ||
| 96 | var fini shed3 = fa lse; | |
| 97 | //Clean up the rec ord | |
| 98 | runs(fun ction() { | |
| 99 | jdsC lient.dele teOperatio nalDataByU id(recordU id, functi on(error, response) { | |
| 100 | expect(err or).toBeFa lsy(); | |
| 101 | expect(res ponse).toB eTruthy(); | |
| 102 | expect(val (response, 'statusCo de')).toEq ual(200); | |
| 103 | finished3 = true; | |
| 104 | }); | |
| 105 | }); | |
| 106 | waitsFor (function( ) { | |
| 107 | retu rn finishe d3; | |
| 108 | }); | |
| 109 | }) ; | |
| 110 | }); | |
| 111 | ||
| 112 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.