17. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/27/2017 9:44:49 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.

17.1 Files compared

# Location File Last Modified
1 adk\adk\product\tests\acceptance-tests\features\steps\helper HTTPartyWithBasicAuth.rb Tue Dec 15 14:06:56 2015 UTC
2 adk\adk\product\tests\acceptance-tests\features\steps\helper HTTPartyWithBasicAuth.rb Tue Sep 26 13:12:37 2017 UTC

17.2 Comparison summary

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

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

17.4 Active regular expressions

No regular expressions were active.

17.5 Comparison detail

  1   require "h ttparty"
  2  
  3   path = Fil e.expand_p ath '..',  __FILE__
  4   $LOAD_PATH .unshift p ath unless  $LOAD_PAT H.include? (path)
  5   require "D efaultLogi n.rb"
  6   require "T estSupport .rb"
  7   require "D omAccess.r b"
  8   #require " PatientPic kerDomElem ents.rb"
  9  
  10   class HTTP artyWithBa sicAuth
  11     include  HTTParty
  12       @@auth = {  :username  => " DNS          ", :passwo rd => " IP      !!" }
  13  
  14     @@time_s tart = Tim e.new
  15     @@time_d one = Time .new
  16      
  17     def self .time_elap sed_last_c all
  18       return  @@time_do ne - @@tim e_start
  19     end
  20     
  21     def self .post_with _authoriza tion(path)
  22       # "Aut horization ", "Basic  QjM2Mjs1MD A6cHUxMjM0 O3B1MTIzNC Eh"
  23       # dire ctory = po st(path, {  :verify = > false, : headers =>  @@header,   :basic_a uth => @@a uth })
  24       @@time _start = T ime.new
  25       direct ory = post (path, { : verify =>  false, :ba sic_auth = > @@auth,  :timeout = > 60 })
  26       @@time _done = Ti me.new
  27       return  directory
  28     end
  29  
  30     def self .get_with_ authorizat ion(path)
  31       #  @re sponse = H TTParty.ge t(@dataHre f, { :veri fy => fals e, :header s => { 'Ac cept' => ' applicatio n/json' },  :basic_au th => auth  })
  32  
  33       # dire ctory = ge t(path, {  :verify =>  false, :h eaders =>  @@header,   :basic_au th => @@au th})
  34       @@time _start = T ime.new
  35       direct ory = get( path, { :v erify => f alse, :bas ic_auth =>  @@auth, : timeout =>  60 })
  36       @@time _done = Ti me.new
  37       return  directory
  38     end
  39  
  40     def self .get_with_ authorizat ion_for_us er(path, u ser, pass)
  41       @@time _start = T ime.new
  42       auth =  { :userna me => user , :passwor d => pass  }
  43       direct ory = get( path, { :v erify => f alse, :bas ic_auth =>  auth, :ti meout => 6 0 })
  44       @@time _done = Ti me.new
  45       return  directory
  46     end
  47  
  48     def self .put_with_ authorizat ion(path)
  49       @@time _start = T ime.new
  50       direct ory = put( path, { :v erify => f alse, :bas ic_auth =>  @@auth, : timeout =>  60 })
  51       @@time _done = Ti me.new
  52       return  directory
  53     end
  54  
  55     def self .delete_wi th_authori zation(pat h)
  56       @@time _start = T ime.new
  57       direct ory = dele te(path, {  :verify = > false, : basic_auth  => @@auth ,  :timeou t => 60 })
  58       @@time _done = Ti me.new
  59       return  directory
  60     end
  61   end