-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] add tests for sharing the shares_folder #38780
Conversation
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
And user "Alice" has shared file "textfile0.txt" with user "Brian" | ||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" | ||
Then as "Brian" file "Shares/textfile0.txt" should exist |
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.
we don't need a then
step without a when
step
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.
Since this is a case where we expect the sharing to fail, I think its good to make sure that the file actually exists before sharing.
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.
Then, Maybe a step like the following would be better.??
Then as "Brian" file "Shares/textfile0.txt" should exist | |
And as user "Brian" file "Shares/textfile0.txt" exists |
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.
The test code for
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice"
checks that the HTTP status code is 200.
We believe that in other places in the test suite - that an ordinary accept of a share means that Brian now has a received shared file like Shares/texfile0.txt
. And there are other tests for accepting shares that would fail if the given steps here do not work.
Maybe delete this extra Then
check?
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
And user "Alice" has shared file "textfile0.txt" with user "Brian" | ||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" | ||
Then as "Brian" file "Shares/textfile0.txt" should exist |
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.
same here
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
And user "Alice" has shared file "textfile0.txt" with user "Brian" | ||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" | ||
Then as "Brian" file "Shares/textfile0.txt" should exist |
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.
same here
Current Behavioron oc10it gives 403 with the following body
on ocisit gives 403 with the following body
|
tests/acceptance/features/apiShareManagementBasicToShares/createShareToSharesFolder.feature
Show resolved
Hide resolved
452a384
to
676b89a
Compare
tests/acceptance/features/apiShareManagementBasicToShares/createShareToSharesFolder.feature
Outdated
Show resolved
Hide resolved
676b89a
to
a4060cf
Compare
Kudos, SonarCloud Quality Gate passed! |
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
Description
Add API test for sharing the shares_folder
Related Issue
Motivation and Context
How Has This Been Tested?
🤖
Screenshots (if appropriate):
Types of changes
Checklist: