You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in ocis every share needs to be accepted first, how should we deal with that in the tests
make the step Given parameter "shareapi_auto_accept_share" of app "core" has been set to "yes" set some flag, so that the tests know to accept shares without it being mentioned in the Gherkin
duplicate tests
in OCIS shares are accessible via the Shares folder.
make the test be aware of that, so that it does not need to be mentioned in the Gherkin. But how to deal with when the tests check the existence of files/folders? The test code would have to know that this particular item is to be expected in the Shares folder or outside.
add %SharesFolder% in front of every item that is expected to be a Share, in ocis-tests substitute that to Shares. This would not work for tests that expect the receiving item to ass (2) to the name if an item with the same name exists
Also see owncloud/ocis-reva#415 - which is a more general issue to enable as many API test scenarios as "reasonable" so that they are run in CI, listed in expected-failures and "ready to be made to pass"
core PR owncloud/core#37881 has the way forward for this. It creates new sharing scenarios that have share_folder set to Shares and auto-accept of shares off. That corresponds to the default OCIS settings. Those new scenarios run on both ownCloud10 and OCIS. See the PR for a detailed description of what is done with tags, scenario background, accepting received shares etc.
This issue can now be assigned to someone to do similar with the remaining sharing API tests.
Note: apiSharePublicLink1 and apiSharePublicLink2 do not need to be adjusted - those test scenarios do not depend on the setting of share_folder or the state of "auto-accept shares".
Activity
phil-davis commentedon Sep 3, 2020
Also see owncloud/ocis-reva#415 - which is a more general issue to enable as many API test scenarios as "reasonable" so that they are run in CI, listed in expected-failures and "ready to be made to pass"
phil-davis commentedon Sep 3, 2020
Note: PR owncloud/core#37774 did enable a small number tests that happened to pass.
phil-davis commentedon Sep 11, 2020
core PR owncloud/core#37881 has the way forward for this. It creates new sharing scenarios that have
share_folderset toSharesand auto-accept of shares off. That corresponds to the default OCIS settings. Those new scenarios run on both ownCloud10 and OCIS. See the PR for a detailed description of what is done with tags, scenario background, accepting received shares etc.This issue can now be assigned to someone to do similar with the remaining sharing API tests.
phil-davis commentedon Sep 11, 2020
I moved this to ToDo in Sprint 20-17 because there seems be no other sprint to choose.
haribhandari07 commentedon Sep 18, 2020
apiShareReshare1 [Tests-Only] Refactor apiShareReshare1 to use Shares folder core#37916
apiShareReshare2 [Tests-Only] Refactor reshare2 test suite to use root and share folder core#37919
apiShareReshare3 [Tests-Only] Refactor apiShareReshare3 to use Shares folder core#37918
apiShareManagementBasic [Tests-Only] Refactor createShareToShareFolder.feature to use Shares folder core#37881
apiShareUpdate [Tests-Only] refactor updateShare suite for Shares subfolder and root core#37927
apiShareNotifications [Tests-Only] Refactor apiShareNotifications to use Shares folder core#37928
apiShareOperations [Tests-Only] refactor shareOperations test suite for Shares subfolder and root core#37930
apiShareCreateSpecial1 [Tests-Only] Refactor apiShareCreateSpecial1 to use Shares folder core#37938
apiShareCreateSpecial2 [Tests-Only] Refactor apiShareCreateSpecial2 to use Shares folder core#37929
apiSharees (tests independent of share folder so skipped cc @phil-davis )
apiShareManagement [Tests-Only] refactor shareManagement test suite for Shares subfolder and root core#37936
apiFederation [Tests-Only] Refactor federation sharing tests for shares folder core#37967
Note:
apiSharePublicLink1andapiSharePublicLink2do not need to be adjusted - those test scenarios do not depend on the setting ofshare_folderor the state of "auto-accept shares".phil-davis commentedon Sep 20, 2020
@haribhandari07 please also assign anyone else who is working on this.
dpakach commentedon Sep 23, 2020
Phoenix WebUI Tests
dpakach commentedon Oct 16, 2020
Webui tests to enable in CI