Skip to content

Commit e2d933f

Browse files
committed
ci: add MongoDB auth credentials to connection URI
- Add testuser:testpass to MONGO_ATLAS_URI for CI environment - Fixes 'command createIndexes requires authentication' errors - Tests that don't use mock fixtures need real MongoDB connection
1 parent 7e936f9 commit e2d933f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- name: Create .env file
8989
run: |
9090
cd backend
91-
printf "MONGO_ATLAS_URI=mongodb://localhost:27017/\n\
91+
printf "MONGO_ATLAS_URI=mongodb://testuser:testpass@localhost:27017/?authSource=admin\n\
9292
RESILIENTDB_GRAPHQL_URI=https://cloud.resilientdb.com/graphql\n\
9393
RES_DB_BASE_URI=https://crow.resilientdb.com\n\
9494
SIGNER_PUBLIC_KEY=%s\n\

0 commit comments

Comments
 (0)