-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10660 from owncloud/test-auth-app-token
[tests-only][full-ci] adding test for creating auth token for an app using cli
- Loading branch information
Showing
5 changed files
with
96 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/acceptance/features/cliCommands/authAppToken.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |