Skip to content

Commit

Permalink
rm digest_auth tests since rack 3.1 removes support
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai committed Jul 8, 2024
1 parent 85c8e1a commit 4dd4abf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
16 changes: 0 additions & 16 deletions spec/integration/support/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,6 @@ def self.respond_with(options = {})
}
end

map "/digest_auth" do
unprotected_app = lambda { |env|
IntegrationServer.respond_with :body => "digest-auth"
}

realm = 'digest-realm'
app = Rack::Auth::Digest::MD5.new(unprotected_app) do |username|
username == 'admin' ? Digest::MD5.hexdigest("admin:#{realm}:secret") : nil
end
app.realm = realm
app.opaque = 'this-should-be-secret'
app.passwords_hashed = true

run app
end

map "/multipart" do
run lambda { |env|
boundary = 'mimepart_boundary'
Expand Down
9 changes: 0 additions & 9 deletions spec/savon/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,6 @@ def to_s
end
end

context "global :digest_auth" do
it "sets the digest auth credentials" do
client = new_client(:endpoint => @server.url(:digest_auth), :digest_auth => ["admin", "secret"])
response = client.call(:authenticate)

expect(response.http.body).to eq("digest-auth")
end
end

context "global :ntlm" do
it "sets the ntlm credentials to use" do
credentials = ["admin", "secret"]
Expand Down

0 comments on commit 4dd4abf

Please sign in to comment.