From 861e32eadb25107871e9c8f78e116b1062b0f8f0 Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Thu, 2 Nov 2023 12:31:19 +0545 Subject: [PATCH] [tests-only][full-ci]Move lock related tests to new suites (#7645) * Move lock related tests to new suites Signed-off-by: Swikriti Tripathi * update expected to fail file Signed-off-by: Swikriti Tripathi --------- Signed-off-by: Swikriti Tripathi --- .drone.star | 1 + tests/acceptance/config/behat.yml | 10 ++++++++++ .../expected-failures-localAPI-on-OCIS-storage.md | 6 +++--- .../features/{apiSpaces => apiLocks}/lockFiles.feature | 0 4 files changed, 14 insertions(+), 3 deletions(-) rename tests/acceptance/features/{apiSpaces => apiLocks}/lockFiles.feature (100%) diff --git a/.drone.star b/.drone.star index 1b8a127a3..49c389c6a 100644 --- a/.drone.star +++ b/.drone.star @@ -73,6 +73,7 @@ config = { "apiReshare", "apiSpacesDavOperation", "apiDepthInfinity", + "apiLocks", ], "skip": False, }, diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index 3ae8006c8..477ec6556 100644 --- a/tests/acceptance/config/behat.yml +++ b/tests/acceptance/config/behat.yml @@ -241,6 +241,16 @@ default: contexts: - FeatureContext: *common_feature_context_params + apiLocks: + paths: + - '%paths.base%/../features/apiLocks' + context: *common_ldap_suite_context + contexts: + - FeatureContext: *common_feature_context_params + - SpacesContext: + - WebDavLockingContext: + - PublicWebDavContext: + extensions: rdx\behatvars\BehatVariablesExtension: ~ diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index 3a73a7e0b..3733be8bd 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -145,9 +145,9 @@ The expected failures in this file are from features in the owncloud/ocis repo. ### [Shared file locking is not possible using different path](https://github.com/owncloud/ocis/issues/7599) -- [apiSpaces/lockFiles.feature:179](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/lockFiles.feature#L179) -- [apiSpaces/lockFiles.feature:180](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/lockFiles.feature#L180) -- [apiSpaces/lockFiles.feature:181](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/lockFiles.feature#L181) +- [apiLocks/lockFiles.feature:179](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiLocks/lockFiles.feature#L179) +- [apiLocks/lockFiles.feature:180](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiLocks/lockFiles.feature#L180) +- [apiLocks/lockFiles.feature:181](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiLocks/lockFiles.feature#L181) Note: always have an empty line at the end of this file. The bash script that processes this file requires that the last line has a newline on the end. diff --git a/tests/acceptance/features/apiSpaces/lockFiles.feature b/tests/acceptance/features/apiLocks/lockFiles.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/lockFiles.feature rename to tests/acceptance/features/apiLocks/lockFiles.feature