web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
5.01k stars 3.11k forks source link

Custom DNS replies and connection failures #14586

Open yoavweiss opened 5 years ago

yoavweiss commented 5 years ago

In order to test https://github.com/w3c/resource-timing/issues/123 we would need 2 things:

Asking around on #testing, this is not possible today. Would be great if it would be.

foolip commented 5 years ago

I guess that a custom DNS reply would require a custom DNS server? Would it also require control over the browser caching of DNS replies?

foolip commented 5 years ago

@LukeZielinski I'm marking this priority:backlog, but can you go over the various requests and make a ranking, so that we could say how this fares in our priorities?

yoavweiss commented 5 years ago

I guess that a custom DNS reply would require a custom DNS server?

Probably

Would it also require control over the browser caching of DNS replies?

I think you'd want all DNS replies to have short TTLs, so that these tests with custom replies can run right after ones with different expected DNS results. At the same time, custom DNS tests could use different (and unique) host names, making the TTL values a non-issue.