Repository navigation
MOSIP-45312 - Automated esignet test cases - #2292
Conversation
Signed-off-by: prathmeshj12 <prathmesh.j@cyberpwn.com>
|
Warning Review limit reached
Next review available in: 42 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe API tests now support a cached JWK for non-FAPI clients, skip an incompatible test outside FAPI 2.0, and cover invalid OAuth-details requests for non-FAPI clients and verified claims. ChangesOAuth negative test coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant TestRunner
participant EsignetUtil
participant eSignetServer
TestRunner->>EsignetUtil: Expand non-FAPI-client JWK
EsignetUtil->>EsignetUtil: Generate or reuse cached JWK
TestRunner->>eSignetServer: Submit OAuth-details request
eSignetServer-->>TestRunner: Return invalid_request
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@api-test/src/main/resources/esignet/DifferentScopeLanguageClaimsSce/OAuthDetails/OAuthDetailsVerifiedClaimsInvalidEvidenceType.hbs`:
- Around line 38-41: Ensure the test case 28 template context supplies the
required uiLocales value: either remove the uiLocales placeholder from
OAuthDetailsVerifiedClaimsInvalidEvidenceType.hbs if the scenario does not need
it, or add the corresponding uiLocales input in OAuthDetailsRequest.yml. Update
both affected files as needed so rendering reaches the invalid evidence type
validation.
In
`@api-test/src/main/resources/esignet/FAPI/FAPICreateOIDCClientV3/FAPICreateOIDCClient.yml`:
- Around line 51-78: Close both embedded JSON scalars by adding the missing
closing characters after "require_pkce": false in
FAPICreateOIDCClientV3/FAPICreateOIDCClient.yml#L51-L78 and after the errors
array in FAPIOauthDetailsNegTC/FAPIOauthDetailsNegTC.yml#L44-L49, so both YAML
fixtures parse successfully.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 81db5b19-5ace-40ed-8e61-a259d36baf9b
📒 Files selected for processing (6)
api-test/src/main/java/io/mosip/testrig/apirig/esignet/utils/EsignetUtil.javaapi-test/src/main/resources/config/testCaseInterDependency_mock.jsonapi-test/src/main/resources/esignet/DifferentScopeLanguageClaimsSce/OAuthDetails/OAuthDetailsRequest.ymlapi-test/src/main/resources/esignet/DifferentScopeLanguageClaimsSce/OAuthDetails/OAuthDetailsVerifiedClaimsInvalidEvidenceType.hbsapi-test/src/main/resources/esignet/FAPI/FAPICreateOIDCClientV3/FAPICreateOIDCClient.ymlapi-test/src/main/resources/esignet/FAPI/FAPIOauthDetailsNegTC/FAPIOauthDetailsNegTC.yml
CodeRabbit review on PR #2292: OAuthDetailsVerifiedClaimsInvalidEvidenceType.hbs referenced {{uiLocales}} but no test case supplies it, and no other test in this YAML file uses uiLocales either. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: prathmeshj12 <prathmesh.j@cyberpwn.com>
zesu22
left a comment
There was a problem hiding this comment.
Approving because @mohanachandran-s has already approved it
MOSIP-45312 - Automated esignet test cases
Summary by CodeRabbit
New Features
Bug Fixes
Tests
invalid_requestandinvalid_claimresponses.