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

70.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\resources\permission-sets get-permission-sets-spec.js Mon Aug 28 19:41:48 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\resources\permission-sets get-permission-sets-spec.js Tue Oct 3 17:17:32 2017 UTC

70.2 Comparison summary

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

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

70.4 Active regular expressions

No regular expressions were active.

70.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 missionSet s = requir e('./get-p ermission- sets');
  7   var logger  = sinon.s tub(requir e('bunyan' ).createLo gger({
  8       name:  'get-permi ssion-sets '
  9   }));
  10  
  11   var permse ts = [
  12       {
  13           'u id': 'drum mer',
  14           'd escription ': 'The Me tronome of  the song.  This play er is resp onsible fo r timing,  but also t he basic g roove.',
  15           'e xample': ' Benny Greb , ',
  16           'l abel': 'Dr ummer',
  17           'n ote': 'Thi s player h as to keep  any bass  players in  check',
  18           'p ermissions ': [
  19                'one-sol o-per-song ',
  20                'fills-a s-needed'
  21           ],
  22           's tatus': 'a ctive',
  23           's ub-sets':  [],
  24           'v ersion': {
  25                'introdu ced': 'at  the beginn ing',
  26                'depreca ted': null
  27           }
  28       }, {
  29           'u id': 'bass ist',
  30           'd escription ': 'The li nk between  the drum  grove and  the notes  generated  by the gui ltars, lea d vocals a nd/or the  keyboards' ,
  31           'e xample': ' Bass playe rs never h ave names.  We are th e underdog s.',
  32           'l abel': 'Ba ss Guitari st',
  33           'n ote': 'Thi s player m akes a son g \'dancea ble\' or n ot',
  34           'p ermissions ': [
  35                'sit-in- corner',
  36                'one-sol o-per-ep'
  37           ],
  38           's tatus': 'a ctive',
  39           's ub-sets':  [],
  40           'v ersion': {
  41                'introdu ced': 'lon g ago',
  42                'depreca ted': null
  43           }
  44       }, {
  45           'u id': 'pian ist',
  46           'd escription ': 'Plays  bass lines  on the le ft hand wh ile playin g melody o n the righ t.',
  47           'e xample': ' Ray Charle s',
  48           'l abel': 'Pi anist',
  49           'n ote': 'Usu ally extre mely talen ted',
  50           'p ermissions ': [
  51                'play-it -all',
  52                'one-sol o-per-mome nt'
  53           ],
  54           's tatus': 'a ctive',
  55           's ub-sets':  [],
  56           'v ersion': {
  57                'introdu ced': 'whe never pian os became  a thing',
  58                'depreca ted': null
  59           }
  60       }
  61   ];
  62  
  63   describe(' Get Permis sion Sets' , function () {
  64       var re q;
  65       var re s;
  66  
  67       before Each(funct ion(done)  {
  68           re q = httpMo cks.create Request({
  69                method:  'GET',
  70                url: 're source/per mission-se ts/list'
  71           }) ;
  72           _. set(req, ' app.config .generalPu rposeJdsSe rver', {
  73                  baseUrl: ' http:// IP                ',
  74                urlLengt hLimit: 12 0
  75           }) ;
  76           _. set(req, ' audit', {} );
  77           _. set(req, ' logger', l ogger);
  78           re s = httpMo cks.create Response() ;
  79           do ne();
  80       });
  81  
  82       afterE ach(functi on(done) {
  83           no ck.cleanAl l();
  84           do ne();
  85       });
  86  
  87       it('re turns a li st of perm ission set s', functi on(done) {
  88             nock('http :// IP                ')
  89                .get('/p ermset/?fi lter=eq(%2 2status%22 %2C%22acti ve%22)')
  90                .reply(2 00, permse ts);
  91  
  92           re s.rdkSend  = function (response)  {
  93                _.each(r esponse, f unction(it em) {
  94                    expe ct(item).t o.have.pro perty('lab el');
  95                    expe ct(item).t o.have.pro perty('val ');
  96                    expe ct(item).t o.have.pro perty('per missions') ;
  97                });
  98                done();
  99           };
  100  
  101           ge tPermissio nSets(req,  res);
  102       });
  103  
  104       it('re turns a li st of perm ission set s', functi on(done) {
  105             nock('http :// IP                ')
  106                .get('/p ermset/?fi lter=eq(%2 2status%22 %2C%22acti ve%22)')
  107                .replyWi thError('T his combin ation was  not musica l');
  108  
  109           re s.rdkSend  = function (response)  {
  110                expect(r esponse).t o.match(/E rror retri eving Perm ission Set s List/);
  111                done();
  112           };
  113  
  114           ge tPermissio nSets(req,  res);
  115       });
  116   });