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 acceptance tests for sharing files and folders with another user #12632

Conversation

danxuliu
Copy link
Member

The changes in this pull request are only related to tests; I needed some of the steps to write new tests in Talk, so I took the opportunity to add tests for the server too ;-)

As the feature and context files for the Files app was growing too much I extracted those things related to sharing to their own feature and context files.

@danxuliu danxuliu added the 3. to review Waiting for reviews label Nov 23, 2018
@danxuliu danxuliu added this to the Nextcloud 16 milestone Nov 23, 2018
@danxuliu
Copy link
Member Author

/backport to 15

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
To reshare a file there must be at least three enabled users in the
system; although it would be possible to run the steps to create a third
user in the scenarios that need it for convenience a third enabled user
besides "admin" and "user0" was added to the default setup.

In a similar way, a new step was added too to login as a given user
name, similar to the steps to log in as "user0" and as "admin".

Finally, another actor, "Jim", was introduced for those scenarios which
should be played by three standard actors (that is, without a special
configuration like "Rubeus").

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Having both "FilesAppSharingContext" and "FilesSharingAppContext" was
confusing, so "FilesSharingAppContext" was renamed to a more descriptive
name.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the add-acceptance-tests-for-sharing-files-and-folders-with-another-user branch from 27b49e9 to 4d4032b Compare November 23, 2018 14:14
@danxuliu
Copy link
Member Author

danxuliu commented Nov 24, 2018

The acceptance tests failures are unrelated:

  • the failure in app-comments is fixed by Make acceptance tests for comments more robust #12649
  • the failure in app-files is a timeout
  • the failure in header is a crash in the PHP built-in server
  • the failure in apps is caused by the Antivurs app not being available yet for Nextcloud 16 in the app store (@rullzer Could you release an updated version? :-) ).

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 26, 2018
@rullzer
Copy link
Member

rullzer commented Nov 26, 2018

Yes I'll do that. But I need to fix some stuff in there as well

@MorrisJobke MorrisJobke merged commit db4a6e9 into master Nov 26, 2018
@MorrisJobke MorrisJobke deleted the add-acceptance-tests-for-sharing-files-and-folders-with-another-user branch November 26, 2018 10:22
@danxuliu
Copy link
Member Author

/backport to stable15

@backportbot-nextcloud
Copy link

backport to stable15 in #12700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants