spf-query icon indicating copy to clipboard operation
spf-query copied to clipboard

Test failures

Open arcz opened this issue 5 months ago • 0 comments

There are 3 test failures:

  1) SPF::Query.query when the domain.com has a TXT record and when the record is split into multiple strings should join the strings, without spaces
     Failure/Error: expect(subject.query(domain)).to be == %{v=spf1 ip4:69.63.179.25 ip4:69.63.178.128/25 ip4:69.63.184.0/25 ip4:66.220.144.128/25 ip4:66.220.155.0/24 ip4:69.171.232.0/24 ip4:66.220.157.0/25 ip4:69.171.244.0/24 mx -all}

       expected: == "v=spf1 ip4:69.63.179.25 ip4:69.63.178.128/25 ip4:69.63.184.0/25 ip4:66.220.144.128/25 ip4:66.220.155.0/24 ip4:69.171.232.0/24 ip4:66.220.157.0/25 ip4:69.171.244.0/24 mx -all"
            got:    "v=spf1 ip4:66.220.144.128/25 ip4:66.220.155.0/24 ip4:66.220.157.0/25 ip4:69.63.178.128/25 ip4:69.63.181.0/24 ip4:69.63.184.0/25 ip4:69.171.232.0/24 ip4:69.171.244.0/23 -all"
     # ./spec/query_spec.rb:33:in `block (5 levels) in <top (required)>'

  2) SPF::Query.query when the domain has a SPF type record should prefer the TXT type record over other SPF records
     Failure/Error: expect(subject.query(domain)).to be == %{v=spf1 include:_spf.google.com include:mail.zendesk.com include:servers.mcsv.net include:aspmx.pardot.com -all}

       expected: == "v=spf1 include:_spf.google.com include:mail.zendesk.com include:servers.mcsv.net include:aspmx.pardot.com -all"
            got:    "v=spf1 include:spf.privateemail.com ~all"
     # ./spec/query_spec.rb:46:in `block (4 levels) in <top (required)>'

  3) SPF::Query::Record.query when given a domain without SPF should return nil
     Failure/Error: expect(subject).to be nil

       expected nil
            got #<SPF::Query::Record:45580> => #<SPF::Query::Record: v=spf1 redirect=_spf.mail.yahoo.com>
     # ./spec/record_spec.rb:201:in `block (4 levels) in <top (required)>'

arcz avatar Sep 12 '24 16:09 arcz