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

88.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\subsystems\jds jds-sync-config-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\subsystems\jds jds-sync-config-spec.js Tue Oct 3 18:32:16 2017 UTC

88.2 Comparison summary

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

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

88.4 Active regular expressions

No regular expressions were active.

88.5 Comparison detail

  1   'use stric t';
  2  
  3   var jdsSyn cConfig =  require('. /jds-sync- config');
  4  
  5   describe(' jds-sync-c onfig\'s',  function( ) {
  6       var re q;
  7  
  8       before Each(funct ion() {
  9           re q = buildR equest();
  10       });
  11  
  12       descri be('getSyn cConfig',  function()  {
  13           it ('should u se the app  config\'s  timeout',  function( ) {
  14                var conf ig = jdsSy ncConfig.g etSyncConf ig('loadPa tient', re q);
  15                expect(c onfig.time out).to.eq ual(req.ap p.config.j dsSync.set tings.time outMillis) ;
  16           }) ;
  17  
  18           it ('should u se the app \'s server  config',  function()  {
  19                req.app. config.vxS yncServer. baseUrl =  'http://te stHost';
  20                var conf ig = jdsSy ncConfig.g etSyncConf ig('loadPa tient', re q);
  21                expect(c onfig.base Url).to.eq ual('http: //testHost ');
  22           }) ;
  23  
  24           it ('should d eep clone  the config ', functio n() {
  25                var conf ig = jdsSy ncConfig.g etSyncConf ig('loadPa tient', re q);
  26                config.w rong = tru e;
  27                config =  jdsSyncCo nfig.getSy ncConfig(' loadPatien t', req);
  28                expect(c onfig.wron g).to.be.u ndefined() ;
  29           }) ;
  30       });
  31  
  32       descri be('setupA udit', fun ction() {
  33           it ('should s et the aud it categor y and pid' , function () {
  34                var pid  = 'test;id ';
  35                jdsSyncC onfig.setu pAudit(pid , req);
  36                expect(r eq.audit.l ogCategory ).to.equal ('SYNC');
  37                expect(r eq.audit.p atientId). to.equal(p id);
  38           }) ;
  39  
  40           it ('shouldn\ 't overwri te with a  missing pi d', functi on() {
  41                req.audi t.patientI d = 'origi nal';
  42                jdsSyncC onfig.setu pAudit(nul l, req);
  43                expect(r eq.audit.l ogCategory ).to.equal ('SYNC');
  44                expect(r eq.audit.p atientId). to.equal(' original') ;
  45           }) ;
  46       });
  47  
  48       functi on buildRe quest(requ est) {
  49           if  (!request ) {
  50                request  = {};
  51           }
  52  
  53           re quest.logg er = {
  54                trace: f unction(){ },
  55                debug: f unction(){ },
  56                info: fu nction(){} ,
  57                warn: fu nction(){} ,
  58                error: f unction(){ }
  59           };
  60  
  61           re quest.audi t = {};
  62  
  63           re quest.app  = {
  64                config:  {
  65                    jdsS erver: {
  66                         host: 'jds host',
  67                         port: 1
  68                    },
  69                    vxSy ncServer:  {
  70                         host: 'vxs ynchost',
  71                         port: 2
  72                    },
  73                    hmpS erver: {
  74                         host: 'hmp host',
  75                         port: 3,
  76                          accessCode : ' R E D A CTED ;500',
  77                          verifyCode : ' REDACTED ; REDACTED '
  78                    },
  79                    jdsS ync: {
  80                         settings:  {
  81                             timeou tMillis: 1 00,
  82                             waitMi llis: 40
  83                         }
  84                    },
  85                    vist aSites: {
  86                          ' R E D A CTED ': {},
  87                         'C877': {}
  88                    }
  89                },
  90                subsyste ms: {}
  91           };
  92  
  93           re turn reque st;
  94       }
  95   });