adding test for creating auth token for an app using cli

This commit is contained in:
Niraj Acharya
2024-12-24 09:56:07 +05:45
parent 9a1015839b
commit 558839faa6
5 changed files with 96 additions and 21 deletions
@@ -0,0 +1,16 @@
@env-config
Feature: create auth-app token
As an admin
I want to create auth-app Tokens
So that I can use 3rd party apps
Scenario: creates auth-app token via CLI
Given the following configs have been set:
| config | value |
| OCIS_ADD_RUN_SERVICES | auth-app |
| PROXY_ENABLE_APP_AUTH | true |
And user "Alice" has been created with default attributes
When the administrator creates app token for user "Alice" with expiration time "72h" using the auth-app CLI
Then the command should be successful
And the command output should contain "App token created for Alice"