-
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
add test framework for doing full request webdav tests #18127
Conversation
* @param ExceptionPlugin $exceptionPlugin | ||
* @return Server | ||
*/ | ||
protected function getSabreServer(View $view, $user, $password, ExceptionPlugin $exceptionPlugin) { |
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.
Please move this into a real class instead of duplicating the init code.
Then use that method also from remote.php.
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.
Done
Otherwise this is a nice addition. 😄 |
5f21820
to
779e75b
Compare
jenkins passed on ci-pr |
@DeepDiver1975 @PVince81 @MorrisJobke can this be merged? |
@@ -33,51 +33,23 @@ | |||
// Turn off output buffering to prevent memory problems | |||
\OC_Util::obEnd(); | |||
|
|||
$serverFactory = new \OC\Connector\Sabre\ServerFactory( |
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.
Awwwyeah
@owncloud-bot retest this please |
|
||
// Load plugins | ||
$defaults = new \OC_Defaults(); | ||
$server->addPlugin(new \OC\Connector\Sabre\BlockLegacyClientPlugin($this->config)); |
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.
When comparing the lists, this one also isn't present in publicwebdav. Let's hope this won't cause side effects.
|
@icewind1991 please have a look |
b9284db
to
b7cbff2
Compare
A new inspection was created. |
Fixed |
👍 works |
1 similar comment
👍 |
add test framework for doing full request webdav tests
Makes it easy to write test that emulate a full webdav request, including all the sabre logic.
The tests are initially meant for #17811 but I figured it would be better to review this seperately.
cc @DeepDiver1975 @PVince81