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

187.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\pick-list\progressnotes progress-notes-titles-endpoint-spec.js Mon Aug 28 19:41:48 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\pick-list\progressnotes progress-notes-titles-endpoint-spec.js Tue Oct 3 17:21:15 2017 UTC

187.2 Comparison summary

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

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

187.4 Active regular expressions

No regular expressions were active.

187.5 Comparison detail

  1   'use stric t';
  2  
  3   var endpoi nt = requi re('./prog ress-notes -titles-en dpoint');
  4   var asuPro cess = end point._asu Process;
  5  
  6   function d ummyLogFun ction(x) {
  7       //cons ole.log(x) ;
  8   }
  9  
  10   var dummyL ogger = {
  11       fatal:  dummyLogF unction,
  12       error:  dummyLogF unction,
  13       warn:  dummyLogFu nction,
  14       info:  dummyLogFu nction,
  15       debug:  dummyLogF unction,
  16       trace:  dummyLogF unction
  17   };
  18  
  19   describe(' progress-n otes-title s-endpoint ', functio n() {
  20       var mo ckConfigur ation = {
  21           as uServer: {
  22                  baseUrl: ' http:// IP             ',
  23                timeout:  '30000'
  24           }
  25       };
  26  
  27       var pr ogressNote s = [];
  28  
  29       before Each(funct ion() {
  30           pr ogressNote s = [{
  31                ien: '00 1'
  32           },  {
  33                ien: '00 2'
  34           }] ;
  35  
  36           si non.stub(a suProcess,  'evaluate ');
  37       });
  38  
  39       afterE ach(functi on() {
  40           as uProcess.e valuate.re store();
  41       });
  42  
  43       it('re sponds cor rectly (an d without  an error)  when all r esponses i nclude "ha sPermissio n = true"' , function (done) {
  44           as uProcess.e valuate.ca llsArgWith (5, null,  [
  45                [{
  46                    test Id: '1',
  47                    hasP ermission:  true
  48                }], [{
  49                    test Id: '2',
  50                    hasP ermission:  true
  51                }]
  52           ]) ;
  53  
  54           en dpoint._as uFilter(du mmyLogger,  mockConfi guration,  null, null , null, nu ll, '9E7A' , progress Notes, fun ction(err,  filteredR esults) {
  55                console. log(filter edResults,  'Bryce fo und these  dumb resul ts');
  56                expect(a suProcess. evaluate.c alledOnce) .to.be.tru e();
  57  
  58                expect(e rr).to.be. falsy();
  59  
  60                expect(f ilteredRes ults).to.b e.truthy() ;
  61                expect(f ilteredRes ults.lengt h).to.be(2 );
  62                expect(f ilteredRes ults[0].as uApproved) .to.be.tru e();
  63  
  64                done();
  65           }) ;
  66       });
  67  
  68       it('re sponds cor rectly (an d without  an error)  when a res ponse incl udes "hasP ermission  = false"',  function( done) {
  69           pr ogressNote s.push({ie n: '003'}) ;
  70           as uProcess.e valuate.ca llsArgWith (5, null,  [
  71                [{
  72                    test Id: '1',
  73                    hasP ermission:  true
  74                }], [{
  75                    test Id: '2',
  76                    hasP ermission:  false
  77                }], [{
  78                    test Id: '3',
  79                    hasP ermission:  true
  80                }]
  81           ]) ;
  82  
  83           en dpoint._as uFilter(du mmyLogger,  mockConfi guration,  null, null , null, nu ll, '9E7A' , progress Notes, fun ction(err,  filteredR esults) {
  84                expect(a suProcess. evaluate.c alledOnce) .to.be.tru e();
  85  
  86                expect(e rr).to.be. falsy();
  87  
  88                expect(f ilteredRes ults).to.b e.truthy() ;
  89                expect(f ilteredRes ults.lengt h).to.be(2 );
  90  
  91                done();
  92           }) ;
  93       });
  94  
  95       it('re sponds wit h the expe cted error  message ( and doesn\ 't crash)  when an as uResponse  without a  "hasPermis sion" fiel d is recei ved', func tion(done)  {
  96           pr ogressNote s.push({ie n: '003'},  {ien: '00 4'});
  97  
  98           va r expected Error = 'p rogress-no tes-titles -endpoint. asuFilter  ERROR asuP rocess.eva luate.asuR esponse di dn\'t incl ude a hasP ermission:  [{"testId ":"3","jun k":"JUNK"} ]';
  99  
  100           as uProcess.e valuate.ca llsArgWith (5, expect edError);
  101  
  102           en dpoint._as uFilter(du mmyLogger,  mockConfi guration,  null, null , null, nu ll, '9E7A' , progress Notes, fun ction(err,  filteredR esults) {
  103                expect(a suProcess. evaluate.c alledOnce) .to.be.tru e();
  104  
  105                expect(f ilteredRes ults).to.b e.falsy();
  106  
  107                expect(e rr).to.be. truthy();
  108                expect(e rr).to.mat ch(/asuRes ponse didn 't include  a hasPerm ission: \[ {"testId": "3","junk" :"JUNK"}\] /);
  109  
  110                done();
  111           }) ;
  112       });
  113   });