64. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/2/2017 7:00:31 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.

64.1 Files compared

# Location File Last Modified
1 cds.zip\cds\product\tests\integration-tests\spec opencds_spec.rb Wed Dec 16 14:11:22 2015 UTC
2 cds.zip\cds\product\tests\integration-tests\spec opencds_spec.rb Wed Sep 27 16:38:03 2017 UTC

64.2 Comparison summary

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

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

64.4 Active regular expressions

No regular expressions were active.

64.5 Comparison detail

  1   require 'r spec'
  2   require 'h ttparty'
  3   require 'j son'
  4   require 'p p'
  5  
  6  
  7   url = ENV[ 'BACKEND_B ASEURL'] | | 'https:/ / IP        '
  8  
  9   describe " Test openc ds" do
  10     
  11     #before  :each do
  12     #end
  13  
  14     #after : each do
  15     #end
  16  
  17     it "shou ld greet w ith defaul t name" do
  18           re sponse = H TTParty.ge t(
  19         "#{u rl}/hello- world",
  20         :que ry => {}, 
  21         :hea ders => {
  22           'C ontent-Typ e' => 'app lication/j son',
  23           'A ccept' =>  'applicati on/json'
  24         }
  25       )
  26           ex pect(respo nse.code). to eq(200)
  27           ex pect(respo nse['conte nt']).to e q('Hello,  Stranger!' )
  28     end
  29  
  30     it "shou ld say wha t I tell i t to" do
  31           re sponse = H TTParty.po st(
  32         "#{u rl}/hello- world",
  33         :bod y => {
  34           "i d" => 1,
  35             "content"  => "Hello  D u N z S    
u   n   !"
  36         }.to _json, 
  37         :hea ders => {
  38           'C ontent-Typ e' => 'app lication/j son',
  39           'A ccept' =>  'applicati on/json'
  40         }
  41       )
  42           ex pect(respo nse.code). to eq(200)
  43             expect(res ponse['con tent']).to  eq('Hello   D u N z S    
u   n   !')
  44     end
  45  
  46     it "shou ld greet w ith with p rotected e ndpoint" d o
  47       respon se = HTTPa rty.get(
  48         "#{u rl}/protec ted", 
  49         :bas ic_auth =>  {
  50               :username  =>    ' DNS     ',
  51              :password  => 'secret '
  52         },
  53         :que ry => {}, 
  54         :hea ders => {
  55           'C ontent-Typ e' => 'tex t/plain',
  56           'A ccept' =>  'text/plai n'
  57         }
  58       )
  59       expect (response. code).to e q(200)
  60         expect(res ponse.pars ed_respons e).to eq(' Hey there,   DNS     . You know  the secre t!')
  61     end
  62  
  63   end