103. EPMO Open Source Coordination Office Redaction File Detail Report

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.

103.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\core rpc-client-factory-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\core rpc-client-factory-spec.js Tue Oct 3 18:47:10 2017 UTC

103.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 134
Changed 1 8
Inserted 0 0
Removed 0 0

103.3 Comparison options

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

103.4 Active regular expressions

No regular expressions were active.

103.5 Comparison detail

  1   'use stric t';
  2  
  3   var rpcCli entFactory  = require ('./rpc-cl ient-facto ry');
  4   var RpcCli ent = requ ire('vista -js').RpcC lient;
  5  
  6   var logger  = sinon.s tub(requir e('bunyan' ).createLo gger({
  7       name:  'rpc-clien t-factory'
  8   }));
  9  
  10   describe(' Verify Wri te back RP C Client F actory', f unction()  {
  11       var co nfig = {
  12             host: ' IP          ',
  13             port:  PORT ,
  14             accessCode : ' REDACT ',
  15             verifyCode : ' REDACTED ',
  16           co ntext: 'VP R UI CONTE XT',
  17           lo calIP: '12 7.0.0.1',
  18           lo calAddress : 'localho st',
  19           co nnectTimeo ut: 3000,
  20           se ndTimeout:  10000
  21       };
  22  
  23       var wr itebackCon text, mock RpcClientC reate, moc kRpcConnec t, mockRpc Close;
  24  
  25       before Each(funct ion() {
  26           wr itebackCon text = {};
  27           wr itebackCon text.vista Config = c onfig;
  28           wr itebackCon text.logge r = logger ;
  29           wr itebackCon text.rpcCl ient = nul l;
  30  
  31           mo ckRpcClien tCreate =  sinon.stub (RpcClient , 'create' , function (logger, c onfig) {
  32                var rpcC lient = ne w RpcClien t(logger,  config);
  33  
  34                mockRpcC onnect = s inon.stub( rpcClient,  'connect' , function (callback)  {return c allback(); });
  35                mockRpcC lose = sin on.stub(rp cClient, ' close', fu nction() { });
  36  
  37                return r pcClient;
  38           }) ;
  39       });
  40  
  41       afterE ach(functi on() {
  42           mo ckRpcClien tCreate.re store();
  43       });
  44  
  45       it('re turns the  same creat ed client' , function (done) {
  46  
  47           rp cClientFac tory.getRp cClient(wr itebackCon text, null , function (err, rpcC lient) {
  48                var init ialRpcClie nt = rpcCl ient;
  49  
  50                rpcClien tFactory.g etRpcClien t(writebac kContext,  null, func tion(err,  rpcClient)  {
  51                    expe ct(initial RpcClient) .to.be(rpc Client);
  52                });
  53           }) ;
  54  
  55           ex pect(mockR pcConnect. called).to .be.true() ;
  56  
  57           do ne();
  58       });
  59  
  60       it('RP C client c onnection  is closed' , function (done) {
  61           rp cClientFac tory.getRp cClient(wr itebackCon text, null , function (err, rpcC lient) {
  62                rpcClien tFactory.c loseRpcCli ent(writeb ackContext );
  63           }) ;
  64  
  65           ex pect(mockR pcClose.ca lled).to.b e.true();
  66           ex pect(write backContex t.rpcClien t).to.be.n ull();
  67  
  68           do ne();
  69       });
  70   });
  71