859. EPMO Open Source Coordination Office Redaction File Detail Report

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

859.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\subsystems\vista vista-subscribe-itest-spec.js Mon Jul 10 17:46:22 2017 UTC
2 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\subsystems\vista vista-subscribe-itest-spec.js Tue Oct 3 12:55:48 2017 UTC

859.2 Comparison summary

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

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

859.4 Active regular expressions

No regular expressions were active.

859.5 Comparison detail

  1   'use stric t';
  2  
  3   //-------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -
  4   // This is  an integr ation test  for the v ista-subsc ribe.
  5   //
  6   // Author:  Les Westb erg
  7   //-------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -
  8  
  9   var _ = re quire('und erscore');
  10  
  11   require('. ./../../.. /env-setup ');
  12   var VistaC lient = re quire(glob al.VX_SUBS YSTEMS + ' vista/vist a-client') ;
  13   var dummyL ogger = re quire(glob al.VX_DUMM IES + 'dum my-logger' );
  14   // dummyLo gger = req uire('buny an').creat eLogger({n ame: 'vist a-record-p oller-ites t-spec', l evel: 'deb ug'});
  15  
  16   var JdsCli ent = requ ire(global .VX_SUBSYS TEMS + 'jd s/jds-clie nt');
  17   var val =  require(gl obal.VX_UT ILS + 'obj ect-utils' ).getPrope rty;
  18   var wConfi g = requir e(global.V X_ROOT + ' worker-con fig');
  19  
  20   var vistaI dValue = ' 9E7A';
  21   var dfnVal ue = '3';
  22  
  23   function s etUpEnviro nment() {
  24           va r config =  {
  25                    'vis taSites':  {
  26                             '9E7A' : _.defaul ts(wConfig .vistaSite s['9E7A'],  {
  27                                      'name':  'panorama' ,
  28                                       'host': ' IP          ',
  29                                       'port':  PORT ,
  30                                       'accessCod e': ' REDACT ',
  31                                       'verifyCod e': ' REDACTED ',
  32                                      'localIP ': '127.0. 0.1',
  33                                      'localAd dress': 'l ocalhost',
  34                                      'connect Timeout':  3000,
  35                                      'sendTim eout': 100 00
  36                             }),
  37                             'C877' : _.defaul ts(wConfig .vistaSite s.C877, {
  38                                      'name':  'kodak',
  39                                       'host': ' IP          ',
  40                                       'port':  PORT ,
  41                                       'accessCod e': ' REDACT ',
  42                                       'verifyCod e': ' REDACTED ',
  43                                      'localIP ': '127.0. 0.1',
  44                                      'localAd dress': 'l ocalhost',
  45                                      'connect Timeout':  3000,
  46                                      'sendTim eout': 100 00
  47                             })
  48                    },
  49                    'hmp .server.id ': 'hmp-de velopment- box',
  50                    'hmp .version':  '0.7-S65' ,
  51                    'hmp .batch.siz e': '1000' ,
  52                    'hmp .extract.s chema': '3 .001'
  53           };
  54  
  55           va r environm ent = {
  56                    vist aClient: n ew VistaCl ient(dummy Logger, du mmyLogger,  config),
  57                    jds:  new JdsCl ient(dummy Logger, du mmyLogger,  config)
  58           };
  59  
  60           re turn envir onment;
  61   }
  62  
  63   describe(' vista-subs cribe.js',  function( ) {
  64       descri be('getIds ', functio n() {
  65           it ('accurate ly retriev es corresp onding ids  for 9E7A; 3', functi on() {
  66                var envi ronment =  setUpEnvir onment();
  67                var comp leted = fa lse;
  68                runs(fun ction() {
  69                    envi ronment.vi staClient. getIds('9E 7A', '3',  wConfig.vi staSites[' 9E7A'].sta tionNumber , function (error, re sponse) {
  70                         expect(err or).toBeNu ll();
  71                         expect(res ponse).toB eTruthy();
  72                         var ids =  response.s plit('\r\n ');
  73                         expect(_.i sArray(ids )).toBe(tr ue);
  74                         //console. log('ids:  %j', ids);
  75                         expect(ids ).toContai n('10108V4 20871^NI^U SVHA^200M^ A');
  76                         expect(ids ).toContai n('3^PI^US VHA^500^A' );
  77                         expect(ids ).toContai n('3^PI^US VHA^507^A' );
  78                         expect(ids ).toContai n('32758^P I^USVHA^74 2V1^A');
  79                         expect(ids ).toContai n('19^PI^U SVHA^536^A ');
  80                         expect(ids ).toContai n('0000000 003^NI^USD OD^200DOD^ A');
  81                         expect(ids ).toContai n('38^PI^U SVHA^547^A ');
  82                         expect(ids ).toContai n('28^PI^U SVHA^551^A ');
  83                         completed  = true;
  84                    });
  85                });
  86  
  87                waitsFor (function( ) {
  88                    retu rn complet ed;
  89                });
  90           }) ;
  91       });
  92  
  93           de scribe('ge tDemograph ics', func tion() {
  94                    it(' Happy Path ', functio n() {
  95                             var co mpleted =  false;
  96                             var ac tualError;
  97                             var ac tualRespon se;
  98                             runs(f unction()  {
  99                                      var envi ronment =  setUpEnvir onment();
  100                                      environm ent.vistaC lient.getD emographic s(vistaIdV alue, dfnV alue, func tion(error , response ) {
  101                                               actualErro r = error;
  102                                               actualResp onse = res ponse;
  103                                               completed  = true;
  104                                      });
  105                             });
  106  
  107                             waitsF or(functio n() {
  108                                      return c ompleted;
  109                             }, 're sponse fro m getDemog raphics(.. .) timed o ut.', 1000 0);
  110  
  111                             runs(f unction()  {
  112                                      expect(a ctualError ).toBeNull ();
  113                                      expect(a ctualRespo nse).toBeT ruthy();
  114                                      expect(v al(actualR esponse, ' familyName ')).toEqua l('EIGHT') ;
  115                                      expect(v al(actualR esponse, ' fullName') ).toEqual( 'EIGHT,PAT IENT');
  116                                      expect(v al(actualR esponse, ' icn')).toE qual('1010 8V420871') ;
  117                                      expect(v al(actualR esponse, ' localId')) .toEqual(3 );
  118                                      expect(v al(actualR esponse, ' pid')).toE qual('9E7A ;3');
  119                                      // dummy Logger.deb ug('vista- subscribe- itest-spec .getDemogr aphics: Go t response : %j', act ualRespons e);
  120                             });
  121                    });
  122           }) ;
  123   });