73. EPMO Open Source Coordination Office Redaction File Detail Report

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

73.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\resources\permissions get-permissions-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\resources\permissions get-permissions-spec.js Tue Oct 3 17:17:35 2017 UTC

73.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 124
Changed 3 6
Inserted 0 0
Removed 0 0

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

73.4 Active regular expressions

No regular expressions were active.

73.5 Comparison detail

  1   'use stric t';
  2  
  3   var _ = re quire('lod ash');
  4   var nock =  require(' nock');
  5   var httpMo cks = requ ire('node- mocks-http ');
  6   var getPer missions =  require(' ./get-perm issions');
  7   var testDa ta = requi re('./perm issions-te st-data.js on');
  8   var logger  = sinon.s tub(requir e('bunyan' ).createLo gger({
  9       name:  'get-permi ssions'
  10   }));
  11  
  12   var permis sions = {
  13       items:  testData. permission s
  14   };
  15  
  16   describe(' Get Permis sions', fu nction() {
  17       var re q;
  18       var re s;
  19  
  20       before Each(funct ion() {
  21           re q = httpMo cks.create Request({
  22                method:  'PUT',
  23                url: 're source/per mission-se ts/edit'
  24           }) ;
  25           _. set(req, ' app.config .generalPu rposeJdsSe rver', {
  26                  baseUrl: ' http:// IP                ',
  27                urlLengt hLimit: 12 0
  28           }) ;
  29           _. set(req, ' audit', {} );
  30           _. set(req, ' logger', l ogger);
  31           re s = httpMo cks.create Response() ;
  32       });
  33  
  34       afterE ach(functi on() {
  35           no ck.cleanAl l();
  36       });
  37  
  38       it('re turns data  successfu lly', func tion(done)  {
  39             nock('http :// IP                ')
  40                .get('/p ermission/ ?filter=eq (%22status %22%2C%22a ctive%22)' )
  41                .reply(2 00, permis sions);
  42  
  43           re s.rdkSend  = function (response)  {
  44                expect(_ .size(resp onse)).to. be(2);
  45                expect(_ .get(respo nse, [0, ' uid'])).to .match(/on e-solo-per -song/);
  46                expect(_ .get(respo nse, [1, ' uid'])).to .match(/fi lls-as-nee ded/);
  47                done();
  48           };
  49  
  50           ge tPermissio ns(req, re s);
  51       });
  52  
  53       it('re turns an e rror when  an error o ccurs', fu nction(don e) {
  54             nock('http :// IP                ')
  55                .get('/p ermission/ ?filter=eq (%22status %22%2C%22a ctive%22)' )
  56                .replyWi thError('S ometimes t he servers  are angry ');
  57  
  58           re s.rdkSend  = function (response)  {
  59                expect(r esponse).t o.match(/E rror/);
  60                done();
  61           };
  62  
  63           ge tPermissio ns(req, re s);
  64       });
  65   });