From c635d1aed2f1c239dcf2a834f274f785a684f82e Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 21 Jan 2019 09:42:44 +0545 Subject: [PATCH 1/5] Cut down drone and webUISharingExternal suite for testing in stable10 (1) --- .drone.yml | 499 +++--------------- .../federationSharing.feature | 2 +- .../shareByPublicLink.feature | 301 ----------- 3 files changed, 72 insertions(+), 730 deletions(-) delete mode 100644 tests/acceptance/features/webUISharingExternal/shareByPublicLink.feature diff --git a/.drone.yml b/.drone.yml index f68a12f12eab..c35224d77e60 100644 --- a/.drone.yml +++ b/.drone.yml @@ -421,7 +421,7 @@ pipeline: commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh - - make test-acceptance-webui TESTING_REMOTE_SYSTEM=true + - make test-acceptance-webui TESTING_REMOTE_SYSTEM=true RERUN_FAILED_WEBUI_SCENARIOS=false when: matrix: TEST_SUITE: selenium @@ -591,12 +591,6 @@ matrix: PHP_VERSION: 7.1 COVERAGE: true - - PHP_VERSION: 5.6 - DB_TYPE: postgres - TEST_SUITE: phpunit - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - # owncloud-coding-standard # Run with PHP 5.6 because that is not supported by phan. # This gives us a syntax check for PHP 5.6 @@ -608,158 +602,12 @@ matrix: PHP_VERSION: 7.1 # Litmus - - PHP_VERSION: 7.1 - USE_SERVER: true - TEST_SUITE: litmus - INSTALL_SERVER: true - OWNCLOUD_LOG: true - # Unit Tests - - PHP_VERSION: 7.1 - DB_TYPE: mysql - TEST_SUITE: phpunit - COVERAGE: true - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - DB_TYPE: mysqlmb4 - TEST_SUITE: phpunit - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - DB_TYPE: postgres - TEST_SUITE: phpunit - COVERAGE: true - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - DB_TYPE: oracle - TEST_SUITE: phpunit - COVERAGE: true - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - DB_TYPE: sqlite - TEST_SUITE: phpunit - COVERAGE: true - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - # PHP 7.2 - - PHP_VERSION: 7.2 - DB_TYPE: sqlite - TEST_SUITE: phpunit - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.2 - DB_TYPE: mariadb - TEST_SUITE: phpunit - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - # Files External - - PHP_VERSION: 7.1 - TEST_SUITE: phpunit - COVERAGE: true - DB_TYPE: sqlite - FILES_EXTERNAL_TYPE: webdav_apache - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: phpunit - COVERAGE: true - DB_TYPE: sqlite - FILES_EXTERNAL_TYPE: smb_samba - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: phpunit - COVERAGE: true - DB_TYPE: sqlite - FILES_EXTERNAL_TYPE: smb_windows - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: phpunit - COVERAGE: true - DB_TYPE: sqlite - FILES_EXTERNAL_TYPE: swift - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - # Primary Objectstorage - - PHP_VERSION: 5.6 - TEST_SUITE: phpunit - DB_TYPE: sqlite - OBJECTSTORE: swift - PRIMARY_OBJECTSTORE: swift - FILES_EXTERNAL_TYPE: swift - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: phpunit - COVERAGE: true - DB_TYPE: sqlite - OBJECTSTORE: swift - PRIMARY_OBJECTSTORE: swift - FILES_EXTERNAL_TYPE: swift - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - - # files_primary_s3 - - - PHP_VERSION: 7.1 - TEST_SUITE: phpunit - COVERAGE: true - DB_TYPE: sqlite - OBJECTSTORE: scality - PRIMARY_OBJECTSTORE: files_primary_s3 - INSTALL_SERVER: true - INSTALL_TESTING_APP: true - # API Acceptance tests + # UI Acceptance tests - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiMain - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiCapabilities - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiComments - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiFederation + TEST_SUITE: selenium + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true USE_FEDERATED_SERVER: true @@ -768,169 +616,15 @@ matrix: CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiFavorites - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiProvisioning-v1 - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiProvisioning-v2 - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiSharees - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiShareManagement - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiShareOperations - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiSharingNotifications - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - INSTALL_NOTIFICATIONS_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiTags - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiTrashbin - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiWebdavOperations - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: api - BEHAT_SUITE: apiWebdavProperties - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - # CLI Provisioning Acceptance tests - - PHP_VERSION: 7.1 - TEST_SUITE: cli - BEHAT_SUITE: cliProvisioning - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true USE_EMAIL: true - # CLI Main Acceptance tests - - PHP_VERSION: 7.1 - TEST_SUITE: cli - BEHAT_SUITE: cliMain - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - # CLI Background Acceptance tests - - PHP_VERSION: 7.1 - TEST_SUITE: cli - BEHAT_SUITE: cliBackground - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - # CLI Trashbin Acceptance tests - - PHP_VERSION: 7.1 - TEST_SUITE: cli - BEHAT_SUITE: cliTrashbin - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - # UI Acceptance tests - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIAdminSettings + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true @@ -939,49 +633,37 @@ matrix: - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIComments - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: selenium - BEHAT_SUITE: webUIEncryptionUserKeysType - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - - PHP_VERSION: 7.1 - TEST_SUITE: selenium - BEHAT_SUITE: webUIFavorites + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIFiles + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUILogin + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true @@ -990,19 +672,24 @@ matrix: - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIMoveFilesFolders + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIPersonalSettings + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true @@ -1011,33 +698,42 @@ matrix: - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIRenameFiles + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIRenameFolders + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIRestrictSharing + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium @@ -1054,171 +750,118 @@ matrix: - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUISharingInternalGroups + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUISharingInternalUsers + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUISharingNotifications + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true USE_EMAIL: true - INSTALL_NOTIFICATIONS_APP: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUITags + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUITrashbin + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIUpload + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true - - # This suite is part of the user_management app in later core versions - - PHP_VERSION: 7.1 - TEST_SUITE: selenium - BEHAT_SUITE: webUIManageUsersGroups - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true USE_EMAIL: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - # This suite is part of the user_management app in later core versions - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIManageQuota + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - # This suite is part of the user_management app in later core versions - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUISettingsMenu + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true INSTALL_TESTING_APP: true + USE_EMAIL: true - PHP_VERSION: 7.1 TEST_SUITE: selenium - BEHAT_SUITE: webUIWebdavLocks - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - INSTALL_TESTING_APP: true - - # caldav test - - PHP_VERSION: 7.1 - TEST_SUITE: caldav - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - CALDAV_CARDDAV_JOB: true - - # carddav test - - PHP_VERSION: 7.1 - TEST_SUITE: carddav - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - CALDAV_CARDDAV_JOB: true - - # caldav-old-endpoint test - - PHP_VERSION: 7.1 - TEST_SUITE: caldav-old-endpoint - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - CALDAV_CARDDAV_JOB: true - - # carddav-old-endpoint test - - PHP_VERSION: 7.1 - TEST_SUITE: carddav-old-endpoint - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - CALDAV_CARDDAV_JOB: true - - # encryption tests - - PHP_VERSION: 5.6 - TEST_SUITE: cli - BEHAT_SUITE: cliEncryption + BEHAT_SUITE: webUISharingExternal DB_TYPE: mariadb USE_SERVER: true + USE_FEDERATED_SERVER: true + FEDERATION_OC_VERSION: daily-stable10-qa INSTALL_SERVER: true CHOWN_SERVER: true OWNCLOUD_LOG: true - CONFIGURE_ENCRYPTION: true - ENCRYPTION_TYPE: masterkey INSTALL_TESTING_APP: true + USE_EMAIL: true - - PHP_VERSION: 7.1 - TEST_SUITE: cli - BEHAT_SUITE: cliEncryption - DB_TYPE: mariadb - USE_SERVER: true - INSTALL_SERVER: true - CHOWN_SERVER: true - OWNCLOUD_LOG: true - CONFIGURE_ENCRYPTION: true - ENCRYPTION_TYPE: masterkey - INSTALL_TESTING_APP: true diff --git a/tests/acceptance/features/webUISharingExternal/federationSharing.feature b/tests/acceptance/features/webUISharingExternal/federationSharing.feature index 11d6236c2de3..daebcef28111 100644 --- a/tests/acceptance/features/webUISharingExternal/federationSharing.feature +++ b/tests/acceptance/features/webUISharingExternal/federationSharing.feature @@ -1,6 +1,6 @@ @webUI @insulated @disablePreviews @TestAlsoOnExternalUserBackend Feature: Federation Sharing - sharing with users on other cloud storages - As a user + As a user 1 I want to share files with any users on other cloud storages So that other users have access to these files diff --git a/tests/acceptance/features/webUISharingExternal/shareByPublicLink.feature b/tests/acceptance/features/webUISharingExternal/shareByPublicLink.feature deleted file mode 100644 index 8b965d8df4e2..000000000000 --- a/tests/acceptance/features/webUISharingExternal/shareByPublicLink.feature +++ /dev/null @@ -1,301 +0,0 @@ -@webUI @insulated @disablePreviews @mailhog @public_link_share-feature-required -Feature: Share by public link - As a user - I want to share files through a publicly accessible link - So that users who do not have an account on my ownCloud server can access them - - As an admin - I want to limit the ability of a user to share files/folders through a publicly accessible link - So that public sharing is limited according to organization policy - - Background: - Given user "user1" has been created with default attributes - And user "user1" has logged in using the webUI - - @smokeTest - Scenario: simple sharing by public link - When the user creates a new public link for folder "simple-folder" using the webUI - And the public accesses the last created public link using the webUI - Then file "lorem.txt" should be listed on the webUI - - @skipOnOcV10.0.3 @feature_was_changed_in_10.0.4 - Scenario: creating a public link with read & write permissions makes it possible to delete files via the link - When the user creates a new public link for folder "simple-folder" using the webUI with - | permission | read-write | - And the public accesses the last created public link using the webUI - And the user deletes the following elements using the webUI - | name | - | simple-empty-folder | - | lorem.txt | - | strängé filename (duplicate #2 &).txt | - | zzzz-must-be-last-file-in-folder.txt | - Then the deleted elements should not be listed on the webUI - And the deleted elements should not be listed on the webUI after a page reload - - @skipOnOcV10.0.3 @feature_was_changed_in_10.0.4 - Scenario: creating a public link with read permissions only makes it impossible to delete files via the link - When the user creates a new public link for folder "simple-folder" using the webUI with - | permission | read | - And the public accesses the last created public link using the webUI - Then it should not be possible to delete file "lorem.txt" using the webUI - - @skipOnINTERNETEXPLORER @skipOnMICROSOFTEDGE @issue-30392 - Scenario: mount public link - Given using server "REMOTE" - And user "user2" has been created with default attributes - When the user creates a new public link for folder "simple-folder" using the webUI - And the user logs out of the webUI - And the public accesses the last created public link using the webUI - And the public adds the public link to "%remote_server%" as user "user2" with password "%alt2%" using the webUI - And the user accepts the offered remote shares using the webUI - Then folder "simple-folder (2)" should be listed on the webUI - When the user opens folder "simple-folder (2)" using the webUI - Then file "lorem.txt" should be listed on the webUI - And the content of "lorem.txt" on the remote server should be the same as the original "simple-folder/lorem.txt" - And it should not be possible to delete file "lorem.txt" using the webUI - - @skipOnINTERNETEXPLORER @skipOnMICROSOFTEDGE @issue-30392 - Scenario: mount public link and overwrite file - Given using server "REMOTE" - And user "user2" has been created with default attributes - When the user creates a new public link for folder "simple-folder" using the webUI with - | permission | read-write | - And the user logs out of the webUI - And the public accesses the last created public link using the webUI - And the public adds the public link to "%remote_server%" as user "user2" with password "%alt2%" using the webUI - And the user accepts the offered remote shares using the webUI - Then folder "simple-folder (2)" should be listed on the webUI - When the user opens folder "simple-folder (2)" using the webUI - Then file "lorem.txt" should be listed on the webUI - And the content of "lorem.txt" on the remote server should be the same as the original "simple-folder/lorem.txt" - When the user uploads overwriting file "lorem.txt" using the webUI and retries if the file is locked - Then file "lorem.txt" should be listed on the webUI - And the content of "lorem.txt" on the remote server should be the same as the local "lorem.txt" - - Scenario: public should be able to access a public link with correct password - When the user creates a new public link for folder "simple-folder" using the webUI with - | password | pass123 | - And the public accesses the last created public link with password "pass123" using the webUI - Then file "lorem.txt" should be listed on the webUI - - Scenario: public should not be able to access a public link with wrong password - When the user creates a new public link for folder "simple-folder" using the webUI with - | password | pass123 | - And the public tries to access the last created public link with wrong password "pass12" using the webUI - Then the public should not get access to the publicly shared file - - Scenario: user shares a public link with folder longer than 64 chars and shorter link name - Given user "user1" has moved folder "simple-folder" to "aquickbrownfoxjumpsoveraverylazydogaquickbrownfoxjumpsoveralazydog" - And the user has reloaded the current page of the webUI - When the user creates a new public link for folder "aquickbrownfoxjumpsoveraverylazydogaquickbrownfoxjumpsoveralazydog" using the webUI with - | name | short_linkname | - And the public accesses the last created public link using the webUI - Then file "lorem.txt" should be listed on the webUI - - Scenario: user tries to create a public link with read only permission without entering share password while enforce password on read only public share is enforced - Given parameter "shareapi_enforce_links_password_read_only" of app "core" has been set to "yes" - When the user tries to create a new public link for folder "simple-folder" using the webUI - Then the user should see an error message on the public link share dialog saying "Passwords are enforced for link shares" - And the public link should not have been generated - - Scenario: user tries to create a public link with read-write permission without entering share password while enforce password on read-write public share is enforced - Given parameter "shareapi_enforce_links_password_read_write" of app "core" has been set to "yes" - When the user tries to create a new public link for folder "simple-folder" using the webUI with - | permission | read-write | - Then the user should see an error message on the public link share dialog saying "Passwords are enforced for link shares" - And the public link should not have been generated - - Scenario: user tries to create a public link with write only permission without entering share password while enforce password on write only public share is enforced - Given parameter "shareapi_enforce_links_password_write_only" of app "core" has been set to "yes" - When the user tries to create a new public link for folder "simple-folder" using the webUI with - | permission | upload | - Then the user should see an error message on the public link share dialog saying "Passwords are enforced for link shares" - And the public link should not have been generated - - Scenario: user creates a public link with read-write permission without entering share password while enforce password on read only public share is enforced - Given parameter "shareapi_enforce_links_password_read_only" of app "core" has been set to "yes" - When the user creates a new public link for folder "simple-folder" using the webUI with - | permission | read-write | - And the public accesses the last created public link using the webUI - Then file "lorem.txt" should be listed on the webUI - - Scenario: public should be able to access the shared file through public link - When the user creates a new public link for file 'lorem.txt' using the webUI - And the public accesses the last created public link using the webUI - Then the text preview of the public link should contain "Lorem ipsum dolor sit amet, consectetur" - And the content of the file shared by the last public link should be the same as "lorem.txt" - - Scenario: user shares a public link via email - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - When the user creates a new public link for folder "simple-folder" using the webUI with - | email | foo@bar.co | - Then the email address "foo@bar.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo@bar.co" should have received an email containing the last shared public link - - Scenario: user shares a public link via email and sends a copy to self - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - When the user creates a new public link for folder "simple-folder" using the webUI with - | email | foo@bar.co | - | emailToSelf | true | - Then the email address "foo@bar.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "user1@example.org" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo@bar.co" should have received an email containing the last shared public link - And the email address "user1@example.org" should have received an email containing the last shared public link - - Scenario: user shares a public link via email with multiple addresses - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - When the user creates a new public link for folder "simple-folder" using the webUI with - | email | foo@bar.co, foo@barr.co | - Then the email address "foo@bar.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo@barr.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo@bar.co" should have received an email containing the last shared public link - And the email address "foo@barr.co" should have received an email containing the last shared public link - - Scenario: user shares a public link via email with a personal message - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - When the user creates a new public link for folder "simple-folder" using the webUI with - | email | foo@bar.co | - | personalMessage | lorem ipsum | - Then the email address "foo@bar.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo@bar.co" should have received an email with the body containing - """ - lorem ipsum - """ - And the email address "foo@bar.co" should have received an email containing the last shared public link - - Scenario: user shares a public link via email adding few addresses before and then removing some addresses afterwards - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - When the user opens the share dialog for folder "simple-folder" - And the user opens the public link share tab - And the user opens the create public link share popup - And the user adds the following email addresses using the webUI: - | email | - | foo1234@bar.co | - | foo5678@bar.co | - | foo1234@barr.co | - | foo5678@barr.co | - And the user removes the following email addresses using the webUI: - | email | - | foo1234@bar.co | - | foo5678@barr.co | - And the user creates the public link using the webUI - Then the email address "foo5678@bar.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo1234@barr.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo5678@bar.co" should have received an email containing the last shared public link - And the email address "foo1234@barr.co" should have received an email containing the last shared public link - But the email address "foo1234@bar.co" should not have received an email - And the email address "foo5678@barr.co" should not have received an email - - Scenario: user edits a public link and does not save the changes - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - And the user has created a new public link for folder "simple-folder" using the webUI with - | email | foo1234@bar.co| - | password| pass123 | - When the user opens the edit public link share popup for the link named "Public link" - And the user enters the password "qwertyui" on the edit public link share popup for the link - And the user does not save any changes in the edit public link share popup - And the public tries to access the last created public link with wrong password "qwertyui" using the webUI - Then the public should not get access to the publicly shared file - - Scenario: user shares a public link via email with a personal message - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - When the user creates a new public link for folder "simple-folder" using the webUI with - | email | foo@bar.co | - | personalMessage | lorem ipsum | - Then the email address "foo@bar.co" should have received an email with the body containing - """ - User One shared simple-folder with you - """ - And the email address "foo@bar.co" should have received an email with the body containing - """ - lorem ipsum - """ - And the email address "foo@bar.co" should have received an email containing the last shared public link - - Scenario: user edits a name of an already existing public link - Given the user has created a new public link for folder "simple-folder" using the webUI - And the user has opened the public link share tab - When the user renames the public link name from "Public link" to "simple-folder Share" - And the public accesses the last created public link using the webUI - Then file "lorem.txt" should be listed on the webUI - - Scenario: user shares a file through public link and then it appears in a Shared by link page - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - And the user has reloaded the current page of the webUI - And the user has created a new public link for folder "simple-folder" using the webUI - When the user browses to the shared-by-link page - Then folder "simple-folder" should be listed on the webUI - - Scenario: user edits the password of an already existing public link - Given the user has created a new public link for folder "simple-folder" using the webUI with - | password | pass123 | - When the user changes the password of the public link named "Public link" to "pass1234" - And the public accesses the last created public link with password "pass1234" using the webUI - Then file "lorem.txt" should be listed on the webUI - - Scenario: user edits the password of an already existing public link and tries to access with old password - Given the user has created a new public link for folder "simple-folder" using the webUI with - | password | pass123 | - When the user changes the password of the public link named "Public link" to "pass1234" - And the public tries to access the last created public link with wrong password "pass123" using the webUI - Then the public should not get access to the publicly shared file - - Scenario: user edits the permission of an already existing public link from read-write to read - Given the user has created a new public link for folder "simple-folder" using the webUI with - | permission | read-write | - When the user changes the permission of the public link named "Public link" to "read" - And the public accesses the last created public link using the webUI - Then file "lorem.txt" should be listed on the webUI - And it should not be possible to delete file "lorem.txt" using the webUI - - Scenario: user edits the permission of an already existing public link from read to read-write - Given the user has created a new public link for folder "simple-folder" using the webUI with - | permission | read | - When the user changes the permission of the public link named "Public link" to "read-write" - And the public accesses the last created public link using the webUI - And the user deletes the following elements using the webUI - | name | - | simple-empty-folder | - | lorem.txt | - Then the deleted elements should not be listed on the webUI - And the deleted elements should not be listed on the webUI after a page reload - - Scenario: share two file with same name but different paths by public link - When the user creates a new public link for file "lorem.txt" using the webUI - And the user closes the details dialog - And the user opens folder "simple-folder" using the webUI - And the user creates a new public link for file "lorem.txt" using the webUI - And the user browses to the shared-by-link page - Then file "lorem.txt" with path "" should be listed in the shared with others page on the webUI - And file "lorem.txt" with path "/simple-folder" should be listed in the shared with others page on the webUI From 027641d5084140923ac011ec1b145257eef9470e Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 21 Jan 2019 09:45:12 +0545 Subject: [PATCH 2/5] NOOP change to make CI run (2) --- .../features/webUISharingExternal/federationSharing.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/webUISharingExternal/federationSharing.feature b/tests/acceptance/features/webUISharingExternal/federationSharing.feature index daebcef28111..9ceaad920f00 100644 --- a/tests/acceptance/features/webUISharingExternal/federationSharing.feature +++ b/tests/acceptance/features/webUISharingExternal/federationSharing.feature @@ -1,6 +1,6 @@ @webUI @insulated @disablePreviews @TestAlsoOnExternalUserBackend Feature: Federation Sharing - sharing with users on other cloud storages - As a user 1 + As a user 2 I want to share files with any users on other cloud storages So that other users have access to these files From 26026fecb059bec9364e6a2aab87f1916b5b2424 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 21 Jan 2019 10:00:38 +0545 Subject: [PATCH 3/5] NOOP change to make CI run (3) --- .../features/webUISharingExternal/federationSharing.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/webUISharingExternal/federationSharing.feature b/tests/acceptance/features/webUISharingExternal/federationSharing.feature index 9ceaad920f00..2e052b890517 100644 --- a/tests/acceptance/features/webUISharingExternal/federationSharing.feature +++ b/tests/acceptance/features/webUISharingExternal/federationSharing.feature @@ -1,6 +1,6 @@ @webUI @insulated @disablePreviews @TestAlsoOnExternalUserBackend Feature: Federation Sharing - sharing with users on other cloud storages - As a user 2 + As a user 3 I want to share files with any users on other cloud storages So that other users have access to these files From 1a3d95c494c8ec7a89dcf7bd9a3d4330fbea7e72 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 21 Jan 2019 10:07:38 +0545 Subject: [PATCH 4/5] NOOP change to make CI run (4) --- .../features/webUISharingExternal/federationSharing.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/webUISharingExternal/federationSharing.feature b/tests/acceptance/features/webUISharingExternal/federationSharing.feature index 2e052b890517..43e4fba0d473 100644 --- a/tests/acceptance/features/webUISharingExternal/federationSharing.feature +++ b/tests/acceptance/features/webUISharingExternal/federationSharing.feature @@ -1,6 +1,6 @@ @webUI @insulated @disablePreviews @TestAlsoOnExternalUserBackend Feature: Federation Sharing - sharing with users on other cloud storages - As a user 3 + As a user 4 I want to share files with any users on other cloud storages So that other users have access to these files From 206c990668673ce94f05b9e9a874c4415813b6e6 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 21 Jan 2019 10:22:15 +0545 Subject: [PATCH 5/5] NOOP change to make CI run (5) --- .../features/webUISharingExternal/federationSharing.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/webUISharingExternal/federationSharing.feature b/tests/acceptance/features/webUISharingExternal/federationSharing.feature index 43e4fba0d473..11332c35dd41 100644 --- a/tests/acceptance/features/webUISharingExternal/federationSharing.feature +++ b/tests/acceptance/features/webUISharingExternal/federationSharing.feature @@ -1,6 +1,6 @@ @webUI @insulated @disablePreviews @TestAlsoOnExternalUserBackend Feature: Federation Sharing - sharing with users on other cloud storages - As a user 4 + As a user 5 I want to share files with any users on other cloud storages So that other users have access to these files