Skip to content

Commit

Permalink
Add SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Aug 19, 2024
1 parent 56c9f4f commit 4395a5c
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- ferretdb-postgresql
- ferretdb-sqlite-replset
- ferretdb-postgresql-secured
- ferretdb-sqlite-replset-secured
project:
- dotnet
- java
Expand Down
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"

ferretdb-sqlite-replset-secured:
image: ${FERRETDB_IMAGE:-ferretdb-local}
restart: on-failure
ports:
- 27004:27004
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_LISTEN_ADDR=:27004
- FERRETDB_HANDLER=sqlite
- FERRETDB_SQLITE_URL=file:/state/?_pragma=busy_timeout(20000)
- FERRETDB_TEST_ENABLE_NEW_AUTH=true
- FERRETDB_SETUP_USERNAME=username
- FERRETDB_SETUP_PASSWORD=password
- FERRETDB_SETUP_DATABASE=admin
- FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"

postgres:
build:
context: ./build/deps
Expand Down
11 changes: 6 additions & 5 deletions internal/configload/configload.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ import (

// DBs contains MongoDB URIs for different databases.
var DBs = map[string]string{
"mongodb": "mongodb://127.0.0.1:37001/",
"mongodb-secured": "mongodb://username:[email protected]:37002/",
"ferretdb-postgresql": "mongodb://127.0.0.1:27001/",
"ferretdb-sqlite-replset": "mongodb://127.0.0.1:27002/?replicaSet=rs0",
"ferretdb-postgresql-secured": "mongodb://username:[email protected]:27003/",
"mongodb": "mongodb://127.0.0.1:37001/",
"mongodb-secured": "mongodb://username:[email protected]:37002/",
"ferretdb-postgresql": "mongodb://127.0.0.1:27001/",
"ferretdb-sqlite-replset": "mongodb://127.0.0.1:27002/?replicaSet=rs0",
"ferretdb-postgresql-secured": "mongodb://username:[email protected]:27003/",
"ferretdb-sqlite-replset-secured": "mongodb://username:[email protected]:27004/?replicaSet=rs0",
}

// projectConfig represents project configuration YAML file.
Expand Down
19 changes: 19 additions & 0 deletions projects/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,22 @@ results:
- normal
- sha1
- sha256

ferretdb-sqlite-replset-secured:
stats:
fail: 5
pass: 1
fail:
- noauth # Authentication failed

# TODO https://github.com/FerretDB/FerretDB/issues/4065
# TODO https://github.com/FerretDB/dance/issues/889
# Unsupported OP_QUERY command: saslStart. The client driver may require an upgrade.
- plain

# TODO https://github.com/FerretDB/FerretDB/issues/4065
# TODO https://github.com/FerretDB/dance/issues/889
# Unsupported OP_QUERY command: saslContinue. The client driver may require an upgrade.
- normal
- sha1
- sha256
8 changes: 8 additions & 0 deletions projects/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ results:
fail:
- noauth # Authentication failed
- plain # Unsupported authentication mechanism "PLAIN"

ferretdb-sqlite-replset-secured:
stats:
fail: 2
pass: 4
fail:
- noauth # Authentication failed
- plain # Unsupported authentication mechanism "PLAIN"
8 changes: 8 additions & 0 deletions projects/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ results:
fail:
- noauth # Authentication failed
- plain # Unsupported authentication mechanism "PLAIN"

ferretdb-sqlite-replset-secured:
stats:
fail: 2
pass: 4
fail:
- noauth # Authentication failed
- plain # Unsupported authentication mechanism "PLAIN"

0 comments on commit 4395a5c

Please sign in to comment.