@@ -36,8 +36,10 @@ Feature: enforce password on public link
3636 Scenario Outline : create a public link with viewer permission without a password when enforce-password is enabled
3737 Given the following configs have been set:
3838 | service | config | value |
39- | sharing | OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
40- | sharing | OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
39+ | sharing | SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
40+ | sharing | SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
41+ | frontend | OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
42+ | frontend | OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
4143 And user "Alice" has been created with default attributes
4244 And user "Alice" has uploaded file with content "test file" to "/testfile.txt"
4345 And using OCS API version "<ocs-api-version>"
@@ -57,6 +59,8 @@ Feature: enforce password on public link
5759 | service | config | value |
5860 | sharing | SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
5961 | sharing | SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
62+ | frontend | OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
63+ | frontend | OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
6064 And user "Alice" has been created with default attributes
6165 And user "Alice" has uploaded file with content "test file" to "/testfile.txt"
6266 And using OCS API version "<ocs-api-version>"
@@ -179,14 +183,19 @@ Feature: enforce password on public link
179183
180184 Scenario Outline : try to update a public link with a password that does not comply with the password policy
181185 Given the following configs have been set:
182- | service | config | value |
183- | sharing | OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
184- | sharing | OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
185- | sharing | OCIS_PASSWORD_POLICY_MIN_CHARACTERS | 13 |
186- | sharing | OCIS_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS | 3 |
187- | sharing | OCIS_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS | 2 |
188- | sharing | OCIS_PASSWORD_POLICY_MIN_DIGITS | 1 |
189- | sharing | OCIS_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 2 |
186+ | service | config | value |
187+ | sharing | SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD | false |
188+ | sharing | SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD | true |
189+ | sharing | SHARING_PASSWORD_POLICY_MIN_CHARACTERS | 13 |
190+ | sharing | SHARING_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS | 3 |
191+ | sharing | SHARING_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS | 2 |
192+ | sharing | SHARING_PASSWORD_POLICY_MIN_DIGITS | 1 |
193+ | sharing | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 2 |
194+ | frontend | FRONTEND_PASSWORD_POLICY_MIN_CHARACTERS | 13 |
195+ | frontend | FRONTEND_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS | 3 |
196+ | frontend | FRONTEND_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS | 2 |
197+ | frontend | FRONTEND_PASSWORD_POLICY_MIN_DIGITS | 1 |
198+ | frontend | FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 2 |
190199 And user "Alice" has been created with default attributes
191200 And user "Alice" has uploaded file with content "test file" to "/testfile.txt"
192201 And using OCS API version "<ocs-api-version>"
@@ -215,7 +224,10 @@ Feature: enforce password on public link
215224
216225
217226 Scenario Outline : create a public link with a password in accordance with the password policy (valid cases)
218- Given the config "<config>" has been set to "<config-value>" for "<service>" service
227+ Given the following configs have been set:
228+ | service | config | value |
229+ | sharing | <sharing -config > | <config -value > |
230+ | frontend | <frontend -config > | <config -value > |
219231 And using OCS API version "2"
220232 And user "Alice" has been created with default attributes
221233 And user "Alice" has uploaded file with content "test file" to "/testfile.txt"
@@ -230,15 +242,15 @@ Feature: enforce password on public link
230242 And the public should not be able to download file "/testfile.txt" from inside the last public link shared folder using the public WebDAV API with password "wrong pass"
231243 But the public should be able to download file "/testfile.txt" from inside the last public link shared folder using the public WebDAV API with password "<password>"
232244 Examples :
233- | service | config | config -value | password |
234- | sharing | OCIS_PASSWORD_POLICY_MIN_CHARACTERS | 4 | Ps -1 |
235- | sharing | SHARING_PASSWORD_POLICY_MIN_CHARACTERS | 14 | Ps1 :with space |
236- | sharing | SHARING_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS | 4 | PS1 :test |
237- | sharing | SHARING_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS | 3 | PS1 :Te ƒsT |
238- | sharing | SHARING_PASSWORD_POLICY_MIN_DIGITS | 2 | PS1 :test2 |
239- | sharing | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 2 | PS1 :test pass |
240- | sharing | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 33 | pS1 ! #$%&'()*+,-./:;<=>?@[\]^_ `{ }~ |
241- | sharing | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 5 | 1sameCharacterShouldWork !!!!! |
245+ | sharing - config | frontend - config | config -value | password |
246+ | SHARING_PASSWORD_POLICY_MIN_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_CHARACTERS | 4 | Ps -1 |
247+ | SHARING_PASSWORD_POLICY_MIN_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_CHARACTERS | 14 | Ps1 :with space |
248+ | SHARING_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS | 4 | PS1 :test |
249+ | SHARING_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS | 3 | PS1 :Te ƒsT |
250+ | SHARING_PASSWORD_POLICY_MIN_DIGITS | FRONTEND_PASSWORD_POLICY_MIN_DIGITS | 2 | PS1 :test2 |
251+ | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 2 | PS1 :test pass |
252+ | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 33 | pS1 ! #$%&'()*+,-./:;<=>?@[\]^_ `{ }~ |
253+ | SHARING_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS | 5 | 1sameCharacterShouldWork !!!!! |
242254
243255
244256 Scenario Outline : try to create a public link with a password that does not comply with the password policy (invalid cases)
0 commit comments