Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ machine:

dependencies:
override:
- docker run -d -p 27018:27018 -p 27019:27018 -p 27020:27018
--name ci-mongo scality/ci-mongo:3.4
- rm -rf node_modules
- yarn install --pure-lockfile
post:
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"recordLogName": "s3-recordlog"
},
"mongodb": {
"replicaSetHosts": "localhost:27017,localhost:27018,localhost:27019",
"replicaSetHosts": "localhost:27018,localhost:27019,localhost:27020",
"writeConcern": "majority",
"replicaSet": "rs0",
"readPreference": "primary",
Expand Down
26 changes: 20 additions & 6 deletions tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,25 @@ then

killandsleep 8000

docker pull mongo:3.6.2
mkdir /tmp/mongodb
docker run -d -p 27018:27017 -v /tmp/mongodb:/data/db mongo:3.6.2
bash wait_for_local_port.bash 27018 40
S3BACKEND=mem MPU_TESTING=yes S3METADATA=mongodb npm start > $CIRCLE_ARTIFACTS/server_mongodb_awssdk.txt & bash wait_for_local_port.bash 8000 40 && S3DATA=file npm run ft_test
# Run with mongdb backend ; run ft_tests

S3BACKEND=mem MPU_TESTING=yes S3METADATA=mongodb npm start > $CIRCLE_ARTIFACTS/server_mongodb_awssdk.txt & bash wait_for_local_port.bash 8000 40 && S3DATA=file npm run ft_awssdk

killandsleep 8000

S3BACKEND=mem MPU_TESTING=yes S3METADATA=mongodb npm start > $CIRCLE_ARTIFACTS/server_mongodb_s3cmd.txt & bash wait_for_local_port.bash 8000 40 && S3DATA=file npm run ft_s3cmd

killandsleep 8000

S3BACKEND=mem MPU_TESTING=yes S3METADATA=mongodb npm start > $CIRCLE_ARTIFACTS/server_mongodb_s3curl.txt & bash wait_for_local_port.bash 8000 40 && S3DATA=file npm run ft_s3curl

killandsleep 8000

S3BACKEND=mem MPU_TESTING=yes S3METADATA=mongodb npm start > $CIRCLE_ARTIFACTS/server_mongodb_healthchecks.txt & bash wait_for_local_port.bash 8000 40 && S3DATA=file npm run ft_healthchecks

killandsleep 8000

S3BACKEND=mem MPU_TESTING=yes S3METADATA=mongodb npm start > $CIRCLE_ARTIFACTS/server_mongodb_management.txt & bash wait_for_local_port.bash 8000 40 && npm run ft_management

killandsleep 8000

Expand Down Expand Up @@ -197,4 +211,4 @@ then

fi

exit 0
exit $?