summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test/common/internet.js
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-10 13:22:13 -0700
committerGitHub <noreply@github.com>2024-02-10 20:22:13 +0000
commitf5e46c9bf2f50d66a953fa133161fc829cecff06 (patch)
tree8faf2f5831c1c7b11d842cd9908d141082c869a5 /cli/tests/node_compat/test/common/internet.js
parentd2477f780630a812bfd65e3987b70c0d309385bb (diff)
chore: move cli/tests/ -> tests/ (#22369)
This looks like a massive PR, but it's only a move from cli/tests -> tests, and updates of relative paths for files. This is the first step towards aggregate all of the integration test files under tests/, which will lead to a set of integration tests that can run without the CLI binary being built. While we could leave these tests under `cli`, it would require us to keep a more complex directory structure for the various test runners. In addition, we have a lot of complexity to ignore various test files in the `cli` project itself (cargo publish exclusion rules, autotests = false, etc). And finally, the `tests/` folder will eventually house the `test_ffi`, `test_napi` and other testing code, reducing the size of the root repo directory. For easier review, the extremely large and noisy "move" is in the first commit (with no changes -- just a move), while the remainder of the changes to actual files is in the second commit.
Diffstat (limited to 'cli/tests/node_compat/test/common/internet.js')
-rw-r--r--cli/tests/node_compat/test/common/internet.js68
1 files changed, 0 insertions, 68 deletions
diff --git a/cli/tests/node_compat/test/common/internet.js b/cli/tests/node_compat/test/common/internet.js
deleted file mode 100644
index b42fda66c..000000000
--- a/cli/tests/node_compat/test/common/internet.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-
-// Copyright Joyent and Node contributors. All rights reserved. MIT license.
-// Taken from Node 18.12.0
-// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually
-
-'use strict';
-
-// Utilities for internet-related tests
-
-const addresses = {
- // A generic host that has registered common DNS records,
- // supports both IPv4 and IPv6, and provides basic HTTP/HTTPS services
- INET_HOST: 'nodejs.org',
- // A host that provides IPv4 services
- INET4_HOST: 'nodejs.org',
- // A host that provides IPv6 services
- INET6_HOST: 'nodejs.org',
- // An accessible IPv4 IP,
- // defaults to the Google Public DNS IPv4 address
- INET4_IP: '8.8.8.8',
- // An accessible IPv6 IP,
- // defaults to the Google Public DNS IPv6 address
- INET6_IP: '2001:4860:4860::8888',
- // An invalid host that cannot be resolved
- // See https://tools.ietf.org/html/rfc2606#section-2
- INVALID_HOST: 'something.invalid',
- // A host with MX records registered
- MX_HOST: 'nodejs.org',
- // On some systems, .invalid returns a server failure/try again rather than
- // record not found. Use this to guarantee record not found.
- NOT_FOUND: 'come.on.fhqwhgads.test',
- // A host with SRV records registered
- // TODO(kt3k): Temporarily use _caldav._tcp.google.com instead of
- // _jabber._tcp.google.com, which currently doesn't respond
- // SRV_HOST: '_jabber._tcp.google.com',
- SRV_HOST: '_caldav._tcp.google.com',
- // A host with PTR records registered
- PTR_HOST: '8.8.8.8.in-addr.arpa',
- // A host with NAPTR records registered
- NAPTR_HOST: 'sip2sip.info',
- // A host with SOA records registered
- SOA_HOST: 'nodejs.org',
- // A host with CAA record registered
- CAA_HOST: 'google.com',
- // A host with CNAME records registered
- CNAME_HOST: 'blog.nodejs.org',
- // A host with NS records registered
- NS_HOST: 'nodejs.org',
- // A host with TXT records registered
- TXT_HOST: 'nodejs.org',
- // An accessible IPv4 DNS server
- DNS4_SERVER: '8.8.8.8',
- // An accessible IPv4 DNS server
- DNS6_SERVER: '2001:4860:4860::8888'
-};
-
-for (const key of Object.keys(addresses)) {
- const envName = `NODE_TEST_${key}`;
- if (process.env[envName]) {
- addresses[key] = process.env[envName];
- }
-}
-
-module.exports = {
- addresses
-};