335. EPMO Open Source Coordination Office Redaction File Detail Report

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

335.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\tests\integration-tests\rdk\spec rdk_spec.rb Tue Dec 15 16:09:27 2015 UTC
2 rdk.zip\rdk\product\tests\integration-tests\rdk\spec rdk_spec.rb Wed Oct 4 12:27:54 2017 UTC

335.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 118
Changed 3 8
Inserted 0 0
Removed 0 0

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

335.4 Active regular expressions

No regular expressions were active.

335.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 rdk"  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           "c ontent" =>  "Hello Fu zzy Bunny! "
  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           ex pect(respo nse['conte nt']).to e q('Hello F uzzy Bunny !')
  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  => ' PW '
  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  PW ')
  61     end
  62  
  63   end