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

98.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\utils\metrics metrics-spec.js Mon Aug 28 19:41:48 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\utils\metrics metrics-spec.js Tue Oct 3 17:19:02 2017 UTC

98.2 Comparison summary

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

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

98.4 Active regular expressions

No regular expressions were active.

98.5 Comparison detail

  1   'use stric t';
  2  
  3   var metric s = requir e('./metri cs');
  4   var Metric sData = re quire('./m etrics-dat a');
  5  
  6   describe(' Metrics sp ec', funct ion() {
  7       var lo gger;
  8       var ap p;
  9  
  10       before Each(funct ion() {
  11  
  12           lo gger = sin on.stub(re quire('bun yan').crea teLogger({
  13                name: 'm etrics-spe c.js'
  14           }) );
  15           ap p = {
  16                logger:  logger,
  17                config:  {
  18                    mvi:  {
  19                          baseUrl: ' http:// IP                  '
  20                    },
  21                    jdsS erver: {
  22                         baseUrl: ' '
  23                    },
  24                    jbpm : {
  25                         baseUrl: ' https://25 6.256.256. 2'
  26                    },
  27                    solr Server: {
  28                         baseUrl: ' 256.256.25 6.3'
  29                    },
  30                    vist aSites: {
  31                         '9E7A': {
  32                             name:  'PANORAMA' ,
  33                               host: ' IP          '
  34                         }
  35                    }
  36                }
  37           };
  38  
  39           me trics.init ialize(app );
  40       });
  41  
  42       afterE ach(functi on() {
  43           cl earInterva l(metrics. memoryUsag eTimerId);
  44       });
  45  
  46       it('ha ndle outgo ing start  without re q options. host', fun ction() {
  47           va r data = m etrics.han dleOutgoin gStart({},  logger);
  48  
  49           ex pect(logge r.info.cal ledWith({m etrics: {} }, 'metric s: no host  defined') ).to.be.tr ue();
  50           ex pect(data. isType('ou tgoing'));
  51       });
  52  
  53       it('ha ndle outgo ing start  with unkno wn host',  function()  {
  54           va r data = m etrics.han dleOutgoin gStart({
  55                url: 'ht tp://1.1.1 .1:9080/so mething'
  56           },  logger);
  57  
  58           ex pect(data. isType('ou tgoing'));
  59           ex pect(data. hostName). to.equal(' UNKNOWN');
  60       });
  61  
  62       it('ha ndle outgo ing start  with mvi h ost', func tion() {
  63           va r data = m etrics.han dleOutgoin gStart({
  64                  baseUrl: ' http:// IP                  ',
  65                url: '/s omething'
  66           },  logger);
  67  
  68           ex pect(data. isType('ou tgoing'));
  69           ex pect(data. hostName). to.equal(' mvi');
  70       });
  71  
  72       it('ha ndle outgo ing start  with 9E7A  vista host ', functio n() {
  73           va r data = m etrics.han dleOutgoin gStart({
  74                  baseUrl: ' http:// IP                ',
  75                url: '/p ath'
  76           },  logger);
  77  
  78           ex pect(data. isType('ou tgoing'));
  79           ex pect(data. hostName). to.equal(' PANORAMA') ;
  80       });
  81  
  82       it('as semble a f ull URL fr om baseUrl  and url',  function( ) {
  83           va r data = m etrics.han dleOutgoin gStart({
  84                  baseUrl: ' http:// IP                ',
  85                url: '/p ath'
  86           },  logger);
  87  
  88             expect(dat a.host.hos t).to.equa l('http:// IP                /path');
  89       });
  90  
  91       it('ha ndle incom ing start' , function () {
  92           va r data = m etrics.han dleIncomin gStart({},  logger);
  93  
  94           ex pect(data. isType('in coming'));
  95           ex pect(data. hostName). to.equal(' UNKNOWN');
  96       });
  97  
  98       it('ha ndle finis h does not  log inval id metric  data', fun ction() {
  99           me trics.hand leFinish({ }, logger) ;
  100  
  101           ex pect(logge r.info.cal led).to.be .false();
  102       });
  103  
  104       it('ha ndle finis h does not  log null  metric dat a', functi on() {
  105           me trics.hand leFinish(n ull, logge r);
  106  
  107           ex pect(logge r.info.cal led).to.be .false();
  108       });
  109  
  110       it('ha ndle finis h logs met ric data',  function( ) {
  111           va r data = n ew Metrics Data('inco mming', nu ll);
  112           me trics.hand leFinish(d ata, logge r);
  113  
  114           ex pect(logge r.info.cal led).to.be .true();
  115           ex pect(data. result).to .equal('su ccess');
  116       });
  117  
  118       it('ha ndle error  does not  log invali d metric d ata', func tion() {
  119           me trics.hand leError({} , logger);
  120  
  121           ex pect(logge r.info.cal led).to.be .false();
  122       });
  123  
  124       it('ha ndle error  does not  log null m etric data ', functio n() {
  125           me trics.hand leError(nu ll, logger );
  126  
  127           ex pect(logge r.info.cal led).to.be .false();
  128       });
  129  
  130       it('ha ndle error  logs metr ic data',  function()  {
  131           me trics.hand leError(ne w MetricsD ata('incom ming', nul l), logger );
  132  
  133           ex pect(logge r.info.cal led).to.be .true();
  134       });
  135   });