Skip to content

Commit

Permalink
Update Storage Auth spec for new Excon behaviour
Browse files Browse the repository at this point in the history
These authentication examples stopped matching has the `Host` headers
included the port, which changes by default in Excon v1.0.

Removing the examples allows the tests to pass with the latest versions.
  • Loading branch information
tokengeek committed Dec 10, 2024
1 parent 0763d3d commit f4281b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/fog/brightbox/storage/authentication_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
before do
stub_request(:get, "https://orbit.brightbox.com/v1")
.with(headers: {
"Host" => "orbit.brightbox.com:443",
"Host" => "orbit.brightbox.com",
"X-Auth-User" => "",
"X-Auth-Key" => ""
}).to_return(bad_url_response)
Expand All @@ -25,7 +25,7 @@
before do
stub_request(:get, "https://orbit.brightbox.com/v1")
.with(headers: {
"Host" => "orbit.brightbox.com:443",
"Host" => "orbit.brightbox.com",
"X-Auth-User" => "cli-12345",
"X-Auth-Key" => "12345"
}).to_return(authorized_response)
Expand All @@ -46,7 +46,7 @@
before do
stub_request(:get, "https://orbit.brightbox.com/v1")
.with(headers: {
"Host" => "orbit.brightbox.com:443",
"Host" => "orbit.brightbox.com",
"X-Auth-User" => "[email protected]",
"X-Auth-Key" => "abcde"
}).to_return(authorized_response)
Expand All @@ -69,7 +69,7 @@
before do
stub_request(:get, "https://orbit.brightbox.com/v1")
.with(headers: {
"Host" => "orbit.brightbox.com:443",
"Host" => "orbit.brightbox.com",
"X-Auth-User" => "[email protected]",
"X-Auth-Key" => "abcde"
}).to_return(unauthorized_response)
Expand Down

0 comments on commit f4281b1

Please sign in to comment.