Produced by Araxis Merge on 10/4/2017 8:04:36 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\subsystems | vista-read-only-subsystem-spec.js | Mon Aug 21 12:51:00 2017 UTC |
| 2 | rdk.zip\rdk\product\production\rdk\src\subsystems | vista-read-only-subsystem-spec.js | Tue Oct 3 18:44:17 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 10 | 148 |
| 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 vistaR eadOnlySub system = r equire('./ vista-read -only-subs ystem'); | |
| 4 | var RpcCli ent = requ ire('vista -js').RpcC lient; | |
| 5 | var logger = sinon.s tub(requir e('bunyan' ).createLo gger({name : 'vista-r ead-only-s ubsystem'} )); | |
| 6 | var vistaC onfig = {} ; | |
| 7 | var req = { | |
| 8 | vistaC onfig: { | |
| 9 | divi sion: '500 ' | |
| 10 | }, | |
| 11 | app: { | |
| 12 | co nfig: { | |
| 13 | rpcConfi g: { | |
| 14 | cont ext: 'ORQO R DETAIL', | |
| 15 | siteHash: ' R E D A CTED ' | |
| 16 | }, | |
| 17 | vistaSit es: { | |
| 18 | ' R E D A CTED ': { | |
| 19 | division: [{ | |
| 20 | id: '5 00', | |
| 21 | name: 'PANORAMA' | |
| 22 | }], | |
| 23 | host: ' IP ', | |
| 24 | port: PORT , | |
| 25 | production : false, | |
| 26 | accessCode : ' REDACT ', | |
| 27 | verifyCode : ' REDACTED ', | |
| 28 | localIP: ' IP ', | |
| 29 | localAddre ss: 'local host' | |
| 30 | }, | |
| 31 | 'C87 7': { | |
| 32 | division: [{ | |
| 33 | id: '5 00', | |
| 34 | name: 'KODAK' | |
| 35 | }], | |
| 36 | host: ' IP ', | |
| 37 | port: PORT , | |
| 38 | production : false, | |
| 39 | accessCode : ' REDACT ', | |
| 40 | verifyCode : ' REDACTED ' | |
| 41 | } | |
| 42 | } | |
| 43 | } | |
| 44 | }, | |
| 45 | logger : logger, | |
| 46 | _rpcSy stemClient s: {} | |
| 47 | }; | |
| 48 | ||
| 49 | describe(' vista-read -only-subs ystem', fu nction() { | |
| 50 | ||
| 51 | it('Te sts that g et RPC sys tem client returns t he client' , function (done) { | |
| 52 | ||
| 53 | si non.stub(R pcClient.p rototype, 'connect', function( callback) { | |
| 54 | callback (); | |
| 55 | }) ; | |
| 56 | ||
| 57 | vistaReadO nlySubsyst em.getRpcS ystemClien t(req, ' R E D A CTED ', functio n(err, cli ent) { | |
| 58 | expect(e rr).to.be. null(); | |
| 59 | expect(c lient).not .to.be.nul l(); | |
| 60 | done(); | |
| 61 | ||
| 62 | }) ; | |
| 63 | }); | |
| 64 | ||
| 65 | it('Te sts that c lose all R PC system clients cl ose the cl ients', fu nction(don e) { | |
| 66 | req._rpcSy stemClient s[' R E D A CTED '] = RpcCl ient.creat e(logger, vistaConfi g); | |
| 67 | vi staReadOnl ySubsystem .closeAllR pcSystemCl ients(req) ; | |
| 68 | ex pect(req._ rpcSystemC lients).eq l({}); | |
| 69 | do ne(); | |
| 70 | }); | |
| 71 | ||
| 72 | it('Te sts that g et subsyst em config returns co rrect conf ig', funct ion(done) { | |
| 73 | va r config = vistaRead OnlySubsys tem.getSub systemConf ig(); | |
| 74 | ex pect(confi g).not.to. be.null(); | |
| 75 | ex pect(confi g.healthch eck).not.t o.be.undef ined(); | |
| 76 | ex pect(confi g.healthch eck.name). eql('vista -read-only -subsystem '); | |
| 77 | do ne(); | |
| 78 | }); | |
| 79 | ||
| 80 | it('Te sts that g et readonl y vista co nfig retur ns correct config', function(d one) { | |
| 81 | var config = vistaRe adOnlySubs ystem._get ReadOnlyVi staConfig( req, ' R E D A CTED '); | |
| 82 | ex pect(confi g).not.to. be.null(); | |
| 83 | ||
| 84 | // division i s simple v alue | |
| 85 | ex pect(confi g.division ).eql('500 '); | |
| 86 | do ne(); | |
| 87 | }); | |
| 88 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.