Skip to content

Commit

Permalink
Merge pull request #10985 from owncloud/create-auth-app-norm-user-imp
Browse files Browse the repository at this point in the history
[tests-only][full-ci] adding test for trying to impersonation and create auth app-token
  • Loading branch information
nirajacharya2 authored Feb 27, 2025
2 parents c954c90 + 3dc9cf4 commit 04875ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/acceptance/features/apiAuthApp/token.feature
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,11 @@ Feature: create auth-app token
And the content in the response should include the following content:
"""
error parsing expiry. Use e.g. 30m or 72h
"""
"""

@env-config
Scenario: try to create an auth-app token for a user by a non-admin user
Given user "Brian" has been created with default attributes
And the config "AUTH_APP_ENABLE_IMPERSONATION" has been set to "true"
When user "Alice" tries to create auth-app token for user "Brian" with expiration time "72h" using the auth-app API
Then the HTTP status code should be "403"

0 comments on commit 04875ba

Please sign in to comment.