846. EPMO Open Source Coordination Office Redaction File Detail Report

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

846.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\publish-vx-data-change-request publish-vx-data-change-request-handler-itest-spec.js Mon Jul 10 17:46:22 2017 UTC
2 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tests\integrationtests\handlers\publish-vx-data-change-request publish-vx-data-change-request-handler-itest-spec.js Tue Oct 3 12:52:02 2017 UTC

846.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 622
Changed 1 2
Inserted 0 0
Removed 0 0

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

846.4 Active regular expressions

No regular expressions were active.

846.5 Comparison detail

  1   'use stric t';
  2  
  3   require('. ./../../.. /env-setup ');
  4  
  5   var logger  = require (global.VX _DUMMIES +  'dummy-lo gger');
  6   // logger  = require( 'bunyan'). createLogg er({
  7   //     nam e: 'publis h-vx-data- change-req uest-handl er-itest-s pec',
  8   //     src : true,
  9   //     lev el: 'debug '
  10   // });
  11   var testCo nfig = req uire(globa l.VX_INTTE STS + 'tes t-config') ;
  12   var vx_syn c_ip = tes tConfig.vx syncIP;
  13   var handle r = requir e(global.V X_HANDLERS  + 'publis h-vx-data- change-req uest/publi sh-vx-data -change-re quest-hand ler');
  14   var testHa ndler = re quire(glob al.VX_INTT ESTS + 'fr amework/ha ndler-test -framework ').testHan dler;
  15   var tubena me = 'vx-s ync-test';
  16  
  17   var job =  {
  18       type:  'publish-d ata-change -event',
  19       patien tIdentifie r: { type:  'pid', va lue: 'DOD; 4325678' } ,
  20       jpid:  '39b4d293- 90dc-442c- aa9c-4c581 91340ea',
  21       rootJo bId: '1',
  22       dataDo main: 'doc ument',
  23       record : {
  24           re ferenceDat eTime: '20 1006221129 45',
  25           co des: [ {}  ],
  26           lo calTitle:  'Progress  Note',
  27           do cumentType Name: 'Pro gress Note ',
  28           st atus: 'com pleted',
  29           st atusName:  'completed ',
  30           fa cilityName : 'DOD',
  31           fa cilityCode : 'DOD',
  32           ui d: 'urn:va :document: DOD:432567 8:10000042 03',
  33           pi d: 'DOD;43 25678',
  34           te xt: [ {} ] ,
  35           do dComplexNo teUri: 'ht tp://127.0 .0.1:8089/ documents? dir=444f44 3b34333235 363738/100 0004203&fi le=da39a3e e5e6b4b0d3 255bfef956 01890afd80 709.html',
  36           st ampTime: ' 2015050612 5559',
  37           is Interdisci plinary: ' false',
  38           su mmary: 'Pr ogress Not e',
  39           ki nd: 'Progr ess Note',
  40           st atusDispla yName: 'Co mpleted',
  41           cl inicians:  []
  42       }
  43   };
  44  
  45   var host =  vx_sync_i p;
  46   var port =   PORT ;
  47  
  48   describe(' publish-vx -data-chan ge-request -handler.j s', functi on() {
  49  
  50       it('no  publish t ubes', fun ction() {
  51           va r emptyTub es = [];
  52           te stPublishT ubes(empty Tubes, emp tyTubes);
  53       });
  54  
  55       it('pu blish to s ingle tube ', functio n() {
  56           va r singleTu bes = ['te st-publish ed-change- event'];
  57           te stPublishT ubes(singl eTubes, si ngleTubes) ;
  58  
  59       });
  60  
  61       it('pu blish mult iple tubes ', functio n() {
  62           va r multiTub es = ['tes t-publishe d-change-e vent-1', ' test-publi shed-chang e-event-2' , 'test-pu blished-ch ange-event -3'];
  63           te stPublishT ubes(multi Tubes, mul tiTubes);
  64       });
  65  
  66       it('pu blish to s ingle tube  with empt y event fi lter: One  job publis hed', func tion() {
  67           va r singleTu bes = {
  68                'test-pu blished-ch ange-event ' : {
  69                    even tFilter: {
  70                         generic: {
  71                         }
  72                    }
  73                }
  74           };
  75           te stPublishT ubes(singl eTubes, [' test-publi shed-chang e-event']) ;
  76       });
  77  
  78       it('pu blish to s ingle tube  with even t site fil ter: No jo b publishe d', functi on() {
  79           va r singleTu bes = {
  80                'test-pu blished-ch ange-event ' : {
  81                    even tFilter: {
  82                         generic: {
  83                             sites:  [
  84                                 'C 877'
  85                             ]
  86                         }
  87                    }
  88                }
  89           };
  90           te stPublishT ubes(singl eTubes, [] );
  91       });
  92  
  93       it('pu blish to s ingle tube  with even t site fil ter: One j ob publish ed', funct ion() {
  94           va r singleTu bes = {
  95                'test-pu blished-ch ange-event ' : {
  96                    even tFilter: {
  97                         generic: {
  98                             sites:  [
  99                                 'D OD'
  100                             ]
  101                         }
  102                    }
  103                }
  104           };
  105           te stPublishT ubes(singl eTubes, [' test-publi shed-chang e-event']) ;
  106       });
  107  
  108       it('pu blish to s ingle tube  with even t domain f ilter: No  job publis hed', func tion() {
  109           va r singleTu bes = {
  110                'test-pu blished-ch ange-event ' : {
  111                    even tFilter: {
  112                         generic: {
  113                             domain s: [
  114                                 'i mage'
  115                             ]
  116                         }
  117                    }
  118                }
  119           };
  120           te stPublishT ubes(singl eTubes, [] );
  121       });
  122  
  123       it('pu blish to s ingle tube  with even t domain f ilter: One  job publi shed', fun ction() {
  124           va r singleTu bes = {
  125                'test-pu blished-ch ange-event ' : {
  126                    even tFilter: {
  127                         generic: {
  128                             domain s: [
  129                                 'd ocument'
  130                             ]
  131                         }
  132                    }
  133                }
  134           };
  135           te stPublishT ubes(singl eTubes, [' test-publi shed-chang e-event']) ;
  136       });
  137  
  138       it('pu blish to s ingle tube  with cust omized fil ter: One j ob publish ed', funct ion() {
  139           va r singleTu bes = {
  140                'test-pu blished-ch ange-event ' : {
  141                    even tFilter: {
  142                         customized : 'filter/ dummy-filt er'
  143                    }
  144                }
  145           };
  146           te stPublishT ubes(singl eTubes, [' test-publi shed-chang e-event']) ;
  147       });
  148  
  149  
  150       it('pu blish to s ingle tube  with inva lid custom ized filte r: No job  published' , function () {
  151           va r singleTu bes = {
  152                'test-pu blished-ch ange-event ' : {
  153                    even tFilter: {
  154                         customized : 'filter/ xx/yy/zz/f oo-non-exi st'
  155                    }
  156                }
  157           };
  158           te stPublishT ubes(singl eTubes, [] );
  159       });
  160  
  161       it('pu blish to m ultiple tu be with em pty event  filter: Al l jobs are  published ', functio n() {
  162           va r multiTub es = {
  163                'test-pu blished-ch ange-event -1' : {
  164                    even tFilter: {
  165                         generic: {
  166                         }
  167                    }
  168                },
  169                'test-pu blished-ch ange-event -2' : {
  170                    even tFilter: {
  171                         generic: {
  172                         }
  173                    }
  174                },
  175                'test-pu blished-ch ange-event -3' : {
  176                    even tFilter: {
  177                         generic: {
  178                         }
  179                    }
  180                }
  181           };
  182           te stPublishT ubes(multi Tubes, ['t est-publis hed-change -event-1',  'test-pub lished-cha nge-event- 2', 'test- published- change-eve nt-3']);
  183       });
  184  
  185       it('pu blish to m ultiple tu be with se lective si te filter:   Only Fil tered Jobs  are publi shed', fun ction() {
  186           va r multiTub es = {
  187                'test-pu blished-ch ange-event -1' : {
  188                    even tFilter: {
  189                         generic: {
  190                             sites:  ['DOD']
  191                         }
  192                    }
  193                },
  194                'test-pu blished-ch ange-event -2' : {
  195                    even tFilter: {
  196                         generic: {
  197                             sites:  ['C877']
  198                         }
  199                    }
  200                },
  201                'test-pu blished-ch ange-event -3' : {
  202                    even tFilter: {
  203                         generic: {
  204                             sites:  ['9E7A']
  205                         }
  206                    }
  207                }
  208           };
  209           te stPublishT ubes(multi Tubes, ['t est-publis hed-change -event-1'] );
  210       });
  211  
  212       it('pu blish to m ultiple tu be with se lective do main filte r:  Only F iltered Jo bs are pub lished', f unction()  {
  213           va r multiTub es = {
  214                'test-pu blished-ch ange-event -1' : {
  215                    even tFilter: {
  216                         generic: {
  217                             domain s: ['image ']
  218                         }
  219                    }
  220                },
  221                'test-pu blished-ch ange-event -2' : {
  222                    even tFilter: {
  223                         generic: {
  224                             domain s: ['docum ent']
  225                         }
  226                    }
  227                },
  228                'test-pu blished-ch ange-event -3' : {
  229                    even tFilter: {
  230                         generic: {
  231                             domain s: ['vital ']
  232                         }
  233                    }
  234                }
  235           };
  236           te stPublishT ubes(multi Tubes, ['t est-publis hed-change -event-2'] );
  237       });
  238  
  239       it('pu blish to m ultiple tu be with cu stomized f ilter:  On ly Filtere d Jobs are  published ', functio n() {
  240           va r multiTub es = {
  241                'test-pu blished-ch ange-event -1' : {
  242                    even tFilter: {
  243                         customized : 'filter/ xx/yy/zz/f oo-non-exi st'
  244                    }
  245                },
  246                'test-pu blished-ch ange-event -2' : {
  247                    even tFilter: {
  248                         customized : 'filter/ xx/yy/zz/f oo-non-exi st'
  249                    }
  250                },
  251                'test-pu blished-ch ange-event -3' : {
  252                    even tFilter: {
  253                         generic: {
  254                             custom ized: 'fil ter/dummy- filter'
  255                         }
  256                    }
  257                }
  258           };
  259           te stPublishT ubes(multi Tubes, ['t est-publis hed-change -event-3'] );
  260       });
  261  
  262       it('pu blish to m ultiple tu be with co mbined fil ter:  Only  Filtered  Jobs are p ublished',  function( ) {
  263           va r multiTub es = {
  264                'test-pu blished-ch ange-event -1' : {
  265                    even tFilter: {
  266                         generic: {
  267                             domain s: ['docum ent']
  268                         }
  269                    }
  270                },
  271                'test-pu blished-ch ange-event -2' : {
  272                    even tFilter: {
  273                         generic: {
  274                             sites:  ['DOD']
  275                         }
  276                    }
  277                },
  278                'test-pu blished-ch ange-event -3' : {
  279                    even tFilter: {
  280                         customized : 'filter/ xx/yy/zz/f oo-non-exi st'
  281                    }
  282                }
  283           };
  284           te stPublishT ubes(multi Tubes, ['t est-publis hed-change -event-1',  'test-pub lished-cha nge-event- 2']);
  285       });
  286   });
  287  
  288   function t estPublish Tubes(tube Config, ex pectedJobT ypes) {
  289       var co mpleted =  false;
  290       var re sponse;
  291       var co nfig = {
  292           pu blishTubes : tubeConf ig
  293       };
  294  
  295       var en vironment  = {
  296           me trics: log ger
  297       };
  298       testHa ndler(hand ler, logge r, config,  environme nt, host,  port, tube name, job,  expectedJ obTypes, n ull, funct ion (resul t) {
  299           re sponse = r esult;
  300           co mpleted =  true;
  301       });
  302  
  303       waitsF or(functio n () {
  304           re turn compl eted;
  305       }, 're sponse fro m activity  managemen t test han dler timed  out.', 10 000);
  306  
  307       runs(f unction ()  {
  308           ex pect(respo nse).toBeT ruthy();
  309       });
  310   }
  311  
  312