Files
ocis/tests/acceptance/features/coreApiAuth/webDavAuth.feature
Lukas Hirt 9df76933da fix(proxy): [OCISDEV-330] add webdav without trailing slash
Added the `/webdav` endpoint without a trailing slash into the proxy default config.
This makes sure that requests to `/webdav` without a trailing slash are handled
by ocdav service instead of web service.
2025-09-22 11:54:54 +02:00

28 lines
850 B
Gherkin

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