-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat,pom,test) make tests compatible with embedded MongoDB up to 4.0.x
Add profiles to use embedded MongoDB on Linux and Windows, otherwise an existing MongoDB server is used (with no authentication). Local development now use MongoDB with no authentication.
- Loading branch information
1 parent
0cf3be4
commit a75a917
Showing
12 changed files
with
77 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ container: | |
memory: 4 | ||
|
||
test_task: | ||
script: sh ./mvnw clean test | ||
script: sh ./mvnw clean test -Pembed-linux,metrics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
### DEV CONFIGURATION for local application ### (warning: avoid tabs, indent with two spaces) | ||
### DEV CONFIGURATION for local application with existing MongoDB ### (warning: avoid tabs, indent with two spaces) | ||
|
||
spring: | ||
data: | ||
mongodb: | ||
host: localhost | ||
port: 27017 | ||
database: manondev | ||
username: root | ||
password: woot | ||
authentication-database: manondev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### DEV CONFIGURATION for local unit testing with embedded MongoDB on Linux x64 ### (warning: avoid tabs, indent with two spaces) | ||
|
||
manon: | ||
security.bcrypt.strength: 4 | ||
|
||
spring: | ||
mongodb: | ||
embedded: | ||
version: 4.0.3 | ||
features: ["sync_delay", "ONLY_WITH_SSL", "NO_HTTP_INTERFACE_ARG"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### DEV CONFIGURATION for local unit testing with embedded MongoDB on Windows x64 ### (warning: avoid tabs, indent with two spaces) | ||
|
||
manon: | ||
security.bcrypt.strength: 4 | ||
|
||
spring: | ||
mongodb: | ||
embedded: | ||
version: 4.0.3 | ||
features: ["sync_delay", "ONLY_WITH_SSL", "ONLY_WINDOWS_2008_SERVER", "NO_HTTP_INTERFACE_ARG"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
### DEV CONFIGURATION for local unit testing ### (warning: avoid tabs, indent with two spaces) | ||
### DEV CONFIGURATION for local unit testing with existing MongoDB ### (warning: avoid tabs, indent with two spaces) | ||
|
||
manon: | ||
security.bcrypt.strength: 4 | ||
|
||
spring: | ||
mongodb.embedded.version: 3.4.17 | ||
data: | ||
mongodb: | ||
host: localhost | ||
port: 27017 | ||
database: manontest |