-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test script for bypassing backend authentication issue #4119
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4119 +/- ##
==========================================
- Coverage 75.11% 73.98% -1.13%
==========================================
Files 339 339
Lines 22910 22910
==========================================
- Hits 17209 16951 -258
- Misses 4393 4661 +268
+ Partials 1308 1298 -10 see 28 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
print('connected to: ' + client); | ||
|
||
const t = db.foo; | ||
t.drop(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fails authentication on this line for FerretDB.
uncaught exception: Error: drop failed: {
"ok" : 0,
"errmsg" : "Authentication failed",
"code" : 18,
"codeName" : "AuthenticationFailed"
} :
_getErrorWithCode@src/mongo/shell/utils.js:[24](https://github.com/FerretDB/FerretDB/actions/runs/8847437872/job/24295251256?pr=4119#step:11:25):13
DBCollection.prototype.drop@src/mongo/shell/collection.js:664:15
@/legacy-mongo-shell/test.js:12:5
@/legacy-mongo-shell/test.js:50:3
failed to load: /legacy-mongo-shell/test.js
Description
Refs #4115.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.