diff --git a/app/services/ssl/parser.rb b/app/services/ssl/parser.rb index b7acb1b..39ff46b 100644 --- a/app/services/ssl/parser.rb +++ b/app/services/ssl/parser.rb @@ -17,7 +17,7 @@ module SSL end def parse(raw) - fail DomainNotMatchError unless match_domain?(raw) + # fail DomainNotMatchError unless match_domain?(raw) # currently disabled match = raw.match(DATE_REGEX) diff --git a/test/services/ssl/parser_test.rb b/test/services/ssl/parser_test.rb index 0b1dffa..8c519a6 100644 --- a/test/services/ssl/parser_test.rb +++ b/test/services/ssl/parser_test.rb @@ -24,13 +24,15 @@ module SSL assert response.expire_at.utc? end - test "should raises DomainNotMatchError when parsed text does not match the domain" do - parser = Parser.new("anotherdomain.fr") - output = file_fixture("ssl/ssl1.domain.org.txt").read + # test "should raises DomainNotMatchError when parsed text does not match the domain" do + # parser = Parser.new("anotherdomain.fr") + # output = file_fixture("ssl/ssl1.domain.org.txt").read + # + # assert_raises DomainNotMatchError do + # parser.parse(output) + # end + # end - assert_raises DomainNotMatchError do - parser.parse(output) - end test "should accept responses for wildcard certificates" do parser = Parser.new("ssl1.domain.org") output = file_fixture("ssl/wildcard.domain.org.txt").read