Skip to content
File

Blob: src/workerd/api/node/tests/http-client-nodejs-test.wd-test

1.1 KB
1using Workerd = import "/workerd/workerd.capnp";
2 
3const unitTests :Workerd.Config = (
4 services = [
5 ( name = "http-client-nodejs-test",
6 worker = (
7 modules = [
8 (name = "worker", esModule = embed "http-client-nodejs-test.js")
9 ],
10 compatibilityFlags = ["nodejs_compat", "nodejs_compat_v2", "experimental", "enable_nodejs_http_modules", "nodejs_zlib"],
11 bindings = [
12 (name = "SIDECAR_HOSTNAME", fromEnvironment = "SIDECAR_HOSTNAME"),
13 (name = "PONG_SERVER_PORT", fromEnvironment = "PONG_SERVER_PORT"),
14 (name = "ASD_SERVER_PORT", fromEnvironment = "ASD_SERVER_PORT"),
15 (name = "DEFAULT_HEADERS_EXIST_PORT", fromEnvironment = "DEFAULT_HEADERS_EXIST_PORT"),
16 (name = "REQUEST_ARGUMENTS_PORT", fromEnvironment = "REQUEST_ARGUMENTS_PORT"),
17 (name = "HELLO_WORLD_SERVER_PORT", fromEnvironment = "HELLO_WORLD_SERVER_PORT"),
18 (name = "GZIP_SERVER_PORT", fromEnvironment = "GZIP_SERVER_PORT"),
19 ],
20 )
21 ),
22 ( name = "internet", network = ( allow = ["private"] ) ),
23 ],
24);