844. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/3/2017 11:16:01 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.

844.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\osync\appointments appointments-itest-spec.js Mon Jul 10 17:46:22 2017 UTC
2 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\osync\appointments appointments-itest-spec.js Tue Oct 3 12:51:04 2017 UTC

844.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 164
Changed 2 16
Inserted 0 0
Removed 0 0

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

844.4 Active regular expressions

No regular expressions were active.

844.5 Comparison detail

  1   'use stric t';
  2   /*global d escribe, i t, before,  beforeEac h, after,  afterEach,  spyOn, ex pect, runs , waitsFor  */
  3  
  4   require('. ./../../.. /../env-se tup');
  5   var _ = re quire('und erscore');
  6  
  7   var log =  require(gl obal.VX_DU MMIES + 'd ummy-logge r');
  8  
  9   var handle r = requir e(global.V X_HANDLERS  + 'osync/ appointmen ts/appoint ments');
  10  
  11   var Router  = require (global.VX _DUMMIES +  'publishe rRouterDum my');
  12   var Publis her = requ ire(global .VX_DUMMIE S + 'publi sherDummy' );
  13   var Update r = requir e(global.V X_DUMMIES  + 'JobStat usUpdaterD ummy');
  14  
  15   var wConfi g = requir e(global.V X_ROOT + ' worker-con fig');
  16  
  17   var mockCo nfig = {
  18       delay:  5,
  19       rpcCon text: 'HMP  SYNCHRONI ZATION CON TEXT',
  20       vistaS ites: _.de faults(wCo nfig.vista Sites, {
  21           '9 E7A': {
  22                'name':  'panorama' ,
  23                  'host': ' IP          ',
  24                  'port':  REDACTED ,
  25                  'accessCod e': ' REDACTED ',
  26                  'verifyCod e': ' REDACTED ',
  27                'localIP ': '127.0. 0.1',
  28                'station Number': 5 00,
  29                'localAd dress': 'l ocalhost',
  30                'connect Timeout':  3000,
  31                'sendTim eout': 200 00
  32           },
  33           'C 877': {
  34                'name':  'kodak',
  35                  'host': ' IP          ',
  36                  'port':  REDACTED ,
  37                  'accessCod e': ' REDACTED ',
  38                  'verifyCod e': ' REDACTED ',
  39                'localIP ': '127.0. 0.1',
  40                'station Number': 5 00,
  41                'localAd dress': 'l ocalhost',
  42                'connect Timeout':  3000,
  43                'sendTim eout': 200 00
  44           }
  45       }),
  46       'appoi ntmentsOpt ions': {
  47           'd aysInFutur e': 1
  48       }
  49   };
  50  
  51   var mockHa ndlerCallb ack = {
  52       callba ck: functi on(error,  response)  {
  53       }
  54   };
  55  
  56   describe(' appointmen ts-handler  integrati on test',  function()  {
  57       before Each(funct ion() {
  58           sp yOn(mockHa ndlerCallb ack, 'call back');
  59       });
  60  
  61       it('ha s the corr ect job va lues', fun ction() {
  62           va r done = f alse;
  63           va r testData  = null;
  64           va r testErro r = null;
  65  
  66           ru ns(functio n() {
  67                var job  = {type: ' appointmen ts', siteI d: '9E7A',  clinic: ' 123'};
  68  
  69                var mock Environmen t = {};
  70                var mock Publisher  = new Publ isher(log,  mockConfi g, job.typ e);
  71                var mock Router = n ew Router( log, mockC onfig, Upd ater, mock Publisher) ;
  72                mockEnvi ronment.pu blisherRou ter = mock Router;
  73                handler( log, mockC onfig, moc kEnvironme nt, job, f unction(er ror, data)  {
  74                    done  = true;
  75                    test Data = dat a;
  76                    test Error = er ror;
  77                    mock HandlerCal lback.call back();
  78                });
  79           }) ;
  80  
  81           wa itsFor(fun ction() {
  82                return d one;
  83           },  'Callback  not calle d', 50000) ;
  84  
  85           ru ns(functio n() {
  86                expect(m ockHandler Callback.c allback).t oHaveBeenC alled();
  87                expect(t estError). toBe(undef ined);
  88           }) ;
  89       });
  90   });