-
Notifications
You must be signed in to change notification settings - Fork 189
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] refactoring the user delete code from ocs to graphapi #7020
[tests-only][full-ci] refactoring the user delete code from ocs to graphapi #7020
Conversation
6f27302
to
8b78a61
Compare
The scenario on line 13 in moveReceivedShare.feature file could be passed if the line |
the ocs status code check is correct for these steps and should be there. We use graph API for user/space related operations till now and sharing still uses ocs so the check is relevant.
|
Note soon the ocs sharing will also be deprecated and eventually removed but till then these steps should stay |
tests/acceptance/features/coreApiShareManagementToShares/moveReceivedShare.feature
Outdated
Show resolved
Hide resolved
df3816d
to
f39f4c9
Compare
tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature
Outdated
Show resolved
Hide resolved
21f7988
to
1c1dc20
Compare
1c1dc20
to
11ac129
Compare
cd0a41c
to
6f329dc
Compare
4727227
to
b21815c
Compare
b21815c
to
00b8450
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
@@ -21,7 +21,7 @@ Feature: sharing | |||
And user "Brian" moves folder "/Shares/TMP" to "/Shares/new" using the WebDAV API | |||
And the administrator deletes user "Carol" using the provisioning API |
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.
And the administrator deletes user "Carol" using the provisioning API | |
And the administrator deletes user "Carol" using the provisioning API |
Why is this step needed and why aren't we refactoring the step from provisioning to graph?
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.
internally should use graph. but step cleanup can be in upcoming PRs. But it's hard to come with great naming.
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.
@saw-jan I might be wrong. But can't we only use the When
step for the move (rename) step, and sharing and accepting share can be done using the Given
step? IMHO it's better if we can do small fixes in the same PR where we encounter the problem.
Also, why are we deleting the user Carol
?
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.
why are we deleting the user Carol?
I really have no idea. what the scenario suggests?
MHO it's better if we can do small fixes in the same PR where we encounter the problem.
Yeah, right. this type of PRs are the opportunity to fix the test if required but I don't have any guess about how much the file changes would be if we do RELATED minor refactor. Depends on @S-Panta
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.
I suggest that we do these things in another PR. Some scenario seems to be refactored and added in this file. There are already more changes in this PR,
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 please, follow up with it after this is merged
b3c2ae5
to
2628851
Compare
2628851
to
6868988
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 👍
…aphapi (#7020) * addressing the reviews * addressing the review * refactored test code * updated expected failures file
…aphapi (#7020) * addressing the reviews * addressing the review * refactored test code * updated expected failures file
…aphapi (#7020) * addressing the reviews * addressing the review * refactored test code * updated expected failures file
…aphapi (#7020) * addressing the reviews * addressing the review * refactored test code * updated expected failures file
Description
This PR refactors the user deletion test code from provisioning to graphapi
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: