Refactor saas app creation test case#27325
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughUpdated test artifacts: the test JSON flips Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
920d50f to
95212dd
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates an integration test fixture used by the Application Management REST API PATCH tests, changing the advancedConfigurations.saas value in the advanced-configuration patch payload.
Changes:
- Modify the
patch-application-advanced-configuration.jsontest resource to set"saas": falseinstead oftrue.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...test/rest/api/server/application/management/v1/patch-application-advanced-configuration.json
Show resolved
Hide resolved
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@modules/integration/tests-integration/tests-backend/src/test/resources/org/wso2/identity/integration/test/rest/api/server/application/management/v1/patch-application-advanced-configuration.json`:
- Line 3: The fixture in patch-application-advanced-configuration.json sets
"saas": false which contradicts the expectation in
ApplicationPatchTest.testUpdateAdvancedConfiguration() that saas becomes true;
either change the JSON value to "saas": true to match the test intent, or update
the assertion in ApplicationPatchTest.testUpdateAdvancedConfiguration() to
expect false (and adjust any related assertions or test comments). Locate the
JSON payload (patch-application-advanced-configuration.json) and the test method
(ApplicationPatchTest.testUpdateAdvancedConfiguration) to make the matching
change so the fixture and assertion agree.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8eab5ef9-7cac-4376-ab85-c6ed82309608
📒 Files selected for processing (1)
modules/integration/tests-integration/tests-backend/src/test/resources/org/wso2/identity/integration/test/rest/api/server/application/management/v1/patch-application-advanced-configuration.json
...test/rest/api/server/application/management/v1/patch-application-advanced-configuration.json
Show resolved
Hide resolved
|



Summary by CodeRabbit