Skip to content
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

Merged
merged 5 commits into from
Aug 12, 2015

Conversation

icewind1991
Copy link
Contributor

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

@DeepDiver1975 DeepDiver1975 added this to the 8.2-current milestone Aug 7, 2015
* @param ExceptionPlugin $exceptionPlugin
* @return Server
*/
protected function getSabreServer(View $view, $user, $password, ExceptionPlugin $exceptionPlugin) {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@PVince81
Copy link
Contributor

PVince81 commented Aug 7, 2015

Otherwise this is a nice addition. 😄

@icewind1991
Copy link
Contributor Author

jenkins passed on ci-pr

@icewind1991
Copy link
Contributor Author

@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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awwwyeah

@icewind1991
Copy link
Contributor Author

@owncloud-bot retest this please


// Load plugins
$defaults = new \OC_Defaults();
$server->addPlugin(new \OC\Connector\Sabre\BlockLegacyClientPlugin($this->config));
Copy link
Contributor

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.

@PVince81
Copy link
Contributor

  • TEST: simple sync
  • TEST: smashbox basic sync
  • TEST: federation folder mount
  • TEST: federation file mount
  • TEST: folder public link
  • TEST: file public link

@PVince81
Copy link
Contributor

  • BUG: federation file link appears as folder

@icewind1991 please have a look

@scrutinizer-notifier
Copy link

A new inspection was created.

@icewind1991
Copy link
Contributor Author

BUG: federation file link appears as folder

Fixed

@PVince81
Copy link
Contributor

👍 works

@ghost
Copy link

ghost commented Aug 11, 2015

🚀 Test PASSed.🚀
chuck

1 similar comment
@ghost
Copy link

ghost commented Aug 11, 2015

🚀 Test PASSed.🚀
chuck

@DeepDiver1975
Copy link
Member

👍

DeepDiver1975 added a commit that referenced this pull request Aug 12, 2015
add test framework for doing full request webdav tests
@DeepDiver1975 DeepDiver1975 merged commit eb13cb8 into master Aug 12, 2015
@DeepDiver1975 DeepDiver1975 deleted the dav-request-tests branch August 12, 2015 08:07
@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants