[wp-trac] [WordPress Trac] #62303: Use better domain for HTTP API invalid hostname test
WordPress Trac
noreply at wordpress.org
Fri Oct 25 18:30:21 UTC 2024
#62303: Use better domain for HTTP API invalid hostname test
------------------------------+-----------------------------
Reporter: sippis | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: major | Keywords:
Focuses: |
------------------------------+-----------------------------
We use example.com as one of the domains to perform HTTP API tests. That
domain is owned and operated by IANA so use of it is ok and safe.
We also use exampleeeee.com, which was not registered until this evening.
That domain was used to test if IPv4 cannot be resolved. Now that it's
registered and has an A-record, it will resolve and fail tests. Instead of
using domain(s) that anyone can register, we should use something reliable
— for example, caniload.example.org.
https://github.com/WordPress/wordpress-
develop/blob/baf408f39e92f55acb0c12f3d052e40c78586bbf/tests/phpunit/tests/http/http.php#L551
https://github.com/WordPress/wordpress-
develop/blob/baf408f39e92f55acb0c12f3d052e40c78586bbf/src/wp-
includes/http.php#L538
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62303>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list