File
Blob: src/workerd/server/tests/container-client/container-client.wd-test
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const unitTests :Workerd.Config = ( |
| 4 | services = [ |
| 5 | ( name = "internet", network = ( allow = ["private"] ) ), |
| 6 | ( name = "container-client-test", |
| 7 | worker = ( |
| 8 | modules = [ |
| 9 | (name = "worker", esModule = embed "test.js") |
| 10 | ], |
| 11 | compatibilityFlags = ["enable_ctx_exports", "nodejs_compat", "experimental", "containers_pid_namespace", "streams_enable_constructors"], |
| 12 | containerEngine = (localDocker = (socketPath = "unix:/var/run/docker.sock", containerEgressInterceptorImage = "cloudflare/proxy-everything:main")), |
| 13 | durableObjectNamespaces = [ |
| 14 | ( className = "DurableObjectExample", |
| 15 | uniqueKey = "container-client-test-DurableObjectExample", |
| 16 | container = (imageName = "cloudflare/workerd/container-client-test") ), |
| 17 | ( className = "DurableObjectExample2", |
| 18 | uniqueKey = "container-client-test-DurableObjectExample2", |
| 19 | container = (imageName = "cloudflare/workerd/container-client-test") ), |
| 20 | ], |
| 21 | durableObjectStorage = (localDisk = "TEST_TMPDIR"), |
| 22 | bindings = [ |
| 23 | ( name = "MY_CONTAINER", durableObjectNamespace = "DurableObjectExample" ), |
| 24 | ( name = "MY_DUPLICATE_CONTAINER", durableObjectNamespace = "DurableObjectExample2" ), |
| 25 | ], |
| 26 | ) |
| 27 | ), |
| 28 | ( name = "TEST_TMPDIR", disk = (writable = true) ), |
| 29 | ], |
| 30 | ); |