Produced by Araxis Merge on 10/4/2017 8:04:37 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\production\rdk\src\write\orders\common | orders-common-vpr-order-itest-spec.js | Mon Aug 21 12:51:00 2017 UTC |
| 2 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-vpr-order-itest-spec.js | Tue Oct 3 19:03:40 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 10 | 176 |
| Changed | 9 | 28 |
| 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 vprOrd er = requi re('./orde rs-common- vpr-order' ); | |
| 4 | ||
| 5 | var writeb ackContext = { | |
| 6 | pid: ' R E D A CTED ;3', | |
| 7 | siteHash:' R E D A CTED ', | |
| 8 | appCon fig:{ | |
| 9 | rp cConfig: { | |
| 10 | context: 'HMP UI C ONTEXT' | |
| 11 | }, | |
| 12 | vi staSites: { | |
| 13 | ' R E D A CTED ': { | |
| 14 | name : 'PANORAM A', | |
| 15 | divi sion: '500 ', | |
| 16 | host: ' IP ', | |
| 17 | port: PORT , | |
| 18 | prod uction: fa lse, | |
| 19 | accessCode : ' PL ', | |
| 20 | verifyCode : ' PL !!', | |
| 21 | loca lIP: '127. 0.0.1', | |
| 22 | loca lAddress: 'localhost ' | |
| 23 | }, | |
| 24 | 'C877': { | |
| 25 | name : 'KODAK', | |
| 26 | divi sion: '500 ', | |
| 27 | host: ' IP ', | |
| 28 | port: PORT , | |
| 29 | prod uction: fa lse, | |
| 30 | accessCode : ' PL ', | |
| 31 | verifyCode : ' PL !!', | |
| 32 | loca lIP: '127. 0.0.1', | |
| 33 | loca lAddress: 'localhost ' | |
| 34 | } | |
| 35 | } | |
| 36 | }, | |
| 37 | model: { | |
| 38 | 'p rovider': '100000002 31', | |
| 39 | 'l ocation': '285', | |
| 40 | 'eSig': ' PL !!', | |
| 41 | 'o rderList': [{ | |
| 42 | 'orderId ': '38030; 1', | |
| 43 | 'orderDe tailHash': 'foobar' | |
| 44 | }, { | |
| 45 | 'orderId ': '38032; 1', | |
| 46 | 'orderDe tailHash': 'foobar' | |
| 47 | }] | |
| 48 | }, | |
| 49 | interc eptorResul ts: { | |
| 50 | pa tientIdent ifiers: { | |
| 51 | 'dfn': ' 3', | |
| 52 | } | |
| 53 | }, | |
| 54 | logger : sinon.st ub(require ('bunyan') .createLog ger({name: 'order-de tail-compa rator'})) | |
| 55 | }; | |
| 56 | ||
| 57 | describe(' Checks get VprOrder f unctionali ty', funct ion () { | |
| 58 | ||
| 59 | it ('r etrieve ex isting vpr order', f unction(do ne) { | |
| 60 | var uid = 'urn:va:or der: R E D A CTED :3:12540'; | |
| 61 | ||
| 62 | th is.timeout (8000); | |
| 63 | ||
| 64 | vp rOrder.get VprOrder(w ritebackCo ntext, uid , function (err, resu lt){ | |
| 65 | expect(r esult).to. be.truthy( ); | |
| 66 | expect(e rr).to.be. falsy(); | |
| 67 | expect(r esult.uid) .to.be.equ al(uid); | |
| 68 | done(); | |
| 69 | }) ; | |
| 70 | }); | |
| 71 | ||
| 72 | it('at tempt to r etrieve a vpr order that does not exist' , function (done) { | |
| 73 | ||
| 74 | th is.timeout (8000); | |
| 75 | ||
| 76 | vprOrder.g etVprOrder (writeback Context, ' urn:va:ord er: R E D A CTED :3:9999999 9', functi on(err, re sult){ | |
| 77 | expect(r esult).to. be.falsy() ; | |
| 78 | expect(e rr).to.be. truthy(); | |
| 79 | expect(e rr.message ).to.equal ('Failed t o parse or der VPR re sult.'); | |
| 80 | done(); | |
| 81 | }) ; | |
| 82 | }); | |
| 83 | }); | |
| 84 | ||
| 85 | describe(' Checks get vpr order s function ality', fu nction() { | |
| 86 | ||
| 87 | it('te sts getVpr Orders', f unction(do ne) { | |
| 88 | va r self = t his; | |
| 89 | se lf.timeout (10000); | |
| 90 | ||
| 91 | vp rOrder.get VprOrders( writebackC ontext, fu nction(err , result) { | |
| 92 | expect(e rr).to.be. falsy(); | |
| 93 | expect(r esult).to. be.truthy( ); | |
| 94 | expect(r esult.leng th).to.equ al(2); | |
| 95 | expect(r esult[0].l ocalId).to .equal(380 30); | |
| 96 | expect(r esult[1].l ocalId).to .equal(380 32); | |
| 97 | ||
| 98 | done(); | |
| 99 | }) ; | |
| 100 | }); | |
| 101 | }); | |
| 102 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.