Files

27 lines
850 B
Gherkin
Raw Permalink Normal View History

2023-01-02 17:26:54 +05:45
Feature: auth
As a user
I want to check the authentication of the application
So that I can make sure it's secure
2023-01-02 17:26:54 +05:45
Background:
Given user "Alice" has been created with default attributes
2023-01-02 17:26:54 +05:45
@smokeTest
Scenario Outline: using WebDAV anonymously
When a user requests "<dav-path>" with "PROPFIND" and no authentication
2023-01-02 17:26:54 +05:45
Then the HTTP status code should be "401"
Examples:
| dav-path |
2024-09-17 17:11:20 +05:45
| /webdav |
| /dav/files/%username% |
| /dav/spaces/%spaceid% |
2023-01-02 17:26:54 +05:45
@smokeTest
2023-01-02 17:26:54 +05:45
Scenario Outline: using WebDAV with basic auth
When user "Alice" requests "<dav-path>" with "PROPFIND" using basic auth
2023-01-02 17:26:54 +05:45
Then the HTTP status code should be "207"
Examples:
| dav-path |
2024-09-17 17:11:20 +05:45
| /webdav |
| /dav/files/%username% |
2023-01-02 17:26:54 +05:45
| /dav/spaces/%spaceid% |