Questions tagged [flapdoodle-embed-mongo]
24 questions
8
votes
1 answer
Could not find class [de.flapdoodle.embed.process.config.IRuntimeConfig]
After upgrading to embeded MongoDB with version 3.0.0, I am getting the following exception.
I am using the following in build.gradle.
testImplementation group: 'de.flapdoodle.embed', name: 'de.flapdoodle.embed.mongo', version: '3.0.0'
The…

PythonLearner
- 1,416
- 7
- 22
6
votes
3 answers
UncategorizedMongoDbException: Command failed with error 10107 (NotMaster): 'not master' on server
I am getting the following exception while executing my integration test cases for transactional feature of MongoDB.
org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 10107 (NotMaster): 'not master' on server…

PythonLearner
- 1,416
- 7
- 22
4
votes
3 answers
UnknownHostException for embedded Mongo DB tests in Jenkins build
I have a Spring Boot REST service and some unit tests written for the data layer. I use the embedded MongoDB dependency to perform the basic CRUD tests for my Repository class:
public interface UserRepository extends MongoRepository

Revnic Robert-Nick
- 587
- 7
- 22
3
votes
1 answer
Are there any alternatives to flapdoodle for embedded mongodb?
I have tried using flapdoodle's embedded mongodb for integration testing in my SpringBoot application and it runs well locally. However, it fails to run in a docker container when deployed. Are there any alternatives to flapdoodle for embedded…

fxxixx
- 116
- 1
- 10
3
votes
0 answers
Tests annotated with DataMongoTest do not terminate the embedded MongoDB at the end
I noticed experimentally that any integration test class annotated with @DataMongoTest does not kill the embedded MongoDB instance it uses. To kill the embedded instance, I have to annotate the test with the annotation @DirtiesContext(classMode =…

riccardo.cardin
- 7,971
- 5
- 57
- 106
2
votes
1 answer
Server host:port does not appear to be a member of an initiated replica set in embeded MongoDB in Spring Boot
I get the following output followed by an exception. I am working on writing integration test cases for the transactional feature in embeded mongoDB with Spring Boot.
21-03-07 01:44:12.169 INFO 20256 --- [localhost:27021] org.mongodb.driver.cluster…

PythonLearner
- 1,416
- 7
- 22
2
votes
0 answers
Unable to connect to MongoDB using Embeded MongoDB using replicaSet for Junit test cases
I am facing the following problem while connecting to embeded MongoDB with replicaSet for executing Junit test cases. I am getting the following exception.
[mongod output] 2021-03-06T23:28:13.202+0530 I CONTROL [initandlisten] ** WARNING: This…

PythonLearner
- 1,416
- 7
- 22
2
votes
1 answer
Unable to run embedded mongo flapdoodle in GitHub Actions Maven build
I have a SpringBoot project pushed to GitHub and inside it I have some semi-integration tests in which I use embedded mongo as a database. My build is successfull locally and tests are passing but when running the "Java with Maven" GitHub action, it…

2dor
- 851
- 3
- 15
- 35
2
votes
1 answer
Embeded flapdoodle MongoDB process won't stop
I am using an flapdoodle embedded MongoDB instance in my application.
The embedded MongoDB starts up and works as expected, but the process of the embedded instance won't stop when the application is being stopped or the integration tests are…

Attila
- 3,206
- 2
- 31
- 44
1
vote
1 answer
How to use embedded MongoDB with SpringBoot 2.7.13
I am trying to use embedded mongodb for integration testing and I am using de.flapdoodle.embed.mongo for this purpose. But whatever mongodb version I try to use along with this, I am getting connection refused exception. Please find my…

Jewel Jose
- 71
- 1
- 7
1
vote
1 answer
Configure flapdoodle embedded mongodb for transaction
I'm using "Flapdoodle Embedded MongoDB" for integartion test. It works fine.
After adding the transaction manager, I have the following error:
org.springframework.data.mongodb.UncategorizedMongoDbException: This MongoDB deployment does not support…

GHASSEN
- 51
- 2
1
vote
1 answer
Junit tests failing with embedded mongodb with spring boot
I have added this code to configure embedded mongodb (de.flapdoodle.embed.mongo:2.2.0) with spring boot 2.7.10 :
@Configuration
public class TestMongoConfig {
private MongodExecutable mongodExecutable;
private MongoClient mongoClient;
…

Yatharth Mishra
- 19
- 3
1
vote
1 answer
Error initializing MongoEmbebbed. MongoClientSettings not found
I can't manage to get the Mongo Embebbed running. I'm using Spring Boot with Flapdoodle and jirutka
I'm not sure if there is a problem with the versions or what I need to change.
This is the log of the error:
Error creating bean with name…

Ignacio Estevo
- 43
- 2
- 8
1
vote
0 answers
EmbeddedMongo seeming race condition in Jenkins
I'm running into an issue with a Spring Boot service running unit tests using JUnit5 and flapdoodle's embeddedMongo. My unit tests were running fine previously, both locally and in Jenkins. I'm trying to update to Java 17 and Spring Boot 2.6.3,…

Matt
- 31
- 1
0
votes
0 answers
Embedded MongoDB with SpringBoot v3.0.0?
I am using emdedded mongodb (flapdoodle) in my tests.
I am moving to Spring Boot 3. I got help from this link:
How to use embedded MongoDB with SpringBoot v3.0.0?
(@egimaben answer).
Now if I want to be able to create the mongo client…

Mykeul
- 498
- 1
- 6
- 20