spec/fog/storage/brightbox_spec.rb in fog-brightbox-1.0.0 vs spec/fog/storage/brightbox_spec.rb in fog-brightbox-1.1.0

- old
+ new

@@ -87,11 +87,11 @@ describe "when configured scoped to a specific account" do let(:settings) do { :brightbox_client_id => "app-12345", :brightbox_secret => "12345", - :brightbox_username => "user@example.com", + :brightbox_username => "user@example.test", :brightbox_password => "abcde", :brightbox_account => "acc-abcde" } end @@ -109,11 +109,11 @@ describe "when account is not configured" do let(:settings) do { :brightbox_client_id => "app-12345", :brightbox_secret => "12345", - :brightbox_username => "user@example.com", + :brightbox_username => "user@example.test", :brightbox_password => "abcde" } end before do @@ -202,11 +202,11 @@ describe "when configured with user details and expired tokens" do let(:settings) do { :brightbox_client_id => "app-12345", :brightbox_secret => "12345", - :brightbox_username => "user@example.com", + :brightbox_username => "user@example.test", :brightbox_password => "12345", :brightbox_access_token => "1234567890abcdefghijklmnopqrstuvwxyz", :brightbox_refresh_token => "1234567890abcdefghijklmnopqrstuvwxyz", :brightbox_storage_url => "https://files.gb2.brightbox.com", :brightbox_storage_management_url => "https://files.gb2.brightbox.com/v1/acc-12345" @@ -219,10 +219,10 @@ with(:headers => { "X-Auth-Token" => "1234567890abcdefghijklmnopqrstuvwxyz" }). to_return(unauthorized_response) # The reauthentication stub_request(:get, "https://files.gb2.brightbox.com/v1"). - with(:headers => { "X-Auth-User" => "user@example.com", "X-Auth-Key" => "12345" }). + with(:headers => { "X-Auth-User" => "user@example.test", "X-Auth-Key" => "12345" }). to_return(authorized_response) # Repeated request stub_request(:get, "https://files.gb2.brightbox.com/v1/acc-12345/fnord"). with(:headers => { "X-Auth-Token" => "abcdefghijklmnopqrstuvwxyz1234567890" }).