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

95.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\subsystems vista-multidivision-subsystem-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\subsystems vista-multidivision-subsystem-spec.js Tue Oct 3 18:43:51 2017 UTC

95.2 Comparison summary

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

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

95.4 Active regular expressions

No regular expressions were active.

95.5 Comparison detail

  1   'use stric t';
  2  
  3   var multid ivisionalS ubsystem =  require(' ./vista-mu ltidivisio n-subsyste m');
  4  
  5   var app =  {
  6       'confi g': {
  7           'v istaSites' : {
  8                'C877':  {
  9                    'div ision': [{
  10                         'id': '507 ',
  11                         'name': 'K ODAK'
  12                    }, {
  13                         'id': '613 ',
  14                         'name': 'M ARTINSBURG '
  15                    }, {
  16                         'id': '688 ',
  17                         'name': 'W ASHINGTON'
  18                    }],
  19                    'env ironment':  'developm ent',
  20                      'host': ' IP          ',
  21                      'localIP':  ' IP        ',
  22                    'loc alAddress' : 'localho st',
  23                      'port':  PORT ,
  24                    'pro duction':  false,
  25                      'accessCod e': ' RE D ACT E D ',
  26                      'verifyCod e': ' REDACT E
D
',
  27                    'inf oButtonOid ': '1.3.6. 1.4.1.3768 ',
  28                    'abb reviation' : 'KDK'
  29                },
  30                '9E7A':  {
  31                    'div ision': [{
  32                         'id': '500 ',
  33                         'name': 'P ANORAMA'
  34                    }],
  35                    'env ironment':  'developm ent',
  36                      'host': ' IP          ',
  37                      'localIP':  ' IP        ',
  38                    'loc alAddress' : 'localho st',
  39                      'port':  PORT ,
  40                    'pro duction':  false,
  41                      'accessCod e': ' REDACTED ',
  42                      'verifyCod e': ' REDACTED ',
  43                    'inf oButtonOid ': '1.3.6. 1.4.1.3768 ',
  44                    'abb reviation' : 'PAN'
  45                }
  46           }
  47       }
  48   };
  49  
  50   var logger  = sinon.s tub(requir e('bunyan' ).createLo gger({
  51       name:  'vista-mul tidivision -subsystem '
  52   }));
  53  
  54   describe(' vista-mult idivision- subsystem' , function () {
  55       descri be('getSub systemConf ig', funct ion() {
  56           it ('returns  the correc t healthch eck', func tion() {
  57                var conf ig = multi divisional Subsystem. getSubsyst emConfig(a pp, logger );
  58                expect(c onfig).not .to.be.nul l();
  59                expect(c onfig.heal thcheck).n ot.to.be.u ndefined() ;
  60                expect(c onfig.heal thcheck.na me).eql('v ista-multi division-s ubsystem') ;
  61           }) ;
  62  
  63           it ('does not  define a  healthchec k interval ', functio n() {
  64                var conf ig = multi divisional Subsystem. getSubsyst emConfig(a pp, logger );
  65                expect(c onfig.time out).to.be .undefined ();
  66           }) ;
  67       });
  68  
  69  
  70       descri be('parseV istaDivisi onResults' , function () {
  71           it ('correctl y parses a  valid div ision', fu nction() {
  72                var koda kString =  '3\r\n507^ CAMP BEE^5 07^1\r\n61 3^MARTINSB URG VAMC^6 13\r\n1710 2^WASHINGT ON^688\r\n ';
  73                var pars eResult =  multidivis ionalSubsy stem._pars eVistaDivi sionResult s(kodakStr ing);
  74                expect(p arseResult  instanceo f Array).t o.be.true( );
  75                expect(p arseResult .length).t o.equal(3) ;
  76                expect(p arseResult [2]).to.eq ual('688') ;
  77                expect(p arseResult [0]).to.eq ual('507') ;
  78           }) ;
  79  
  80           it ('correctl y parses a  non-confi gured divi sion', fun ction() {
  81                var empt yDivision  = '0\r\n';
  82                var pars eResult =  multidivis ionalSubsy stem._pars eVistaDivi sionResult s(emptyDiv ision);
  83                expect(p arseResult  instanceo f Array).t o.be.true( );
  84                expect(p arseResult .length).t o.equal(0) ;
  85           }) ;
  86  
  87           it ('correctl y ignores  an invalid  division' , function () {
  88                var koda kString =  '3\r\n507C AMP BEE507 1\r\n613^M ARTINSBURG  VAMC^613\ r\n17102^W ASHINGTON^ 688\r\nNON  EMPTY FOO TER';
  89                var pars eResult =  multidivis ionalSubsy stem._pars eVistaDivi sionResult s(kodakStr ing);
  90                expect(p arseResult  instanceo f Array).t o.be.true( );
  91                expect(p arseResult .length).t o.equal(2) ;
  92                expect(p arseResult [1]).to.eq ual('688') ;
  93                expect(p arseResult [0]).to.eq ual('613') ;
  94           }) ;
  95       });
  96  
  97       descri be('compar eDivisionV alues', fu nction() {
  98           it ('returns  true when  vista and  config fil e values m atch', fun ction() {
  99                var conf igDivision s = [{
  100                    id:  '507',
  101                    name : 'A'
  102                }, {
  103                    id:  '613',
  104                    name : 'B'
  105                }, {
  106                    id:  '688',
  107                    name : 'C'
  108                }];
  109                var vist aDivisions  = ['507',  '613', '6 88'];
  110                var resu lt = multi divisional Subsystem. _compareDi visionValu es(configD ivisions,  vistaDivis ions, 'TES T', logger );
  111                expect(r esult).to. be.true();
  112           }) ;
  113  
  114           it ('ignores  malformed  config fil e values',  function( ) {
  115                var conf igDivision s = [{
  116                    id:  '507',
  117                    name : 'A'
  118                }, {
  119                    id:  '613',
  120                    name : 'B'
  121                }, {
  122                    id:  '688',
  123                    name : 'C'
  124                }, {
  125                    div:  '200',
  126                    name : 'Bob'
  127                }];
  128                var vist aDivisions  = ['507',  '613', '6 88'];
  129                var resu lt = multi divisional Subsystem. _compareDi visionValu es(configD ivisions,  vistaDivis ions, 'TES T', logger );
  130                expect(r esult).to. be.true();
  131           }) ;
  132  
  133           it ('returns  false when  config fi le contain s values t hat vista  does not',  function( ) {
  134                var conf igDivision s = [{
  135                    id:  '507',
  136                    name : 'A'
  137                }, {
  138                    id:  '613',
  139                    name : 'B'
  140                }, {
  141                    id:  '000',
  142                    name : 'C'
  143                }];
  144                var vist aDivisions  = ['507',  '613'];
  145                var resu lt = multi divisional Subsystem. _compareDi visionValu es(configD ivisions,  vistaDivis ions, 'TES T', logger );
  146                expect(r esult).to. be.false() ;
  147           }) ;
  148  
  149           it ('returns  true when  vista cont ains divis ions that  the config  file does  not', fun ction() {
  150                var conf igDivision s = [{
  151                    id:  '507',
  152                    name : 'A'
  153                }, {
  154                    id:  '613',
  155                    name : 'B'
  156                }, {
  157                    id:  '688',
  158                    name : 'C'
  159                }];
  160                var vist aDivisions  = ['507',  '613', '6 88', '901' , 'LOL'];
  161                var resu lt = multi divisional Subsystem. _compareDi visionValu es(configD ivisions,  vistaDivis ions, 'TES T', logger );
  162                expect(r esult).to. be.true();
  163           }) ;
  164       });
  165   });