From 838957c64189b1c928b4ee16bde36ad60834792d Mon Sep 17 00:00:00 2001 From: amrita Date: Wed, 28 Sep 2022 11:25:35 +0545 Subject: [PATCH 1/5] Refactor expected-failure-file and closed issue related scenario --- tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md | 3 --- tests/acceptance/features/apiArchiver/downloadByPath.feature | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index d0b1a898e54..edc0e4fcc9f 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -1,9 +1,6 @@ ## Scenarios from OCIS API tests that are expected to fail with OCIS storage The expected failures in this file are from features in the owncloud/ocis repo. -#### [downloading an archive with invalid path returns HTTP/500](https://github.com/owncloud/ocis/issues/2768) -- [apiArchiver/downloadByPath.feature:69](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiArchiver/downloadByPath.feature#L69) - #### [Downloading the archive of the resource (files | folder) using resource path is not possible](https://github.com/owncloud/ocis/issues/4637) - [apiArchiver/downloadByPath.feature:26](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiArchiver/downloadByPath.feature#L26) - [apiArchiver/downloadByPath.feature:27](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiArchiver/downloadByPath.feature#L27) diff --git a/tests/acceptance/features/apiArchiver/downloadByPath.feature b/tests/acceptance/features/apiArchiver/downloadByPath.feature index 8f109658aff..60d37662e29 100644 --- a/tests/acceptance/features/apiArchiver/downloadByPath.feature +++ b/tests/acceptance/features/apiArchiver/downloadByPath.feature @@ -68,7 +68,7 @@ Feature: download multiple resources bundled into an archive Scenario: download a not existing single file When user "Alice" downloads the archive of "/doesnotexist.txt" of user "Alice" using the resource path - Then the HTTP status code should be "400" + Then the HTTP status code should be "404" Scenario: download multiple shared items as share receiver From ceea69616675de0c36539db88ba9d7608fdbe0b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:13:44 +0000 Subject: [PATCH 2/5] Bump github.com/xhit/go-simple-mail/v2 from 2.11.0 to 2.12.0 Bumps [github.com/xhit/go-simple-mail/v2](https://github.com/xhit/go-simple-mail) from 2.11.0 to 2.12.0. - [Release notes](https://github.com/xhit/go-simple-mail/releases) - [Commits](https://github.com/xhit/go-simple-mail/compare/v2.11.0...v2.12.0) --- updated-dependencies: - dependency-name: github.com/xhit/go-simple-mail/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 4308b59f2d3..75068df520d 100644 --- a/go.mod +++ b/go.mod @@ -64,7 +64,7 @@ require ( github.com/thejerf/suture/v4 v4.0.2 github.com/tus/tusd v1.9.2 github.com/urfave/cli/v2 v2.16.3 - github.com/xhit/go-simple-mail/v2 v2.11.0 + github.com/xhit/go-simple-mail/v2 v2.12.0 go-micro.dev/v4 v4.8.1 go.etcd.io/bbolt v1.3.6 go.etcd.io/etcd/client/v3 v3.5.5 diff --git a/go.sum b/go.sum index 1fcd0f307c5..6bd06a3fe6c 100644 --- a/go.sum +++ b/go.sum @@ -1236,8 +1236,8 @@ github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6 github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xhit/go-simple-mail/v2 v2.11.0 h1:o/056V50zfkO3Mm5tVdo9rG3ryg4ZmJ2XW5GMinHfVs= -github.com/xhit/go-simple-mail/v2 v2.11.0/go.mod h1:b7P5ygho6SYE+VIqpxA6QkYfv4teeyG4MKqB3utRu98= +github.com/xhit/go-simple-mail/v2 v2.12.0 h1:KweA6NO8Z6fZyeckMPNpvElU6QDIyBShlpce1sYUZgg= +github.com/xhit/go-simple-mail/v2 v2.12.0/go.mod h1:b7P5ygho6SYE+VIqpxA6QkYfv4teeyG4MKqB3utRu98= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xlab/treeprint v1.1.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= From 9b04d430da2b925132d0eef17d3da0c2b371b97f Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Thu, 29 Sep 2022 09:47:10 +0545 Subject: [PATCH 3/5] Improve the documentation for NFS share --- docs/ocis/storage-backends/dcfsnfs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ocis/storage-backends/dcfsnfs.md b/docs/ocis/storage-backends/dcfsnfs.md index 6ef13be37aa..4de0ee83ad2 100644 --- a/docs/ocis/storage-backends/dcfsnfs.md +++ b/docs/ocis/storage-backends/dcfsnfs.md @@ -9,7 +9,7 @@ geekdocFilePath: dcfsnfs.md {{< toc >}} -oCIS' default storage backend is the Decomposed FS. The Decomposed FS can be set up to run on a NFS share. That way the same storage can be provided over network to other nodes running oCIS. +oCIS' default storage backend is the Decomposed FS. The Decomposed FS can be set up to run on a NFS share. That way the same storage can be provided over the network to other nodes running oCIS. This document summarizes a few important considerations of the NFS setup and describes a tested setup. The test has not covered concurrent access of data from different nodes yet. @@ -39,7 +39,7 @@ The test setup uses the client mount command: `mount -t nfs -o nfsvers=4 192.168 It sets the NFS version to 4, which is important to support extended attributes. -After successful mounting the storage on the client, it can be checked if the NFS setup really supports extended attributes properly using the following commands. +After successfully mounting the storage on the client, it can be checked if the NFS setup really supports extended attributes properly using the following commands. `setfattr -n user.test -v "xattr test string" ocisdata/foo` to write an extended attribute to a file, and `getfattr -d ocisdata/foo` to list all the attributes a file has set. @@ -54,8 +54,8 @@ The oCIS server can be instructed to set up the decomposed FS at a certain path The test setup started an oCIS tech preview single binary release using this start command: ```bash -ocis init -OCIS_BASE_DATA_PATH=/mnt/ocisdata/ OCIS_LOG_LEVEL=debug OCIS_INSECURE=true PROXY_HTTP_ADDR=0.0.0.0:9200 OCIS_URL=https://hostname:9200 ./ocis-1.18.0-linux-amd64 server +./ocis init +OCIS_BASE_DATA_PATH=/mnt/ocisdata/ OCIS_LOG_LEVEL=debug OCIS_INSECURE=true PROXY_HTTP_ADDR=0.0.0.0:9200 OCIS_URL=https://hostname:9200 ./ocis server ``` This starts oCIS and a decomposed FS skeleton file system structure is set up on the NFS share. From 46cd7b45f4fbdf2028769e17a464894a5e371f2f Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 26 Sep 2022 10:08:41 +0545 Subject: [PATCH 4/5] shares jail spaces related tests separated to apiSpacesShares suite --- .drone.star | 1 + tests/acceptance/config/behat.yml | 20 +++++++++++++++++++ ...ected-failures-localAPI-on-OCIS-storage.md | 12 +++++------ .../changingFilesShare.feature | 0 .../checksum.feature | 0 .../copySpaces.feature | 0 ...eateFileFolderWhenSharesSpaceExist.feature | 0 .../etagPropagation.feature | 0 .../favorite.feature | 0 .../moveSpaces.feature | 0 .../shareOperations.feature | 0 .../shareSpaces.feature | 0 .../shareSpacesViaLink.feature | 0 .../shareSubItemOfSpace.feature | 0 .../shareSubItemOfSpaceViaPublicLink.feature | 0 .../shareUploadTUS.feature | 0 16 files changed, 27 insertions(+), 6 deletions(-) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/changingFilesShare.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/checksum.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/copySpaces.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/createFileFolderWhenSharesSpaceExist.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/etagPropagation.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/favorite.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/moveSpaces.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/shareOperations.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/shareSpaces.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/shareSpacesViaLink.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/shareSubItemOfSpace.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/shareSubItemOfSpaceViaPublicLink.feature (100%) rename tests/acceptance/features/{apiSpaces => apiSpacesShares}/shareUploadTUS.feature (100%) diff --git a/.drone.star b/.drone.star index d9d3742548a..2fd08ba7065 100644 --- a/.drone.star +++ b/.drone.star @@ -347,6 +347,7 @@ def testPipelines(ctx): pipelines += [ localApiTests(ctx, "ocis", "apiAccountsHashDifficulty"), localApiTests(ctx, "ocis", "apiSpaces"), + localApiTests(ctx, "ocis", "apiSpacesShares"), localApiTests(ctx, "ocis", "apiArchiver"), localApiTests(ctx, "ocis", "apiGraph"), ] diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index 956f2c3cc6c..a90da2fb3ec 100644 --- a/tests/acceptance/config/behat.yml +++ b/tests/acceptance/config/behat.yml @@ -51,6 +51,26 @@ default: - TUSContext: - SpacesTUSContext: + apiSpacesShares: + paths: + - '%paths.base%/../features/apiSpacesShares' + context: *common_ldap_suite_context + contexts: + - SpacesContext: + - OccContext: + - FeatureContext: *common_feature_context_params + - CapabilitiesContext: + - ChecksumContext: + - FavoritesContext: + - FilesVersionsContext: + - OCSContext: + - PublicWebDavContext: + - SearchContext: + - TrashbinContext: + - WebDavPropertiesContext: + - TUSContext: + - SpacesTUSContext: + apiArchiver: paths: - '%paths.base%/../features/apiArchiver' diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index edc0e4fcc9f..97d70fbb5d3 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -24,16 +24,16 @@ The expected failures in this file are from features in the owncloud/ocis repo. - [apiGraph/createGroupCaseSensitive.feature:21](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/createGroupCaseSensitive.feature#L21) ### [PROPFIND on accepted shares with identical names containing brackets exit with 404](https://github.com/owncloud/ocis/issues/4421) -- [apiSpaces/changingFilesShare.feature:12](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/changingFilesShare.feature#L12) +- [apiSpacesShares/changingFilesShare.feature:12](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/changingFilesShare.feature#L12) ### [copy to overwrite (file and folder) from Personal to Shares Jail behaves differently](https://github.com/owncloud/ocis/issues/4393) -- [apiSpaces/copySpaces.feature:488](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/copySpaces.feature#L488) -- [apiSpaces/copySpaces.feature:502](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/copySpaces.feature#L502) +- [apiSpacesShares/copySpaces.feature:488](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/copySpaces.feature#L488) +- [apiSpacesShares/copySpaces.feature:502](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/copySpaces.feature#L502) ### [search doesn't find the project space by name](https://github.com/owncloud/ocis/issues/4506) - [apiSpaces/search.feature:95](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/search.feature#L95) #### [PATCH request for TUS upload with wrong checksum gives incorrect response](https://github.com/owncloud/ocis/issues/1755) -- [apiSpaces/shareUploadTUS.feature:204](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/shareUploadTUS.feature#L204) -- [apiSpaces/shareUploadTUS.feature:219](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/shareUploadTUS.feature#L219) -- [apiSpaces/shareUploadTUS.feature:284](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/shareUploadTUS.feature#L284) +- [apiSpacesShares/shareUploadTUS.feature:204](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/shareUploadTUS.feature#L204) +- [apiSpacesShares/shareUploadTUS.feature:219](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/shareUploadTUS.feature#L219) +- [apiSpacesShares/shareUploadTUS.feature:284](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/shareUploadTUS.feature#L284) diff --git a/tests/acceptance/features/apiSpaces/changingFilesShare.feature b/tests/acceptance/features/apiSpacesShares/changingFilesShare.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/changingFilesShare.feature rename to tests/acceptance/features/apiSpacesShares/changingFilesShare.feature diff --git a/tests/acceptance/features/apiSpaces/checksum.feature b/tests/acceptance/features/apiSpacesShares/checksum.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/checksum.feature rename to tests/acceptance/features/apiSpacesShares/checksum.feature diff --git a/tests/acceptance/features/apiSpaces/copySpaces.feature b/tests/acceptance/features/apiSpacesShares/copySpaces.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/copySpaces.feature rename to tests/acceptance/features/apiSpacesShares/copySpaces.feature diff --git a/tests/acceptance/features/apiSpaces/createFileFolderWhenSharesSpaceExist.feature b/tests/acceptance/features/apiSpacesShares/createFileFolderWhenSharesSpaceExist.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/createFileFolderWhenSharesSpaceExist.feature rename to tests/acceptance/features/apiSpacesShares/createFileFolderWhenSharesSpaceExist.feature diff --git a/tests/acceptance/features/apiSpaces/etagPropagation.feature b/tests/acceptance/features/apiSpacesShares/etagPropagation.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/etagPropagation.feature rename to tests/acceptance/features/apiSpacesShares/etagPropagation.feature diff --git a/tests/acceptance/features/apiSpaces/favorite.feature b/tests/acceptance/features/apiSpacesShares/favorite.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/favorite.feature rename to tests/acceptance/features/apiSpacesShares/favorite.feature diff --git a/tests/acceptance/features/apiSpaces/moveSpaces.feature b/tests/acceptance/features/apiSpacesShares/moveSpaces.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/moveSpaces.feature rename to tests/acceptance/features/apiSpacesShares/moveSpaces.feature diff --git a/tests/acceptance/features/apiSpaces/shareOperations.feature b/tests/acceptance/features/apiSpacesShares/shareOperations.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/shareOperations.feature rename to tests/acceptance/features/apiSpacesShares/shareOperations.feature diff --git a/tests/acceptance/features/apiSpaces/shareSpaces.feature b/tests/acceptance/features/apiSpacesShares/shareSpaces.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/shareSpaces.feature rename to tests/acceptance/features/apiSpacesShares/shareSpaces.feature diff --git a/tests/acceptance/features/apiSpaces/shareSpacesViaLink.feature b/tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/shareSpacesViaLink.feature rename to tests/acceptance/features/apiSpacesShares/shareSpacesViaLink.feature diff --git a/tests/acceptance/features/apiSpaces/shareSubItemOfSpace.feature b/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/shareSubItemOfSpace.feature rename to tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature diff --git a/tests/acceptance/features/apiSpaces/shareSubItemOfSpaceViaPublicLink.feature b/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpaceViaPublicLink.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/shareSubItemOfSpaceViaPublicLink.feature rename to tests/acceptance/features/apiSpacesShares/shareSubItemOfSpaceViaPublicLink.feature diff --git a/tests/acceptance/features/apiSpaces/shareUploadTUS.feature b/tests/acceptance/features/apiSpacesShares/shareUploadTUS.feature similarity index 100% rename from tests/acceptance/features/apiSpaces/shareUploadTUS.feature rename to tests/acceptance/features/apiSpacesShares/shareUploadTUS.feature From 10955e52a5b0da0d10cf0b6ab50e276c0f12588e Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Thu, 29 Sep 2022 12:37:50 +0545 Subject: [PATCH 5/5] Fix path name in ocis_s3 docs (#4709) --- docs/ocis/deployment/ocis_s3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ocis/deployment/ocis_s3.md b/docs/ocis/deployment/ocis_s3.md index d1bac9fd939..4b599c3afa6 100644 --- a/docs/ocis/deployment/ocis_s3.md +++ b/docs/ocis/deployment/ocis_s3.md @@ -45,7 +45,7 @@ See also [example server setup]({{< ref "preparing_server" >}}) * Go to the deployment example - `cd ocis/deployment/examples/ocis_s3` + `cd ocis/deployments/examples/ocis_s3` * Open the `.env` file in a text editor The file by default looks like this: