Produced by Araxis Merge on 10/3/2017 11:16:02 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\sync-notification | sync-notification-handler-itest-spec.js | Mon Aug 28 20:41:42 2017 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\sync-notification | sync-notification-handler-itest-spec.js | Tue Oct 3 12:53:42 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 144 |
| Changed | 2 | 6 |
| 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 | require('. ./../../.. /env-setup '); | |
| 4 | ||
| 5 | var _ = re quire('und erscore'); | |
| 6 | var log = require(gl obal.VX_DU MMIES + '/ dummy-logg er'); | |
| 7 | // NOTE: b e sure nex t lines ar e commente d out befo re pushing | |
| 8 | // var log Util = req uire(globa l.VX_UTILS + 'log'); | |
| 9 | // log = l ogUtil._cr eateLogger ({ | |
| 10 | // na me: 'test' , | |
| 11 | // le vel: 'debu g', | |
| 12 | // ch ild: logUt il._create Logger | |
| 13 | // }); | |
| 14 | var wConfi g = requir e(global.V X_ROOT + ' worker-con fig'); | |
| 15 | var testCo nfig = req uire(globa l.VX_INTTE STS + 'tes t-config') ; | |
| 16 | var host = testConfi g.vxsyncIP ; | |
| 17 | var hostPo rt = testC onfig.vxsy ncPort; | |
| 18 | var handle r = requir e(global.V X_HANDLERS + 'sync-n otificatio n/sync-not ification- handler'); | |
| 19 | var JdsCli ent = requ ire(global .VX_SUBSYS TEMS + 'jd s/jds-clie nt'); | |
| 20 | var testHa ndler = re quire(glob al.VX_INTT ESTS + 'fr amework/ha ndler-test -framework ').testHan dler; | |
| 21 | ||
| 22 | describe(' sync-notif ication-ha ndler', fu nction() { | |
| 23 | it ('successf ully calls sync doLo ad', funct ion() { | |
| 24 | var config = { | |
| 25 | retryS ync: { | |
| 26 | maxRetri es: 3 | |
| 27 | }, | |
| 28 | syncRe questApi: { | |
| 29 | protocol : 'http', | |
| 30 | host: ho st, | |
| 31 | port: ho stPort, | |
| 32 | patientS yncPath: ' /sync/doLo ad', | |
| 33 | patientU nsyncPath: '/sync/cl earPatient ', | |
| 34 | patientS tatusPath: '/sync/st atus', | |
| 35 | patientS yncDemoPat h: '/sync/ demographi cSync', | |
| 36 | method: 'POST' | |
| 37 | }, | |
| 38 | vistaS ites: { | |
| 39 | '9E7A': {}, | |
| 40 | 'C877': {} | |
| 41 | }, | |
| 42 | jds: _ .defaults( wConfig.jd s, { | |
| 43 | protocol : 'http', | |
| 44 | host: ' IP ', | |
| 45 | port: PORT | |
| 46 | }) | |
| 47 | }; | |
| 48 | ||
| 49 | var environmen t = { | |
| 50 | metric s: log, | |
| 51 | jds: n ew JdsClie nt(log, lo g, config) | |
| 52 | }; | |
| 53 | ||
| 54 | var job = { | |
| 55 | type: 'sync-noti fication', | |
| 56 | timest amp: '2017 0517094313 ', | |
| 57 | patien tIdentifie r: { | |
| 58 | type: 'p id', | |
| 59 | value: ' 9E7A;24' | |
| 60 | }, | |
| 61 | dataDo main: 'dis charge', | |
| 62 | record : {}, | |
| 63 | jobId: '234ae-45 a7c-293da- acd2a-4dab 5', | |
| 64 | priori ty: 1, | |
| 65 | refere nceInfo: { | |
| 66 | requestI d: 'sync-n otificatio n-handler- itest' | |
| 67 | } | |
| 68 | }; | |
| 69 | ||
| 70 | var port = PORT ; | |
| 71 | var tubename = 'sync-not ification- handler-it est'; | |
| 72 | var matchingJo bTypes = [ 'publish-d ata-change -event']; | |
| 73 | test Handler(ha ndler, log , config, environmen t, host, p ort, tuben ame, job, matchingJo bTypes); | |
| 74 | }) ; | |
| 75 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.