Skip to content
File

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

990 bytes
1using Workerd = import "/workerd/workerd.capnp";
2 
3const unitTests :Workerd.Config = (
4 services = [
5 ( name = "tls-nodejs-test",
6 worker = (
7 modules = [
8 (name = "worker", esModule = embed "tls-nodejs-test.js")
9 ],
10 compatibilityFlags = ["nodejs_compat", "nodejs_compat_v2", "streams_enable_constructors", "add_nodejs_compat_eol_v24"],
11 bindings = [
12 (name = "ECHO_SERVER_PORT", fromEnvironment = "ECHO_SERVER_PORT"),
13 (name = "HELLO_SERVER_PORT", fromEnvironment = "HELLO_SERVER_PORT"),
14 (name = "JS_STREAM_SERVER_PORT", fromEnvironment = "JS_STREAM_SERVER_PORT"),
15 (name = "STREAM_WRAP_SERVER_PORT", fromEnvironment = "STREAM_WRAP_SERVER_PORT"),
16 ]
17 ),
18 ),
19 ( name = "internet",
20 network = (
21 allow = ["private"],
22 tlsOptions = (
23 trustedCertificates = [
24 embed "fixtures/tls-nodejs-tcp-server.pem",
25 ],
26 ),
27 ),
28 ),
29 ],
30);