Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures #16

Open
arcz opened this issue Sep 12, 2024 · 0 comments
Open

Test failures #16

arcz opened this issue Sep 12, 2024 · 0 comments

Comments

@arcz
Copy link
Member

arcz commented Sep 12, 2024

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)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant