From 272c95f5d8d541e4e8610c8b4aa5343205f81f94 Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Thu, 6 Dec 2018 15:26:33 +0545 Subject: [PATCH] Test for groups `files:scan` command negative validation --- .../acceptance/features/cliMain/files.feature | 49 +++++++++++++++++-- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/features/cliMain/files.feature b/tests/acceptance/features/cliMain/files.feature index 28219179710c..56b872138c26 100644 --- a/tests/acceptance/features/cliMain/files.feature +++ b/tests/acceptance/features/cliMain/files.feature @@ -110,10 +110,10 @@ Feature: Files Operations command | username | | user0 | | user1 | - When the administrator creates the local storage mount "local_storage1" using the occ command - And the administrator adds user "user0" as the applicable user for the last local storage mount using the occ command - And the administrator creates the local storage mount "local_storage2" using the occ command - And the administrator adds user "user1" as the applicable user for the last local storage mount using the occ command + And the administrator has created the local storage mount "local_storage1" + And the administrator has added user "user0" as the applicable user for the last local storage mount + And the administrator has created the local storage mount "local_storage2" + And the administrator has added user "user1" as the applicable user for the last local storage mount And the administrator has set the external storage "local_storage1" to be never scanned automatically And the administrator has set the external storage "local_storage2" to be never scanned automatically And the administrator has scanned the filesystem for all users @@ -133,6 +133,47 @@ Feature: Files Operations command Then the propfind result of "user1" should not contain these entries: | /local_storage2/hello1.txt | + Scenario: Adding a file on local storage and running file scan for a specific group should add file for only the users of that group + Given using new DAV path + And these users have been created with default attributes: + | username | + | user0 | + | user1 | + | user2 | + And group "newgroup" has been created + And group "newgroup2" has been created + And user "user0" has been added to group "newgroup" + And user "user1" has been added to group "newgroup" + And user "user2" has been added to group "newgroup2" + And the administrator has created the local storage mount "local_storage1" + And the administrator has added group "newgroup" as the applicable group for the last local storage mount + And the administrator has created the local storage mount "local_storage2" + And the administrator has added group "newgroup2" as the applicable group for the last local storage mount + And the administrator has set the external storage "local_storage1" to be never scanned automatically + And the administrator has set the external storage "local_storage2" to be never scanned automatically + And the administrator has scanned the filesystem for all users + When the administrator creates file "hello1.txt" with content "