-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding test for creating auth token for an app using cli
- Loading branch information
1 parent
0832c9b
commit f25c30b
Showing
7 changed files
with
128 additions
and
19 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
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
18 changes: 18 additions & 0 deletions
18
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,18 @@ | ||
@env-config | ||
Feature: create auth token | ||
As an admin | ||
I want to create App Tokens | ||
So that I can use 3rd party apps | ||
|
||
Background: | ||
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 | ||
|
||
|
||
Scenario: creates app token via CLI | ||
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 be "App token created for Alice\r\n\stoken: %short_app_token_pattern%" |