Skip to content

Commit

Permalink
Add user & password envvar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoor committed Jan 3, 2025
1 parent eb8b4d9 commit 4dee5ad
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Environment variables present at the time of connecting. Possible values:
| -------------------------- | --------------------------------------------------- |
| `GEL_HOST` | same as `host` above |
| `GEL_PORT` | same as `port` above |
| `EDGEDB_USER` | same as `user` above |
| `EDGEDB_PASSWORD` | same as `password` above |
| `GEL_USER` | same as `user` above |
| `GEL_PASSWORD` | same as `password` above |
| `EDGEDB_SECRET_KEY` | same as `secretKey` above |
| `EDGEDB_DATABASE` | same as `database` above |
| `GEL_BRANCH` | same as `branch` above |
Expand Down
56 changes: 56 additions & 0 deletions tests/basic/env.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,62 @@
]
}
},
{
"name": "EDGEDB_USER is recognised",
"env": {
"EDGEDB_PORT": "1234",
"EDGEDB_USER": "testuser"
},
"result": {
"address": [
"localhost",
1234
],
"user": "testuser"
}
},
{
"name": "GEL_USER is recognised",
"env": {
"GEL_PORT": "1234",
"GEL_USER": "testuser"
},
"result": {
"address": [
"localhost",
1234
],
"user": "testuser"
}
},
{
"name": "EDGEDB_PASSWORD is recognised",
"env": {
"EDGEDB_PORT": "1234",
"EDGEDB_PASSWORD": "secret"
},
"result": {
"address": [
"localhost",
1234
],
"password": "secret"
}
},
{
"name": "GEL_PASSWORD is recognised",
"env": {
"GEL_PORT": "1234",
"GEL_PASSWORD": "secret"
},
"result": {
"address": [
"localhost",
1234
],
"password": "secret"
}
},
{
"env": {
"EDGEDB_DSN": "edgedb://user3:123123@localhost:5555/abcdef",
Expand Down

0 comments on commit 4dee5ad

Please sign in to comment.