-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: webauth no need to validate hostname on cli request #752
Conversation
WalkthroughThis pull request updates the Changes
Assessment against linked issues
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
LGTM
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
test/port/webauth/webauthController.test.ts (1)
29-34
: Improve test coverage and fix grammatical error in test name.The test case has a grammatical error in its name and could benefit from additional test scenarios.
Apply this diff to improve the test:
- it('should hostname is optional', async () => { + it('should accept requests with or without hostname', async () => { + // Test without hostname const res = await app.httpRequest() .post('/-/v1/login'); assert.equal(res.status, 200); + + // Test with hostname + const resWithHostname = await app.httpRequest() + .post('/-/v1/login') + .send({ + hostname: 'test', + }); + assert.equal(resWithHostname.status, 200); });
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
test/port/webauth/webauthController.test.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: test-mysql57-fs-nfs (22, ubuntu-latest)
- GitHub Check: test-postgresql-fs-nfs (22, ubuntu-latest)
- GitHub Check: test-mysql57-fs-nfs (20, ubuntu-latest)
- GitHub Check: test-postgresql-fs-nfs (20, ubuntu-latest)
- GitHub Check: test-mysql57-fs-nfs (18, ubuntu-latest)
- GitHub Check: test-postgresql-fs-nfs (18, ubuntu-latest)
- GitHub Check: test-mysql57-fs-nfs (18.20.0, ubuntu-latest)
- GitHub Check: Analyze (typescript)
- GitHub Check: test-postgresql-fs-nfs (18.20.0, ubuntu-latest)
- GitHub Check: Analyze (javascript)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #752 +/- ##
==========================================
- Coverage 96.47% 96.42% -0.05%
==========================================
Files 191 191
Lines 19232 19232
Branches 2508 2503 -5
==========================================
- Hits 18554 18545 -9
- Misses 678 687 +9 ☔ View full report in Codecov by Sentry. |
[skip ci] ## [3.73.1](v3.73.0...v3.73.1) (2025-02-08) ### Bug Fixes * webauth no need to validate hostname on cli request ([#752](#752)) ([f1fc249](f1fc249))
closes #718
Summary by CodeRabbit
Refactor
Tests