Skip to content

Add a secret_key credentials file test#50

Merged
mmastrac merged 4 commits intomainfrom
credentials_tests
Mar 21, 2025
Merged

Add a secret_key credentials file test#50
mmastrac merged 4 commits intomainfrom
credentials_tests

Conversation

@mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Mar 21, 2025

Splits out the credentials tests into two files. Adds a test for the credentials environment file. Adds a secret key in credentials test that none of the drivers will pass yet (needed for docker support).

Closes #44

@mmastrac mmastrac requested review from fmoor and scotttrinh March 21, 2025 16:25
Copy link

@scotttrinh scotttrinh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've mostly reviewed the second commit and the new deduping code, and it makes sense. If you want me to take a closer look at anything else, would you add some review comments?

@mmastrac mmastrac changed the title Add a secretKey credentials file test Add a secret_key credentials file test Mar 21, 2025
{
"fs": {
"files": {
"/home/edgedb/test/credentials.json": "{\"port\": 10702, \"user\": \"test3n\", \"secret_key\": \"nbwt_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGdlZGIuc2VydmVyLmFueV9yb2xlIjp0cnVlLCJpYXQiOjE2NjkzMTE3NjMsImlzcyI6ImxvY2FsLTEuaW50ZXJuYWwiLCJuZWJ1bGEuc2NvcGVzIjpbImFkbWluIl0sIm5lYnVsYS51c2VyX2lkIjoiM2U3ODU4YTgtNmJjNy0xMWVkLWFmNTAtMTdiMzkzMjlmZmEyIn0.9cS6-rR00fgmEmGu423IP3snJvmXe7ZGol7ZlYuHBNqmKGrWtTsMZPj-3C7dmureUmk3ZUttxioouPeAreKueg\"}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scotttrinh This is the test to take a look at -- we'd allow secret_key to be provided in the credentials file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, still looks good!

@mmastrac mmastrac merged commit 7be9418 into main Mar 21, 2025
1 check passed
@mmastrac mmastrac deleted the credentials_tests branch March 21, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EDGEDB_CREDENTIALS_FILE is untested

2 participants

Comments