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

109.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-action-valid-vista-writer-itest-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-action-valid-vista-writer-itest-spec.js Tue Oct 3 18:56:59 2017 UTC

109.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 216
Changed 2 12
Inserted 0 0
Removed 0 0

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

109.4 Active regular expressions

No regular expressions were active.

109.5 Comparison detail

  1   'use stric t';
  2  
  3   var saveVi staWriter  = require( '../lab/or ders-lab-v ista-write r');
  4   var action ValidVista Writer = r equire('./ orders-com mon-action -valid-vis ta-writer' );
  5   var rpcCli entFactory  = require ('./../../ core/rpc-c lient-fact ory');
  6   var async  = require( 'async');
  7  
  8   var saveWr itebackCon text = {
  9         pid: ' R E D A CTED ;100615',
  10       vistaC onfig: {
  11             host: ' IP          ',
  12             port:  PORT ,
  13             accessCode : ' PL      ',
  14             verifyCode : ' PL      !!',
  15             localIP: ' IP        ',
  16           lo calAddress : 'localho st',
  17           no Reconnect:  true
  18       },
  19       model:  {
  20           'd fn': '1007 16',
  21           'p rovider':  '100000002 71',
  22           'l ocation':  '129',
  23           'o rderDialog ': 'LR OTH ER LAB TES TS',
  24           'd isplayGrou p': '5',
  25           'q uickOrderD ialog': '2 ',
  26           'i nputList':  [{
  27                'inputKe y': '4',
  28                'inputVa lue': '299 '
  29           },  {
  30                'inputKe y': '126',
  31                'inputVa lue': '1'
  32           },  {
  33                'inputKe y': '127',
  34                'inputVa lue': '72'
  35           },  {
  36                'inputKe y': '180',
  37                'inputVa lue': '9'
  38           },  {
  39                'inputKe y': '28',
  40                'inputVa lue': 'WC'
  41           },  {
  42                'inputKe y': '6',
  43                'inputVa lue': 'NOW '
  44           },  {
  45                'inputKe y': '29',
  46                'inputVa lue': '28'
  47           }] ,
  48           'k ind': 'Lab oratory'
  49       },
  50       logger : sinon.st ub(require ('bunyan') .createLog ger({
  51           na me: 'check -vista-wri ter'
  52       }))
  53   };
  54  
  55   describe(' write-back  orders co mmon actio n valid vi sta writer  integrati on tests',  function( ) {
  56  
  57       afterE ach(functi on() {
  58           rp cClientFac tory.close RpcClient( saveWriteb ackContext );
  59       });
  60  
  61       //Test  w/o requi red order  ID
  62       it('te sts that c heck order  returns e rror', fun ction(done ) {
  63           th is.timeout (50000);
  64           ac tionValidV istaWriter .actionVal id(null, ' ES', '1000 0000271',  saveWriteb ackContext , function (err, resu lt) {
  65                expect(e rr).to.be. truthy();
  66                done();
  67           }) ;
  68       });
  69  
  70       //This  test will  create ne w lab orde rs in Vist a.  Uncomm ent to tes t locally
  71       it.ski p('tests t hat action  valid ret urns no er ror', func tion(done)  {
  72           th is.timeout (15000);
  73           as ync.waterf all([
  74                function (callback)  {
  75                    save VistaWrite r.create(s aveWriteba ckContext,  function( err, resul t) {
  76                         expect(err ).to.be.fa lsy();
  77                         expect(sav eWriteback Context.vp rResponse) .to.be.tru thy();
  78                         var result Json = JSO N.parse(sa veWritebac kContext.v prResponse );
  79                         var orderI d;
  80                         if (result Json.local Id) {
  81                             orderI d = result Json.local Id + ';1';
  82                             callba ck(null, o rderId, nu ll);
  83                         } else {
  84                             callba ck(null, n ull, resul tJson.orde rCheckList );
  85                         }
  86                    });
  87                },
  88                function (orderId,  orderCheck List, call back) {
  89                    if ( !orderId)  {
  90                         saveWriteb ackContext .model.ord erCheckLis t = orderC heckList;
  91                         saveVistaW riter.crea te(saveWri tebackCont ext, funct ion(err, r esult) {
  92                             expect (err).to.b e.falsy();
  93                             expect (saveWrite backContex t.vprRespo nse).to.be .truthy();
  94                             var re sultJson =  JSON.pars e(saveWrit ebackConte xt.vprResp onse);
  95                             callba ck(null, r esultJson. localId +  ';1');
  96                         });
  97                    } el se {
  98                         callback(n ull, order Id);
  99                    }
  100                },
  101                function (orderId,  callback)  {
  102                    cons ole.log('= ==== order  ID: ' + o rderId);
  103                    acti onValidVis taWriter.a ctionValid (orderId,  'ES', '100 00000238',  saveWrite backContex t, functio n(err, res ult) {
  104                         expect(err ).not.to.b e.truthy() ;
  105                         callback(' pau');
  106                    });
  107                }
  108           ],  function( err, resul ts) {
  109                done();
  110           }) ;
  111       });
  112  
  113  
  114   });