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

112.1 Files compared

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

112.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 6 262
Changed 5 26
Inserted 0 0
Removed 0 0

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

112.4 Active regular expressions

No regular expressions were active.

112.5 Comparison detail

  1   'use stric t';
  2  
  3   var saveVi staWriter  = require( '../lab/or ders-lab-v ista-write r');
  4   var detail VistaWrite r = requir e('./order s-common-d etail-vist a-writer') ;
  5   var rpcCli entFactory  = require ('./../../ core/rpc-c lient-fact ory');
  6   var async  = require( 'async');
  7  
  8   var detail WritebackC ontext = {
  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       logger : sinon.st ub(require ('bunyan') .createLog ger({
  20           na me: 'detai l-vista-wr iter'
  21       }))
  22   };
  23  
  24   var saveWr itebackCon text = {
  25         pid: ' R E D A CTED ;100615',
  26       vistaC onfig: {
  27             host: ' IP          ',
  28             port:  PORT ,
  29             accessCode : ' PL      ',
  30             verifyCode : ' PL      !!',
  31             localIP: ' IP        ',
  32           lo calAddress : 'localho st'
  33       },
  34       model:  {
  35           'd fn': '1006 15',
  36           'p rovider':  '100000002 38',
  37           'l ocation':  '285',
  38           'o rderDialog ': 'LR OTH ER LAB TES TS',
  39           'd isplayGrou p': '5',
  40           'q uickOrderD ialog': '2 ',
  41           'i nputList':  [{
  42                'inputKe y': '4',
  43                'inputVa lue': '350 '
  44           },  {
  45                'inputKe y': '126',
  46                'inputVa lue': '1'
  47           },  {
  48                'inputKe y': '127',
  49                'inputVa lue': '72'
  50           },  {
  51                'inputKe y': '180',
  52                'inputVa lue': '9'
  53           },  {
  54                'inputKe y': '28',
  55                'inputVa lue': 'SP'
  56           },  {
  57                'inputKe y': '6',
  58                'inputVa lue': 'TOD AY'
  59           },  {
  60                'inputKe y': '29',
  61                'inputVa lue': '28'
  62           }] ,
  63           'l ocalId': ' 12519',
  64             'uid': 'ur n:va:order : R E D A CTED :100615:12 519',
  65           'k ind': 'Lab oratory'
  66       },
  67       logger : sinon.st ub(require ('bunyan') .createLog ger({
  68           na me: 'detai l-vista-wr iter'
  69       }))
  70   };
  71  
  72   describe(' write-back  orders co mmon detai l vista wr iter integ ration tes ts', funct ion() {
  73       afterE ach(functi on() {
  74           rp cClientFac tory.close RpcClient( detailWrit ebackConte xt);
  75       });
  76  
  77       //Test  w/o requi red resour ceId
  78       it('te sts that d etail orde r returns  error with  no vprRes ponse', fu nction(don e) {
  79           th is.timeout (5000);
  80           de tailVistaW riter(deta ilWritebac kContext,  function(e rr, result ) {
  81                expect(e rr).to.be. truthy();
  82                expect(d etailWrite backContex t.vprRespo nse).to.be .undefined ();
  83                expect(d etailWrite backContex t.vprModel ).to.be.un defined();
  84                done();
  85           }) ;
  86       });
  87  
  88  
  89       //This  test will  create a  new lab or der in Vis ta.  Uncom ment to te st locally
  90       it.ski p('tests t hat detail  order ret urns succe ssful deta il', funct ion(done)  {
  91           th is.timeout (20000);
  92           as ync.waterf all([
  93                function (callback)  {
  94                    save VistaWrite r.create(s aveWriteba ckContext,  function( err, resul t) {
  95                         expect(err ).to.be.fa lsy();
  96                         expect(sav eWriteback Context.vp rResponse) .to.be.tru thy();
  97                         var result Json = JSO N.parse(sa veWritebac kContext.v prResponse );
  98                         var orderI d;
  99                         if (result Json.local Id) {
  100                             orderI d = result Json.local Id + ';1';
  101                             callba ck(null, o rderId, nu ll);
  102                         } else {
  103                             callba ck(null, n ull, resul tJson.orde rCheckList );
  104                         }
  105                    });
  106                },
  107                function (orderId,  orderCheck List, call back) {
  108                    if ( !orderId)  {
  109                         saveWriteb ackContext .model.ord erCheckLis t = orderC heckList;
  110                         saveVistaW riter.crea te(saveWri tebackCont ext, funct ion(err, r esult) {
  111                             expect (err).to.b e.falsy();
  112                             expect (saveWrite backContex t.vprRespo nse).to.be .truthy();
  113                             var re sultJson =  JSON.pars e(saveWrit ebackConte xt.vprResp onse);
  114                             callba ck(null, r esultJson. localId +  ';1');
  115                         });
  116                    } el se {
  117                         callback(n ull, order Id);
  118                    }
  119                },
  120                function (orderId,  callback)  {
  121                    cons ole.log('= ==== order  ID: ' + o rderId);
  122                    deta ilWritebac kContext.r esourceId  = orderId;
  123                    deta ilVistaWri ter(detail WritebackC ontext, fu nction(err , result)  {
  124                         expect(err ).to.be.fa lsy();
  125                         expect(det ailWriteba ckContext. vprRespons e).to.be.t ruthy();
  126                         expect(det ailWriteba ckContext. vprModel). to.be.unde fined();
  127                         callback(n ull, order Id);
  128                    });
  129                },
  130                function (orderId,  callback)  {
  131                    deta ilVistaWri ter.getDet ail(orderI d, detailW ritebackCo ntext, fun ction(err,  result) {
  132                         expect(err ).to.be.fa lsy();
  133                         expect(res ult).not.t o.be.null( );
  134                         console.lo g('detail:  ' + resul t);
  135                         expect(det ailWriteba ckContext. vprModel). to.be.unde fined();
  136                         callback(n ull, order Id);
  137                    });
  138                }
  139           ],  function( err, resul ts) {
  140                done();
  141           }) ;
  142       });
  143  
  144   });