Response Tests
Test group: [stdResponseValidation]
- Test case -13000: Validate that the content-type HTTP header has the media type “application/rdap+json”. This validation should allow for media type parameters such as “charset”, etc…
See Media Types in the conformance considerations for more information.
{ "code": -13000, "value": "<content-type header>", "message": "The content-type header does not contain the application/rdap+json media type." }
- Test case -13001: Validate that the response is parsable JSON.
- Test case -13002: Validate that the HTTP status code is either 200 or 404.
- Test case -13003: If the query is a lookup (/domain, /ip, /nameserver, /autnum, /entity), validate that it has an objectClassName string member.
- Test case -13004: Validate that a query for “example.invalid” with random query parameters does not result in an HTTP 3xx response in which the URI in the “location” header contains the same query parameters used in the query.
- Test case -13005: Validate that a query for “test.invalid” does not result in an HTTP redirect (that is, if the server answers with a 3xx validate that the redirect does not point back to the same server).
- Test case -13006: Validate that a query for “test.invalid” does not result in an HTTP 200 Ok.
- Test case -13007: If a query fails to connect (CONNECTION FAILED), issue the following error:
- Test case -13008: If a query fails because of a TLS handshake (HANDSHAKE_FAILED), issue the following error:
- Test case -13009: If a query fails to connect because of an invalid TLS certificate (INVALID_CERTIFICATE), issue the following error:
- Test case -13010: If a query fails to connect because of revoked TLS certificate (REVOKED_CERTIFICATE), issue the following error:
- Test case -13011: If a query fails to connect because of an expired TLS certificate (EXPIRED_CERTIFICATE), issue the following error:
- Test case -13012: If a query fails to connect because of TLS certificate errors, issue the following error:
- Test case -13013: If a query fails to connect because of too many HTTP redirects (TOO_MANY_REDIRECTS), issue the following error:
- Test case -13014: If a query fails because of an HTTP error (HTTP_ERROR), issue the following error:
- Test case -13015: If a query fails because of an HTTP2 error (HTTP2_ERROR), issue the following error:
- Test case -13016: If a query fails because data failed to be sent on the network (NETWORK_SEND_FAIL), issue the following error:
- Test case -13017: If a query fails because data failed to be received on the network (NETWORK_RECEIVE_ERROR), issue the following error:
- Test case -13018: Validate that all queries issued over all IP protocols for all HTTP methods except queries for domains under .invalid (see codes -130004, -13005, -130006, and -65300) have the same HTTP status code.
- Test case -13019: If a query fails because the DNS resolution process does not yield an IP address, issue the following error.
-
Test case -13020: If the input URL (that is, the URL given by the user for executing this tool) returns an HTTP 404 status code for both a GET request and a HEAD request, if applicable because a gTLD profile has been selected, and no other validations are given in the error array, then this validation should appear only in the WARNING array.
If the provided URL does not reference a registered resource, then this warning may be ignored. If the provided URL does reference a registered resource, then this should be considered an error.{ "code": -13020, "value": "<URL>", "message": "This URL returned an HTTP 404 status code that was validly formed. If the provided URL does not reference a registered resource, then this warning may be ignored. If the provided URL does reference a registered resource, then this should be considered an error." }
-
Test case -13021: If the input URL results in a refused connection, then issue the following error: