196. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:38 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.

196.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\pick-list\utils rpc-client-factory-spec.js Mon Aug 21 12:51:01 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\pick-list\utils rpc-client-factory-spec.js Tue Oct 3 19:21:03 2017 UTC

196.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 7 196
Changed 6 48
Inserted 0 0
Removed 0 0

196.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

196.4 Active regular expressions

No regular expressions were active.

196.5 Comparison detail

  1   'use stric t';
  2  
  3   var rpcCli entFactory  = require ('./rpc-cl ient-facto ry');
  4  
  5   var logger  = sinon.s tub(requir e('bunyan' ).createLo gger({
  6       name:  'rpc-clien t-factory'
  7   }));
  8  
  9   describe(' Verify RPC  Client Fa ctory', fu nction() {
  10       it('re turns the  same creat ed client' , function () {
  11           va r config =  {
  12                  host: ' IP          ',
  13                  port:  PORT ,
  14                  accessCode : ' REDACT ',
  15                  verifyCode : ' REDACTED ',
  16                context:  'VPR UI C ONTEXT',
  17                localIP:  '127.0.0. 1',
  18                localAdd ress: 'loc alhost',
  19                connectT imeout: 30 00,
  20                sendTime out: 10000
  21           };
  22  
  23           va r initialR pcClient =  rpcClient Factory.ge tClient(lo gger, conf ig);
  24           va r copyOfRp cClient =  rpcClientF actory.get Client(log ger, confi g);
  25  
  26           ex pect(initi alRpcClien t).to.be(c opyOfRpcCl ient);
  27       });
  28  
  29       it('re turns the  same creat ed client  in multidi vision env ironment',  function( ) {
  30           va r config =  {
  31                  host: ' IP          ',
  32                  port:  PORT ,
  33                  accessCode : ' REDACT ',
  34                  verifyCode : ' REDACTED ',
  35                context:  'VPR UI C ONTEXT',
  36                localIP:  '127.0.0. 1',
  37                localAdd ress: 'loc alhost',
  38                connectT imeout: 30 00,
  39                sendTime out: 10000 ,
  40                division : '500'
  41           };
  42  
  43           va r initialR pcClient =  rpcClient Factory.ge tClient(lo gger, conf ig);
  44           va r copyOfRp cClient =  rpcClientF actory.get Client(log ger, confi g);
  45  
  46           ex pect(initi alRpcClien t).to.be(c opyOfRpcCl ient);
  47       });
  48  
  49       it('re turns diff erent clie nts for di fferent co nfiguratio ns', funct ion() {
  50           va r configA  = {
  51                  host: ' IP          ',
  52                  port:  PORT ,
  53                  accessCode : ' REDACT ',
  54                  verifyCode : ' REDACTED ',
  55                context:  'HMP UI C ONTEXT',
  56                localIP:  '127.0.0. 1',
  57                localAdd ress: 'loc alhost',
  58                connectT imeout: 30 00,
  59                sendTime out: 10000
  60           };
  61  
  62           va r configB  = {
  63                  host: ' IP          ',
  64                  port:  PORT ,
  65                  accessCode : ' REDACT ',
  66                  verifyCode : ' REDACTED ',
  67                context:  'OR CPRS  GUI CHART' ,
  68                localIP:  '127.0.0. 1',
  69                localAdd ress: 'loc alhost',
  70                connectT imeout: 30 00,
  71                sendTime out: 10000
  72           };
  73  
  74           va r initialR pcClientA  = rpcClien tFactory.g etClient(l ogger, con figA);
  75           va r copyOfRp cClientA =  rpcClient Factory.ge tClient(lo gger, conf igA);
  76  
  77           va r initialR pcClientB  = rpcClien tFactory.g etClient(l ogger, con figB);
  78           va r copyOfRp cClientB =  rpcClient Factory.ge tClient(lo gger, conf igB);
  79  
  80           ex pect(initi alRpcClien tA).not.to .be.eql(in itialRpcCl ientB);
  81           ex pect(initi alRpcClien tA).to.be. eql(copyOf RpcClientA );
  82           ex pect(initi alRpcClien tB).to.be. eql(copyOf RpcClientB );
  83       });
  84  
  85       it('re turns diff erent clie nts for di fferent di vision-spe cific conf igurations ', functio n() {
  86           va r configA  = {
  87                  host: ' IP          ',
  88                  port:  PORT ,
  89                  accessCode : ' REDACT ',
  90                  verifyCode : ' REDACTED ',
  91                context:  'HMP UI C ONTEXT',
  92                localIP:  '127.0.0. 1',
  93                localAdd ress: 'loc alhost',
  94                connectT imeout: 30 00,
  95                sendTime out: 10000 ,
  96                divison:  '500'
  97           };
  98  
  99           va r configB  = {
  100                  host: ' IP          ',
  101                  port:  PORT ,
  102                  accessCode : ' REDACT ',
  103                  verifyCode : ' REDACTED ',
  104                context:  'HMP UI C ONTEXT',
  105                localIP:  '127.0.0. 1',
  106                localAdd ress: 'loc alhost',
  107                connectT imeout: 30 00,
  108                sendTime out: 10000 ,
  109                division : '507'
  110           };
  111  
  112           va r initialR pcClientA  = rpcClien tFactory.g etClient(l ogger, con figA);
  113           va r copyOfRp cClientA =  rpcClient Factory.ge tClient(lo gger, conf igA);
  114  
  115           va r initialR pcClientB  = rpcClien tFactory.g etClient(l ogger, con figB);
  116           va r copyOfRp cClientB =  rpcClient Factory.ge tClient(lo gger, conf igB);
  117  
  118           ex pect(initi alRpcClien tA).not.to .be.eql(in itialRpcCl ientB);
  119           ex pect(initi alRpcClien tA).to.be. eql(copyOf RpcClientA );
  120           ex pect(initi alRpcClien tB).to.be. eql(copyOf RpcClientB );
  121       });
  122   });