-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(webconnectivitylte): handle site with no IP addrs
This diff improves webconnectivitylte and minipipeline to correctly handle the case where a website has no configured IP addresses but the domain for the website exists. Let's also add QA test cases to make sure we don't regress. Part of ooni/probe#2652.
- Loading branch information
1 parent
2cc9231
commit b854219
Showing
9 changed files
with
1,010 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
261 changes: 261 additions & 0 deletions
261
internal/minipipeline/testdata/webconnectivity/generated/websiteDownNoAddrs/analysis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,261 @@ | ||
{ | ||
"ControlExpectations": { | ||
"DNSAddresses": [], | ||
"FinalResponseFailure": "dns_lookup_error" | ||
}, | ||
"DNSLookupSuccess": [], | ||
"DNSLookupSuccessWithInvalidAddresses": [], | ||
"DNSLookupSuccessWithValidAddress": [], | ||
"DNSLookupSuccessWithBogonAddresses": [], | ||
"DNSLookupSuccessWithInvalidAddressesClassic": [], | ||
"DNSLookupSuccessWithValidAddressClassic": [], | ||
"DNSLookupUnexpectedFailure": [], | ||
"DNSLookupUnexplainedFailure": [], | ||
"DNSExperimentFailure": "dns_no_answer", | ||
"DNSLookupExpectedFailure": [ | ||
2, | ||
3 | ||
], | ||
"DNSLookupExpectedSuccess": [], | ||
"TCPConnectExpectedFailure": [], | ||
"TCPConnectUnexpectedFailure": [], | ||
"TCPConnectUnexpectedFailureDuringWebFetch": [], | ||
"TCPConnectUnexpectedFailureDuringConnectivityCheck": [], | ||
"TCPConnectUnexplainedFailure": [], | ||
"TCPConnectUnexplainedFailureDuringWebFetch": [], | ||
"TCPConnectUnexplainedFailureDuringConnectivityCheck": [], | ||
"TLSHandshakeExpectedFailure": [], | ||
"TLSHandshakeUnexpectedFailure": [], | ||
"TLSHandshakeUnexpectedFailureDuringWebFetch": [], | ||
"TLSHandshakeUnexpectedFailureDuringConnectivityCheck": [], | ||
"TLSHandshakeUnexplainedFailure": [], | ||
"TLSHandshakeUnexplainedFailureDuringWebFetch": [], | ||
"TLSHandshakeUnexplainedFailureDuringConnectivityCheck": [], | ||
"HTTPRoundTripUnexpectedFailure": [], | ||
"HTTPRoundTripUnexplainedFailure": [], | ||
"HTTPFinalResponseSuccessTLSWithoutControl": null, | ||
"HTTPFinalResponseSuccessTLSWithControl": null, | ||
"HTTPFinalResponseSuccessTCPWithoutControl": null, | ||
"HTTPFinalResponseSuccessTCPWithControl": null, | ||
"HTTPFinalResponseDiffBodyProportionFactor": null, | ||
"HTTPFinalResponseDiffStatusCodeMatch": null, | ||
"HTTPFinalResponseDiffTitleDifferentLongWords": null, | ||
"HTTPFinalResponseDiffUncommonHeadersIntersection": null, | ||
"Linear": [ | ||
{ | ||
"TagDepth": 0, | ||
"Type": 0, | ||
"Failure": "dns_no_answer", | ||
"TransactionID": 3, | ||
"TagFetchBody": null, | ||
"DNSTransactionID": 3, | ||
"DNSDomain": "www.example.com", | ||
"DNSLookupFailure": "dns_no_answer", | ||
"DNSQueryType": "A", | ||
"DNSEngine": "udp", | ||
"DNSResolvedAddrs": null, | ||
"IPAddressOrigin": null, | ||
"IPAddress": null, | ||
"IPAddressASN": null, | ||
"IPAddressBogon": null, | ||
"EndpointTransactionID": null, | ||
"EndpointProto": null, | ||
"EndpointPort": null, | ||
"EndpointAddress": null, | ||
"TCPConnectFailure": null, | ||
"TLSHandshakeFailure": null, | ||
"TLSServerName": null, | ||
"HTTPRequestURL": null, | ||
"HTTPFailure": null, | ||
"HTTPResponseStatusCode": null, | ||
"HTTPResponseBodyLength": null, | ||
"HTTPResponseBodyIsTruncated": null, | ||
"HTTPResponseHeadersKeys": null, | ||
"HTTPResponseLocation": null, | ||
"HTTPResponseTitle": null, | ||
"HTTPResponseIsFinal": null, | ||
"ControlDNSDomain": "www.example.com", | ||
"ControlDNSLookupFailure": "", | ||
"ControlDNSResolvedAddrs": [], | ||
"ControlTCPConnectFailure": null, | ||
"ControlTLSHandshakeFailure": null, | ||
"ControlHTTPFailure": "dns_lookup_error", | ||
"ControlHTTPResponseStatusCode": null, | ||
"ControlHTTPResponseBodyLength": null, | ||
"ControlHTTPResponseHeadersKeys": null, | ||
"ControlHTTPResponseTitle": null | ||
}, | ||
{ | ||
"TagDepth": 0, | ||
"Type": 0, | ||
"Failure": "dns_no_answer", | ||
"TransactionID": 3, | ||
"TagFetchBody": null, | ||
"DNSTransactionID": 3, | ||
"DNSDomain": "www.example.com", | ||
"DNSLookupFailure": "dns_no_answer", | ||
"DNSQueryType": "AAAA", | ||
"DNSEngine": "udp", | ||
"DNSResolvedAddrs": null, | ||
"IPAddressOrigin": null, | ||
"IPAddress": null, | ||
"IPAddressASN": null, | ||
"IPAddressBogon": null, | ||
"EndpointTransactionID": null, | ||
"EndpointProto": null, | ||
"EndpointPort": null, | ||
"EndpointAddress": null, | ||
"TCPConnectFailure": null, | ||
"TLSHandshakeFailure": null, | ||
"TLSServerName": null, | ||
"HTTPRequestURL": null, | ||
"HTTPFailure": null, | ||
"HTTPResponseStatusCode": null, | ||
"HTTPResponseBodyLength": null, | ||
"HTTPResponseBodyIsTruncated": null, | ||
"HTTPResponseHeadersKeys": null, | ||
"HTTPResponseLocation": null, | ||
"HTTPResponseTitle": null, | ||
"HTTPResponseIsFinal": null, | ||
"ControlDNSDomain": "www.example.com", | ||
"ControlDNSLookupFailure": "", | ||
"ControlDNSResolvedAddrs": [], | ||
"ControlTCPConnectFailure": null, | ||
"ControlTLSHandshakeFailure": null, | ||
"ControlHTTPFailure": "dns_lookup_error", | ||
"ControlHTTPResponseStatusCode": null, | ||
"ControlHTTPResponseBodyLength": null, | ||
"ControlHTTPResponseHeadersKeys": null, | ||
"ControlHTTPResponseTitle": null | ||
}, | ||
{ | ||
"TagDepth": 0, | ||
"Type": 0, | ||
"Failure": "dns_no_answer", | ||
"TransactionID": 2, | ||
"TagFetchBody": null, | ||
"DNSTransactionID": 2, | ||
"DNSDomain": "www.example.com", | ||
"DNSLookupFailure": "dns_no_answer", | ||
"DNSQueryType": "ANY", | ||
"DNSEngine": "getaddrinfo", | ||
"DNSResolvedAddrs": null, | ||
"IPAddressOrigin": null, | ||
"IPAddress": null, | ||
"IPAddressASN": null, | ||
"IPAddressBogon": null, | ||
"EndpointTransactionID": null, | ||
"EndpointProto": null, | ||
"EndpointPort": null, | ||
"EndpointAddress": null, | ||
"TCPConnectFailure": null, | ||
"TLSHandshakeFailure": null, | ||
"TLSServerName": null, | ||
"HTTPRequestURL": null, | ||
"HTTPFailure": null, | ||
"HTTPResponseStatusCode": null, | ||
"HTTPResponseBodyLength": null, | ||
"HTTPResponseBodyIsTruncated": null, | ||
"HTTPResponseHeadersKeys": null, | ||
"HTTPResponseLocation": null, | ||
"HTTPResponseTitle": null, | ||
"HTTPResponseIsFinal": null, | ||
"ControlDNSDomain": "www.example.com", | ||
"ControlDNSLookupFailure": "", | ||
"ControlDNSResolvedAddrs": [], | ||
"ControlTCPConnectFailure": null, | ||
"ControlTLSHandshakeFailure": null, | ||
"ControlHTTPFailure": "dns_lookup_error", | ||
"ControlHTTPResponseStatusCode": null, | ||
"ControlHTTPResponseBodyLength": null, | ||
"ControlHTTPResponseHeadersKeys": null, | ||
"ControlHTTPResponseTitle": null | ||
}, | ||
{ | ||
"TagDepth": 0, | ||
"Type": 0, | ||
"Failure": "dns_nxdomain_error", | ||
"TransactionID": 1, | ||
"TagFetchBody": null, | ||
"DNSTransactionID": 1, | ||
"DNSDomain": "www.example.com", | ||
"DNSLookupFailure": "dns_nxdomain_error", | ||
"DNSQueryType": "AAAA", | ||
"DNSEngine": "doh", | ||
"DNSResolvedAddrs": null, | ||
"IPAddressOrigin": null, | ||
"IPAddress": null, | ||
"IPAddressASN": null, | ||
"IPAddressBogon": null, | ||
"EndpointTransactionID": null, | ||
"EndpointProto": null, | ||
"EndpointPort": null, | ||
"EndpointAddress": null, | ||
"TCPConnectFailure": null, | ||
"TLSHandshakeFailure": null, | ||
"TLSServerName": null, | ||
"HTTPRequestURL": null, | ||
"HTTPFailure": null, | ||
"HTTPResponseStatusCode": null, | ||
"HTTPResponseBodyLength": null, | ||
"HTTPResponseBodyIsTruncated": null, | ||
"HTTPResponseHeadersKeys": null, | ||
"HTTPResponseLocation": null, | ||
"HTTPResponseTitle": null, | ||
"HTTPResponseIsFinal": null, | ||
"ControlDNSDomain": "www.example.com", | ||
"ControlDNSLookupFailure": "", | ||
"ControlDNSResolvedAddrs": [], | ||
"ControlTCPConnectFailure": null, | ||
"ControlTLSHandshakeFailure": null, | ||
"ControlHTTPFailure": "dns_lookup_error", | ||
"ControlHTTPResponseStatusCode": null, | ||
"ControlHTTPResponseBodyLength": null, | ||
"ControlHTTPResponseHeadersKeys": null, | ||
"ControlHTTPResponseTitle": null | ||
}, | ||
{ | ||
"TagDepth": 0, | ||
"Type": 0, | ||
"Failure": "dns_nxdomain_error", | ||
"TransactionID": 1, | ||
"TagFetchBody": null, | ||
"DNSTransactionID": 1, | ||
"DNSDomain": "www.example.com", | ||
"DNSLookupFailure": "dns_nxdomain_error", | ||
"DNSQueryType": "A", | ||
"DNSEngine": "doh", | ||
"DNSResolvedAddrs": null, | ||
"IPAddressOrigin": null, | ||
"IPAddress": null, | ||
"IPAddressASN": null, | ||
"IPAddressBogon": null, | ||
"EndpointTransactionID": null, | ||
"EndpointProto": null, | ||
"EndpointPort": null, | ||
"EndpointAddress": null, | ||
"TCPConnectFailure": null, | ||
"TLSHandshakeFailure": null, | ||
"TLSServerName": null, | ||
"HTTPRequestURL": null, | ||
"HTTPFailure": null, | ||
"HTTPResponseStatusCode": null, | ||
"HTTPResponseBodyLength": null, | ||
"HTTPResponseBodyIsTruncated": null, | ||
"HTTPResponseHeadersKeys": null, | ||
"HTTPResponseLocation": null, | ||
"HTTPResponseTitle": null, | ||
"HTTPResponseIsFinal": null, | ||
"ControlDNSDomain": "www.example.com", | ||
"ControlDNSLookupFailure": "", | ||
"ControlDNSResolvedAddrs": [], | ||
"ControlTCPConnectFailure": null, | ||
"ControlTLSHandshakeFailure": null, | ||
"ControlHTTPFailure": "dns_lookup_error", | ||
"ControlHTTPResponseStatusCode": null, | ||
"ControlHTTPResponseBodyLength": null, | ||
"ControlHTTPResponseHeadersKeys": null, | ||
"ControlHTTPResponseTitle": null | ||
} | ||
] | ||
} |
Oops, something went wrong.