File
Blob: src/workerd/api/node/tests/http-nodejs-test.wd-test
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const unitTests :Workerd.Config = ( |
| 4 | services = [ |
| 5 | ( name = "http-nodejs-test", |
| 6 | worker = ( |
| 7 | modules = [ |
| 8 | (name = "worker", esModule = embed "http-nodejs-test.js") |
| 9 | ], |
| 10 | compatibilityFlags = ["nodejs_compat", "nodejs_compat_v2", "experimental", "enable_nodejs_http_modules"], |
| 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 = "TIMEOUT_SERVER_PORT", fromEnvironment = "TIMEOUT_SERVER_PORT"), |
| 16 | (name = "HELLO_WORLD_SERVER_PORT", fromEnvironment = "HELLO_WORLD_SERVER_PORT"), |
| 17 | (name = "HEADER_VALIDATION_SERVER_PORT", fromEnvironment = "HEADER_VALIDATION_SERVER_PORT"), |
| 18 | ], |
| 19 | ) |
| 20 | ), |
| 21 | ( name = "internet", network = ( allow = ["private", "public"] ) ), |
| 22 | ], |
| 23 | ); |