Produced by Araxis Merge on 10/4/2017 9:15:14 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 | vista-js.zip\vista-js\tests\integration | callRpc-itest-spec.js | Tue Sep 27 13:46:04 2016 UTC |
| 2 | vista-js.zip\vista-js\tests\integration | callRpc-itest-spec.js | Wed Oct 4 14:06:08 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 152 |
| Changed | 2 | 12 |
| 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 | var logger = require ('bunyan') .createLog ger({ | |
| 6 | na me: 'test: VistaJS-au thenticate ', | |
| 7 | le vel: 'fata l' | |
| 8 | }); | |
| 9 | ||
| 10 | var wConfi g = requir e('./confi g'); | |
| 11 | var callRp c = requir e('../../s rc/RpcClie nt').RpcCl ient.callR pc; | |
| 12 | ||
| 13 | var config = _.defau lts(wConfi g.vistaSit es[' SIT E
|
|
| 14 | ho st: ' IP ', | |
| 15 | po rt: PORT , | |
| 16 | ac cessCode: ' USER ', | |
| 17 | ve rifyCode: ' PW ', | |
| 18 | co ntext: 'HM P SYNCHRON IZATION CO NTEXT', | |
| 19 | lo calIP: '12 7.0.0.1', | |
| 20 | lo calAddress : 'localho st', | |
| 21 | co nnectTimeo ut: 1000, | |
| 22 | se ndTimeout: 5000 | |
| 23 | }); | |
| 24 | ||
| 25 | describe(' verify Rpc Client.cal lRpc() aga inst Panor ama', func tion() { | |
| 26 | de scribe('ve rify corre ct config info yield s good res ult', func tion() { | |
| 27 | xit( 'verified' , function () { | |
| 28 | var te stError; | |
| 29 | var te stResult; | |
| 30 | var ca lled = fal se; | |
| 31 | ||
| 32 | var ex pectedErro r = null; | |
| 33 | var ex pectedResu lt = /[0-9 ]{11}\^PRO XY,EHMP(\^ [0-9]*){10 }\^PANORAM A\.VISTACO RE\.US(\^[ 0-9]*){13} /; | |
| 34 | ||
| 35 | functi on callbac k(error, r esult) { | |
| 36 | called = true; | |
| 37 | testErro r = error; | |
| 38 | testResu lt = resul t; | |
| 39 | } | |
| 40 | ||
| 41 | callRp c(logger, config, 'O RWU USERIN FO', callb ack); | |
| 42 | ||
| 43 | waitsF or(functio n() { | |
| 44 | return c alled; | |
| 45 | }, 'sh ould be ca lled', 500 0); | |
| 46 | ||
| 47 | runs(f unction() { | |
| 48 | expect(t estError). toEqual(ex pectedErro r); | |
| 49 | expect(t estResult) .toMatch(e xpectedRes ult); | |
| 50 | }); | |
| 51 | }); | |
| 52 | }) ; | |
| 53 | ||
| 54 | de scribe('ve rify incor rect confi g info yie lds error result', f unction() { | |
| 55 | it(' verified', function( ) { | |
| 56 | var te stError; | |
| 57 | var te stResult; | |
| 58 | var ca lled = fal se; | |
| 59 | ||
| 60 | var ex pectedResu lt = null; | |
| 61 | ||
| 62 | functi on callbac k(error, r esult) { | |
| 63 | called = true; | |
| 64 | testErro r = error; | |
| 65 | testResu lt = resul t; | |
| 66 | } | |
| 67 | ||
| 68 | var co nf = _.clo ne(config) ; | |
| 69 | conf.port = PORT ; | |
| 70 | callRp c(logger, conf, 'ORW U USERINFO ', callbac k); | |
| 71 | ||
| 72 | waitsF or(functio n() { | |
| 73 | return c alled; | |
| 74 | }, 'sh ould be ca lled', 100 00); | |
| 75 | ||
| 76 | runs(f unction() { | |
| 77 | expect(t estError). not.toBeNu ll(); | |
| 78 | expect(t estResult) .toEqual(e xpectedRes ult); | |
| 79 | }); | |
| 80 | }); | |
| 81 | }) ; | |
| 82 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.