-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Storage Auth spec for new Excon behaviour
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
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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) | ||
|
@@ -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) | ||
|
@@ -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) | ||
|