-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Integration tests refactoring #26235
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
Conversation
|
@SergioBertolinSG, thanks for your PR! By analyzing the annotation information on this pull request, we identified @PVince81, @rullzer and @DeepDiver1975 to be potential reviewers |
PVince81
left a comment
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.
Looks good to me, up to you if you want to act on my comments. 👍
| } else { | ||
| return $this->davPath . '/files/' . $user . '/'; | ||
| } | ||
| }*/ |
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.
remove commented out code ?
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.
Removed.
| $fullUrl = substr($this->baseUrl, 0, -4) . $this->davPath . "$path"; | ||
| public function makeDavRequest($user, $method, $path, $headers, $body = null, $type = "files"){ | ||
| if ( $type === "files" ){ | ||
| echo "user: " . $user . " method: " . $method . " path: " . $path . " type: " . $type; |
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.
did you use echo just for debugging ? maybe remove it
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.
Removed.
| Given using new dav path | ||
| And As an "admin" | ||
| When Downloading file "welcome.txt" | ||
| When Downloading file "/welcome.txt" |
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'm not sure we really need to enforce that, unless we want this level of precision.
In PHP it's easy to force add a slash without double by doing something like '/' . ltrim($path, '/')
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 want to have it consistent and use slash before always, having it different is confusing.
|
Looks good, merging |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Refactor of webdav trait to be more readable and clear.
Use of initial slash '/' as standard way for dealing with files and folders in gherkin.
Motivation and Context
There is confusion about how the code works.
#26098 (comment)
How Has This Been Tested?
Running tests locally.
Checklist: