81. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:35 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.

81.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\resources order-detail-resource-spec.js Mon Aug 21 12:51:07 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\resources order-detail-resource-spec.js Tue Oct 3 18:28:46 2017 UTC

81.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 10 166
Changed 9 30
Inserted 0 0
Removed 0 0

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

81.4 Active regular expressions

No regular expressions were active.

81.5 Comparison detail

  1   'use stric t';
  2  
  3   var RpcCli ent = requ ire('vista -js').RpcC lient;
  4   var orderD etail = re quire('./o rder-detai l-resource ');
  5  
  6   describe(' Order Deta il Resourc e', functi on() {
  7       it('te sts that g etResource Config() i s setup co rrectly fo r orderDet ail', func tion() {
  8           va r resource s = orderD etail.getR esourceCon fig();
  9           ex pect(resou rces[0].na me).to.equ al('order- detail');
  10           ex pect(resou rces[0].pa th).to.equ al('/detai l/:uid');
  11           ex pect(resou rces[0].su bsystems). not.to.be. undefined( );
  12           ex pect(resou rces[0].ge t).not.to. be.undefin ed();
  13       });
  14   });
  15  
  16   describe(' Order Deta il', funct ion() {
  17  
  18       before Each(funct ion() {
  19           si non.stub(R pcClient,  'callRpc') ;
  20       });
  21  
  22       var re q = {
  23           in terceptorR esults: {
  24                patientI dentifiers : {
  25                    dfn:  3,
  26                      site: ' R E D A CTED '
  27                }
  28           },
  29           se ssion: {
  30                 user: {
  31                      username:  ' R E D A CTED ',
  32                      password:  ' REDACTED ',
  33                      site: ' R E D A CTED '
  34                }
  35           },
  36           lo gger: {
  37                info: fu nction(log ) {
  38                    retu rn log;
  39                },
  40                debug: f unction(de bug) {
  41                    retu rn debug;
  42                }
  43           },
  44           ap p: {
  45                config:  {
  46                    rpcC onfig: {
  47                         context: ' ORQOR DETA IL',
  48                          siteHash:  ' R E D A CTED '
  49                    },
  50                    vist aSites: {
  51                          ' R E D A CTED ': {
  52                             name:  'PANORAMA' ,
  53                             divisi on: [{'id' :'500','na me':'PANOR AMA'}],
  54                               host: ' IP          ',
  55                               port:  PORT ,
  56                             produc tion: fals e,
  57                               accessCode : ' REDACT ',
  58                               verifyCode : ' REDACTED '
  59                         },
  60                         'C877': {
  61                             name:  'KODAK',
  62                             divisi on: [{'id' :'507','na me':'KODAK '},{'id':' 613','name ':'MARTINS BURG'},{'i d':'688',' name':'WAS HINGTON'}] ,
  63                               host: ' IP          ',
  64                               port:  PORT ,
  65                             produc tion: fals e,
  66                               accessCode : ' REDACT ',
  67                               verifyCode : ' REDACTED '
  68                         }
  69                    }
  70                }
  71           }
  72       };
  73  
  74       var re s = {
  75           rd kSend: fun ction(mess age, error ) {
  76                return;
  77           }
  78       };
  79  
  80       it('te sts getOrd erDetail()  for a con nected sit e called s uccessfull y', functi on() {
  81           re q.params =  {
  82                  uid:'urn:v a:order: R E D A CTED :3:12727'
  83           };
  84           or derDetail. getOrderDe tail(req,  res);
  85           ex pect(RpcCl ient.callR pc.called) .to.be.tru e();
  86       });
  87  
  88       it('te sts getOrd erDetail()  for a non -connected  site call ed success fully', fu nction() {
  89           re s.rdkSend  = function (body) {
  90                expect(b ody.data). to.be('Det ails for o rder #7890  are not a vailable f rom the re mote locat ion at thi s time.');
  91           };
  92           re q.params =  {
  93                uid: 'ur n:va:order :DOD:12345 6:7890'
  94           };
  95           or derDetail. getOrderDe tail(req,  res);
  96           ex pect(RpcCl ient.callR pc.called) .to.be.fal se();
  97       });
  98   });