File
Blob: src/workerd/api/node/tests/http-outgoing-nodejs-test.wd-test
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const unitTests :Workerd.Config = ( |
| 4 | services = [ |
| 5 | ( name = "http-outgoing-nodejs-test", |
| 6 | worker = ( |
| 7 | modules = [ |
| 8 | (name = "worker", esModule = embed "http-outgoing-nodejs-test.js") |
| 9 | ], |
| 10 | compatibilityFlags = ["nodejs_compat", "nodejs_compat_v2", "experimental", "enable_nodejs_http_modules", "enable_nodejs_http_server_modules", "streams_enable_constructors"], |
| 11 | bindings = [ |
| 12 | (name = "SIDECAR_HOSTNAME", fromEnvironment = "SIDECAR_HOSTNAME"), |
| 13 | (name = "FINISH_WRITABLE_PORT", fromEnvironment = "FINISH_WRITABLE_PORT"), |
| 14 | (name = "WRITABLE_FINISHED_PORT", fromEnvironment = "WRITABLE_FINISHED_PORT"), |
| 15 | (name = "PROPERTIES_PORT", fromEnvironment = "PROPERTIES_PORT"), |
| 16 | (name = "SERVICE", service = "http-outgoing-nodejs-test"), |
| 17 | ], |
| 18 | ) |
| 19 | ), |
| 20 | ( name = "internet", network = ( allow = ["private"] ) ), |
| 21 | ], |
| 22 | ); |