Skip to content

Testing Scenarios 2.1

ckamm edited this page Nov 10, 2015 · 18 revisions
  • The flow of when a login window was changed, so it would be nice to verify that we don't either: Enter an infinite loop of showing notifications since a login window is expected to end the loop (but would not happen in some cases) Or that a login window should be shown, but that a "can't login" notification is shown instead (for example if a Sign In button is pressed).
  • A notification should be shown if the login credentials have been invalidated by the server, or at startup
  • A login window should be shown if the user explicitly request to login, either through the new Sign In button in the account settings, either through the tray icon.

The client should work with a server setup with file firewall properly. To test set, set up a file firewall on the server, configure some cases where the firewall refuses some files to be uploaded and check if the client displays proper error messages and such.

Acceptance criteria: Local repository discovery does not take noticeable time any more. Uploads of new files start immediately.

  • If the free disk space is below a critical amount (C), syncs won't start.
  • If the free disk space falls below a critical amount (C) at the start of a sync download, the sync is aborted.
  • If a download would reduce the free disk space below a buffer amount (B), the download is skipped.
  • Skipped downloads produce an error once and are blacklisted - they only appear as soft errors from then on.

Test hints:

  • The default for the critical amount (C) is 50 MB and can be overridden with the OWNCLOUD_CRITICAL_FREE_SPACE environment variable (the value is in bytes).
  • The default for the buffer amount (B) is 250 MB and can be overridden with OWNCLOUD_FREE_SPACE environment variable.

Possible test cases:

  • Set OWNCLOUD_CRITICAl_FREE_SPACE to a value that's around, but less than, the current free space. Check that up and downloads work. Check that once the threshold is passed, no syncs are done.
  • Set OWNCLOUD_FREE_SPACE to a value that's around, but less than, the current free space. Check that small downloads still work, but files that'd make it cross the threshold are not downloaded.

When a directory is shared as read-only, the files inside will be marked as such. When the share permissions are changed, the file permissions are updated.