-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fb/alternative uaa user from env (#73)
* new generic env variable replacer * some more reordering * increase mask length * docs: uaa: basic syntax for token via env calls * docs: uaa: added general motivation for env replacement * test: basic testing for cli env replacement * test: cli testing for too many or too few arguments
- Loading branch information
1 parent
f8ffc4d
commit 6e8825b
Showing
6 changed files
with
344 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`cli tests uaa service user via env with service 1`] = ` | ||
[ | ||
[ | ||
"command_and_control", | ||
"freddy", | ||
"is_ready", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user via env with service 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-service-user", | ||
"command_and_control", | ||
"freddy", | ||
"*****", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user via env with service tenant 1`] = ` | ||
[ | ||
[ | ||
"command_and_control", | ||
"freddy", | ||
"is_ready", | ||
"troll_tenant", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user via env with service tenant 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-service-user", | ||
"command_and_control", | ||
"freddy", | ||
"*****", | ||
"troll_tenant", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user with service username password 1`] = ` | ||
[ | ||
[ | ||
"command_and_control", | ||
"freddy", | ||
"is_ready", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user with service username password 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-service-user", | ||
"command_and_control", | ||
"freddy", | ||
"*****", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user with service username password tenant 1`] = ` | ||
[ | ||
[ | ||
"command_and_control", | ||
"freddy", | ||
"is_ready", | ||
"troll_tenant", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa service user with service username password tenant 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-service-user", | ||
"command_and_control", | ||
"freddy", | ||
"*****", | ||
"troll_tenant", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user via env 1`] = ` | ||
[ | ||
[ | ||
"freddy", | ||
"is_ready", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user via env 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-user", | ||
"freddy", | ||
"*****", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user via env with tenant 1`] = ` | ||
[ | ||
[ | ||
"freddy", | ||
"is_ready", | ||
"troll_tenant", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user via env with tenant 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-user", | ||
"freddy", | ||
"*****", | ||
"troll_tenant", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user with too few variables 1`] = ` | ||
[ | ||
"error: command "--uaa-user" requires arguments USERNAME, PASSWORD", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user with too many variables 1`] = ` | ||
[ | ||
"error: command "--uaa-user" takes arguments USERNAME, PASSWORD, TENANT", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user with username password 1`] = ` | ||
[ | ||
[ | ||
"freddy", | ||
"is_ready", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user with username password 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-user", | ||
"freddy", | ||
"*****", | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user with username password tenant 1`] = ` | ||
[ | ||
[ | ||
"freddy", | ||
"is_ready", | ||
"troll_tenant", | ||
], | ||
[ | ||
false, | ||
false, | ||
], | ||
] | ||
`; | ||
|
||
exports[`cli tests uaa user with username password tenant 2`] = ` | ||
[ | ||
"running", | ||
"--uaa-user", | ||
"freddy", | ||
"*****", | ||
"troll_tenant", | ||
] | ||
`; |
Oops, something went wrong.