Files

36 lines
1.3 KiB
Gherkin
Raw Permalink Normal View History

2023-01-02 17:26:54 +05:45
Feature: refuse access
As an administrator
I want to refuse access to unauthenticated and disabled users
So that I can secure the system
Background:
Given using OCS API version "1"
2024-08-12 17:43:46 +05:45
@smokeTest @issue-2285
2023-06-05 17:18:44 +05:45
Scenario Outline: unauthenticated call
2023-01-02 17:26:54 +05:45
# cannot perform with spaces WebDAV due to the absence of user
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
2023-01-02 17:26:54 +05:45
When an unauthenticated client connects to the DAV endpoint using the WebDAV API
Then the HTTP status code should be "401"
And there should be no duplicate headers
And the following headers should be set
| header | value |
| WWW-Authenticate | Basic realm="%productname%", charset="UTF-8" |
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |
2023-01-02 17:26:54 +05:45
2024-08-12 17:43:46 +05:45
@issue-2285
2023-06-05 17:18:44 +05:45
Scenario Outline: disabled user cannot use webdav
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
And user "Alice" has been created with default attributes
2023-01-02 17:26:54 +05:45
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
And user "Alice" has been disabled
When user "Alice" downloads file "/textfile0.txt" using the WebDAV API
Then the HTTP status code should be "401"
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |
| spaces |