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 integration test for trashbin #27069

Merged
merged 1 commit into from
Feb 2, 2017
Merged

Add integration test for trashbin #27069

merged 1 commit into from
Feb 2, 2017

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Feb 1, 2017

Description

Add test for basic deletion.
Add test when deleting from shared folder as recipient.
Add test to check that metadata stays when moving out of shared folder
as recipient.

Related Issue

This is the base work required to be able to add further tests for #27042

Motivation and Context

We do want tests for trashbin, do we ?

How Has This Been Tested?

Ran the individual scenarios and they passed.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Note that this is using the private trashbin URLs as we don't have anything else.
If you're unhappy about this, then please consider pushing forward the discussion and review my API proposal here: #15646

@owncloud/qa @DeepDiver1975 please review

@mention-bot
Copy link

@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @SergioBertolinSG, @DeepDiver1975 and @davitol to be potential reviewers.

And user "user1" exists
And user "user0" created a folder "/shared"
And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
And file "/shared" of user "user0" is shared with user "user1"
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use folder instead of file

Given /^(file|folder|entry)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

who cares 😉

I thought we could even ask an assertion that checks if the given type matches whatever is given. So if I say "file" but it's a folder, the test would fail. Not sure if this has a big benefit...

And user "user1" exists
And user "user0" created a folder "/shared"
And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
And file "/shared" of user "user0" is shared with user "user1"
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use folder instead of file

Given /^(file|folder|entry)

And user "user0" created a folder "/shared"
And user "user0" created a folder "/shared/sub"
And User "user0" moved file "/textfile0.txt" to "/shared/sub/shared_file.txt"
And file "/shared" of user "user0" is shared with user "user1"
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use folder instead of file

Given /^(file|folder|entry)

Add test for basic deletion.
Add test when deleting from shared folder as recipient.
Add test to check that metadata stays when moving out of shared folder
as recipient.
@PVince81
Copy link
Contributor Author

PVince81 commented Feb 2, 2017

@SergioBertolinSG fixed

@SergioBertolinSG
Copy link
Contributor

SergioBertolinSG commented Feb 2, 2017

Tests passed locally. Run using no variables and with encryption + alt home.

@PVince81 PVince81 merged commit 72a6aca into master Feb 2, 2017
@PVince81 PVince81 deleted the inttest-trashbin-share branch February 2, 2017 10:17
@lock
Copy link

lock bot commented Aug 4, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 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.

3 participants