Browse Source

Suppression de warnings

master
Jérémy Lecour 6 years ago
parent
commit
426b944b58
  1. 4
      test/cookies_test.rb
  2. 2
      test/http_cache_test.rb
  3. 6
      test/security_test.rb

4
test/cookies_test.rb

@ -16,7 +16,7 @@ class CookiesTest < Minitest::Test
"/faq",
].each do |path|
url = "https://#{domain}#{path}"
page = @agent.get(url)
@agent.get(url)
refute_has_session_cookie @agent, "_example_session", "for #{url}"
end
@ -28,7 +28,7 @@ class CookiesTest < Minitest::Test
"/store",
].each do |path|
url = "https://#{domain}#{path}"
page = @agent.get(url)
@agent.get(url)
assert_has_session_cookie @agent, "_example_session", "for #{url}"
end

2
test/http_cache_test.rb

@ -66,7 +66,7 @@ class HTTPCacheTest < Minitest::Test
flunk "Expected to find a Last-Modified header for #{url} on 1st visit"
end
if etag = etag_header(page1)
if etag_header(page1)
# il faut reinitialiser l'agent pour vider le cache et l'historique
@agent.reset
page2b = @agent.get(url, [], nil, {

6
test/security_test.rb

@ -15,19 +15,19 @@ class SecurityTest < Minitest::Test
def test_certificate
output = `#{check_ssl_cert_cmd(domain)}`
assert_match /\ASSL_CERT OK/, output, output
assert_match(/\ASSL_CERT OK/, output, output)
end
def test_accepts_tls_v1
output = `#{openssl_verify_cmd(domain, "-tls1")}`
assert_match /Verify return code: 0 \(ok\)/, output, "Expected to accept TLSv1"
assert_match(/Verify return code: 0 \(ok\)/, output, "Expected to accept TLSv1")
end
def test_refuse_ssl_v3
output = `#{openssl_verify_cmd(domain, "-ssl3")}`
assert_match /sslv3 alert handshake failure/, output, "Expected to refuse SSLv3"
assert_match(/sslv3 alert handshake failure/, output, "Expected to refuse SSLv3")
end
def test_hsts_header

Loading…
Cancel
Save