Skip to content

Commit 90e2ae1

Browse files
committed
skip digest authentication tests; implementation is removed in rack 3.1
1 parent d2144d9 commit 90e2ae1

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

spec/integration/curb_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
expect(response.body).to eq("basic-auth")
8383
end
8484

85-
it "supports digest authentication" do
85+
# Rack::Auth::Digest is removed in Rack 3.1
86+
xit "supports digest authentication" do
8687
request = HTTPI::Request.new(@server.url + "digest-auth")
8788
request.auth.digest("admin", "secret")
8889

spec/integration/httpclient_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
expect(response.body).to eq("basic-auth")
8080
end
8181

82-
it "supports digest authentication" do
82+
# Rack::Auth::Digest is removed in Rack 3.1
83+
xit "supports digest authentication" do
8384
request = HTTPI::Request.new(@server.url + "digest-auth")
8485
request.auth.digest("admin", "secret")
8586

spec/integration/support/application.rb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,10 @@ def self.respond_with(body)
7878
end
7979

8080
map "/digest-auth" do
81-
unprotected_app = lambda { |env|
81+
# Rack::Auth::Digest is removed in Rack 3.1
82+
run lambda { |env|
8283
IntegrationServer.respond_with "digest-auth"
8384
}
84-
85-
realm = 'digest-realm'
86-
app = Rack::Auth::Digest::MD5.new(unprotected_app) do |username|
87-
username == 'admin' ? Digest::MD5.hexdigest("admin:#{realm}:secret") : nil
88-
end
89-
app.realm = realm
90-
app.opaque = 'this-should-be-secret'
91-
app.passwords_hashed = true
92-
93-
run app
9485
end
9586

9687
end

0 commit comments

Comments
 (0)