Skip to content
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

[DS-4486] Tests for the Comm/Coll admins group edits #2770

Closed

Conversation

KevinVdV
Copy link
Member

References

Description

This PR includes tests for the edits of the community / collection roles by community / collection admin.

This PR does NOT include a fix where community/collection admins can search for groups/epeople to add.

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
  • My PR passes Checkstyle validation based on the Code Style Guide
  • My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
  • My PR passes all tests and includes new/updated Unit or Integration Tests for any bug fixes, improvements or new features. A few reminders about what constitutes good tests:
    • Include tests for different user types, including: (1) Anonymous user, (2) Logged in user (non-admin), and (3) Administrator.
    • Include tests for known error scenarios and error codes (e.g. 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, etc)
    • For bug fixes, include a test that reproduces the bug and proves it is fixed. For clarity, it may be useful to provide the test in a separate commit from the bug fix.
  • If my PR includes new, third-party dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR modifies the REST API, I've linked to the REST Contract page (or open PR) related to this change.

@KevinVdV KevinVdV added the quick win Pull request is small in size & should be easy to review and/or merge label May 22, 2020
@KevinVdV KevinVdV added this to the 7.0 milestone May 22, 2020
}

@Test
public void communityAdminAddMembersToCommunityAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public void commAdminManageOwnerAdminGroupTest() throws Exception {

}

@Test
public void communityAdminRemoveMembersFromCommunityAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public void commAdminManageOwnerAdminGroupTest() throws Exception {

}

@Test
public void communityAdminAddChildGroupToCommunityAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public void addChildGroupCommunityAdminTest() throws Exception {

}

@Test
public void communityAdminRemoveChildGroupFromCommunityAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public void removeChildGroupCommunityAdminTest() throws Exception {



@Test
public void communityAdminAddMembersToCollectionAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will rename my test to communityAdminCanManageCollectionSubmittersGroupAndAdminsGroupsTest and add
this test inside my test

public void commAdminManageSunCollectionOfSubmittersAndAdminsTest() throws Exception {

}

@Test
public void communityAdminRemoveMembersFromCollectionAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public void commAdminManageSunCollectionOfSubmittersAndAdminsTest() throws Exception {



@Test
public void collectionAdminAddMembersToCollectionAdminGroupSuccess() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public void colAdminManageSubmitterGroupAndAdminGroupTest() throws Exception {

Micheleboychuk pushed a commit to Micheleboychuk/DSpace that referenced this pull request May 29, 2020
@abollini
Copy link
Member

hi @KevinVdV
@Micheleboychuk has integrated your test in the PR #2774 do you agree about closing this PR and maybe do you like to review the "full PR" by michele?

@tdonohue
Copy link
Member

tdonohue commented Jun 9, 2020

Closing this PR as it has be integrated into #2774.

@tdonohue tdonohue closed this Jun 9, 2020
@tdonohue tdonohue removed this from the 7.0 milestone Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quick win Pull request is small in size & should be easy to review and/or merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants