You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to licensing restrictions you are required to explicitly accept an End User License Agreement (EULA) for the EventHubs container image. This is facilitated through the `WithAcceptEULA` function.
[Send messages to a Queue](../../modules/azure/servicebus/examples_test.go) inside_block:sendMessages
309
309
[Receive messages from a Queue](../../modules/azure/servicebus/examples_test.go) inside_block:receiveMessages
310
-
<!--/codeinclude-->
310
+
<!--/codeinclude-->
311
+
312
+
## CosmosDB
313
+
314
+
### Run function
315
+
316
+
- Not available until the next release <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
317
+
318
+
The CosmosDB module exposes one entrypoint function to create the CosmosDB container, and this function receives three parameters:
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.
327
+
328
+
#### Image
329
+
330
+
Use the second argument in the `Run` function to set a valid Docker image.
331
+
In example: `Run(context.Background(), "mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview")`.
332
+
333
+
### Container Options
334
+
335
+
When starting the CosmosDB container, you can pass options in a variadic way to configure it.
336
+
337
+
{% include "../features/common_functional_options_list.md" %}
338
+
339
+
### Container Methods
340
+
341
+
The CosmosDB container exposes the following methods:
342
+
343
+
#### ConnectionString
344
+
345
+
- Not available until the next release <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
346
+
347
+
Returns the connection string to connect to the CosmosDB container and an error, passing the Go context as parameter.
0 commit comments