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

113.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-discontinue-details-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-discontinue-details-vista-writer-itest-spec.js Tue Oct 3 18:59:30 2017 UTC

113.2 Comparison summary

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

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

113.4 Active regular expressions

No regular expressions were active.

113.5 Comparison detail

  1   'use stric t';
  2  
  3   var saveVi staWriter  = require( '../lab/or ders-lab-v ista-write r');
  4   var discon tinueDetai lsVistaWri ter = requ ire('./ord ers-common -discontin ue-details -vista-wri ter');
  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 check  session v ista write r integrat ion 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  IDs
  62       it('te sts that c heck sessi on returns  error', f unction(do ne) {
  63           th is.timeout (50000);
  64           di scontinueD etailsVist aWriter(sa veWritebac kContext,  function(e rr, result ) {
  65                expect(s aveWriteba ckContext. vprRespons e).to.be.e mpty();
  66                done();
  67           }) ;
  68       });
  69  
  70  
  71       //This  test will  create ne w lab orde rs in Vist a.  Uncomm ent to tes t locally
  72       it.ski p('tests t hat discon tinue deta ils return s successf ul vprResp onse', fun ction(done ) {
  73           th is.timeout (20000);
  74           as ync.waterf all([
  75                function (callback)  {
  76                    save VistaWrite r.create(s aveWriteba ckContext,  function( err, resul t) {
  77                         expect(err ).to.be.fa lsy();
  78                         expect(sav eWriteback Context.vp rResponse) .to.be.tru thy();
  79                         var result Json = JSO N.parse(sa veWritebac kContext.v prResponse );
  80                         callback(n ull, resul tJson.orde rCheckList );
  81                    });
  82                },
  83                function (orderChec kList, cal lback) {
  84                    if ( !orderChec kList) {
  85                         saveVistaW riter.crea te(saveWri tebackCont ext, funct ion(err, r esult) {
  86                             expect (err).to.b e.falsy();
  87                             expect (saveWrite backContex t.vprRespo nse).to.be .truthy();
  88                             var re sultJson =  JSON.pars e(saveWrit ebackConte xt.vprResp onse);
  89                             callba ck(null, r esultJson. orderCheck List);
  90                         });
  91                    } el se {
  92                         callback(n ull, order CheckList) ;
  93                    }
  94                },
  95                function (orderChec kList, cal lback) {
  96                    save WritebackC ontext.mod el.orderCh eckList =  orderCheck List;
  97                    save VistaWrite r.create(s aveWriteba ckContext,  function( err, resul t) {
  98                         expect(err ).to.be.fa lsy();
  99                         expect(sav eWriteback Context.vp rResponse) .to.be.tru thy();
  100                         var result Json = JSO N.parse(sa veWritebac kContext.v prResponse );
  101                         callback(n ull, resul tJson.loca lId + ';1' );
  102                    });
  103                },
  104                function (orderId,  callback)  {
  105                    cons ole.log('= ==== order  ID: ' + o rderId);
  106                    save WritebackC ontext.mod el.orderId s = [order Id];
  107                    disc ontinueDet ailsVistaW riter(save WritebackC ontext, fu nction(err , result)  {
  108                         expect(err ).not.to.b e.truthy() ;
  109                         expect(sav eWriteback Context.vp rResponse) .not.to.be .empty();
  110                         expect(sav eWriteback Context.vp rResponse[ 0].orderId ).to.equal (orderId);
  111                         console.lo g('detail:  ' + saveW ritebackCo ntext.vprR esponse[0] .detail);
  112                         expect(sav eWriteback Context.vp rResponse[ 0].detail) .not.to.be .null();
  113                         console.lo g('hash: '  + saveWri tebackCont ext.vprRes ponse[0].h ash);
  114                         expect(sav eWriteback Context.vp rResponse[ 0].hash).n ot.to.be.n ull();
  115                         callback(' pau');
  116                    });
  117                }
  118           ],  function( err, resul ts) {
  119                done();
  120           }) ;
  121       });
  122  
  123   });