-
Notifications
You must be signed in to change notification settings - Fork 164
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
[tests-only][full-ci] tests: add api tests for deleting public link password #7828
Conversation
f652340
to
29c5762
Compare
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
29c5762
to
7b1481a
Compare
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature
Outdated
Show resolved
Hide resolved
7b1481a
to
bfe1b5f
Compare
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature
Outdated
Show resolved
Hide resolved
bfe1b5f
to
4cd18a3
Compare
Then the HTTP status code should be "200" | ||
And the OCS status code should be "104" | ||
And the OCS status message should be "user is not allowed to delete the password from the public link" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a peculiar case where the error message and OCS status code is different. If I'm not wrong 1xx
is the success for ocs
endpoints? The error message on this one is however very nice. I have written this scenario as the server behaves right now as I don't know if this is an expected response or not.
Should the error code be 400
like in other similar cases what about the error message?
cc @ScharfViktor @saw-jan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave it at that. The main thing is that Brian can't delete the password. The web hides the password delete button for Brian, so the user can only try to delete the password using the api (he can see the message there).
4cd18a3
to
6c27f37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good.
tests/acceptance/features/apiSpacesShares/shareOperations.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature
Outdated
Show resolved
Hide resolved
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
6c27f37
to
ce9935c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! |
part of: #7823