Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3Rabbit committed Feb 28, 2024
1 parent a3e42e2 commit 24b209c
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions tests/http_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ def rate(result_dict, _):
sub_rating.set_integrity_and_security(5.0)
sub_rating.set_standards(5.0)
rating += sub_rating
elif 'DNSSEC-IGNORE' in result_dict[domain]['features']:
sub_rating = Rating(_, review_show_improvements_only)
sub_rating.set_overall(5.0)
sub_rating.set_integrity_and_security(5.0)
sub_rating.set_standards(5.0)
rating += sub_rating
else:
sub_rating = Rating(_, review_show_improvements_only)
sub_rating.set_overall(1.0)
Expand Down Expand Up @@ -387,21 +393,25 @@ def check_dnssec(hostname, result_dict):
domain = domainA
domain_entry = result_dict[domain]

if hostname != domain:
domain_entry['features'].append('DNSSEC-IGNORE')
continue

# validate_dnssec(domain)
print('# {0}'.format(domain))

if 'svanalytics.piwik.pro' == domainA:
domain = 'piwik.pro'
domain_entry = {
'name': domain,
'protocols': [],
'schemes': [],
'ip-versions': [],
'transport-layers': [],
'features': [],
'urls': []
}
new_entries.append(domain_entry)
# if 'svanalytics.piwik.pro' == domainA:
# domain = 'piwik.pro'
# domain_entry = {
# 'name': domain,
# 'protocols': [],
# 'schemes': [],
# 'ip-versions': [],
# 'transport-layers': [],
# 'features': [],
# 'urls': []
# }
# new_entries.append(domain_entry)
# domain_entry = result_dict[domain]

dnskey = dns_lookup(domain, dns.rdatatype.DNSKEY)
Expand Down

0 comments on commit 24b209c

Please sign in to comment.