Seeding Cosmos DB Data and run integration tests with Testcontainers and Cosmos DB Docker emulator for Spring Boot applications - Complete Source Code
Seed Azure Cosmos DB data and run integration tests for your Spring Boot applications with Testcontainers.
Your team uses Java, Spring Boot, and Azure Cosmos DB as a NoSQL data storage to implement functional requirements.
Is the team running integration tests to verify that Cosmos DB interactions go as expected?
The Spring Boot application source code you'll get with this purchase could save your team one or two 2-weeks Sprints worth of time and costs by starting with a fully working code base.
What does the source code include?
- A custom Spring TestExecutionListener implementation that adds support to seed Cosmos DB data from JSON files.
- A working integration test class with a handful of tests that seed data using different strategies. Class-level support, Method-level support.
Although this integration test requires a running azure-cosmos-emulator Docker container. - A utility class that automates adding the Cosmos DB self-signed cert to a Java truststore. No manual labor involved.
- A custom Cosmos DB emulator Testcontainer implementation that your team can use or start from.
- A working integration test class that doesn't require a running azure-cosmos-emulator Docker container. It uses Testcontainers to start/stop the Cosmos DB emulator. Also using a random, available emulator endpoint port.
A fully working Spring Boot application source code with Integration Tests that seed Cosmos DB data and use Testcontainers to run an azure-cosmos-emulator Docker container
Add to wishlist