-
Notifications
You must be signed in to change notification settings - Fork 748
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 Integration Tests for User Sharing API #23329
Add Integration Tests for User Sharing API #23329
Conversation
...kend/src/test/java/org/wso2/identity/integration/test/restclients/UserSharingRestClient.java
Outdated
Show resolved
Hide resolved
...kend/src/test/java/org/wso2/identity/integration/test/restclients/UserSharingRestClient.java
Outdated
Show resolved
Hide resolved
This comment was marked as duplicate.
This comment was marked as duplicate.
Integration Test RunnerAttempt 1Integration Test Runner For this PR can be found here. Attempt 2Integration Test Runner For this PR can be found here. Attempt 3Integration Test Runner For this PR can be found here. Attempt 4Integration Test Runner For this PR can be found here. Attempt 5Integration Test Runner For this PR can be found here.
|
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
...dentity/integration/test/rest/api/server/user/sharing/management/v1/UserSharingBaseTest.java
Outdated
Show resolved
Hide resolved
Please squash the commits |
a8a91fc
to
ee09a55
Compare
ee09a55
to
a578653
Compare
The changes originally intended in this PR will now be tracked in a different PR: #23423 |
This PR introduces comprehensive integration tests for the User Sharing API, ensuring correctness in user sharing, unsharing, and verification through a successful GET request for a user's shared organizations and assigned shared roles to a shared user in a given organization. These tests validate request handling, response accuracy, and expected behavior across various valid and invalid scenarios, ensuring API reliability in standard usage.
Test Coverage:
✅ Successful Scenarios
SELECTED_ORG_ONLY
SELECTED_ORG_WITH_ALL_EXISTING_CHILDREN_ONLY
SELECTED_ORG_WITH_ALL_EXISTING_AND_FUTURE_CHILDREN
SELECTED_ORG_WITH_EXISTING_IMMEDIATE_CHILDREN_ONLY
SELECTED_ORG_WITH_EXISTING_IMMEDIATE_AND_FUTURE_CHILDREN
ALL_EXISTING_ORGS_ONLY
ALL_EXISTING_AND_FUTURE_ORGS
IMMEDIATE_EXISTING_ORGS_ONLY
IMMEDIATE_EXISTING_AND_FUTURE_ORGS
❌ Failure Scenarios
Related Issue
Add Integration Tests for User Sharing API #23328