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

Pivotal ID # 184014414: Permissions For Resubmission To Collection #660

Merged

Conversation

jhoanmanuelms
Copy link
Contributor

https://www.pivotaltracker.com/story/show/184014414

Give priority to owner's resubmission

@jhoanmanuelms jhoanmanuelms self-assigned this Dec 20, 2022
Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

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

Please check comment

@@ -184,6 +185,36 @@ class SubmitPermissionTest(
assertThat(regularUserWebClient.submitSingle(resubmission, SubmissionFormat.TSV)).isSuccessful()
}

@Test
fun `4-8 owner resubmits without attach permission`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is not clear for me, if what we want to test is that "owner resubmits without attach permission" why we are using belhalf client and a imporsonated user in the test. test structure should be something like

  1. submit with user A in project B
  2. Remove Attach permission from user A
  3. Re submit and validate success.

Do am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, you're not, the test case you're describing is correct. The reason why I added the onbehalf step was to recreate the scenario most used by Ahmed for AE submissions

@jhoanmanuelms jhoanmanuelms merged commit 7b1e294 into master Jan 10, 2023
@jhoanmanuelms jhoanmanuelms deleted the bugfix/pivotal-#184014414-resubmit-permissions branch January 13, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants