-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-16615. Add password check for credential provider #1614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
91a5ea6
dfff1e9
de6e75e
8cf3b20
6a4d257
966115e
d3f90ca
e19324b
2eb3d3e
12caecb
4dadefc
8b41d45
41cb0bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,11 +174,20 @@ public void testPromptForCredential() throws Exception { | |
| assertEquals(0, rc); | ||
| assertTrue(outContent.toString().contains("credential1 has been successfully " + | ||
| "created.")); | ||
|
|
||
| String[] args2 = {"delete", "credential1", "-f", "-provider", | ||
| jceksProvider}; | ||
|
|
||
| String[] args2 = {"check", "credential1", "-provider", | ||
| jceksProvider}; | ||
| ArrayList<String> password = new ArrayList<String>(); | ||
| password.add("p@ssw0rd"); | ||
| shell.setPasswordReader(new MockPasswordReader(password)); | ||
| rc = shell.run(args2); | ||
| assertEquals(0, rc); | ||
| assertTrue(outContent.toString().contains("Password match success for credential1.")); | ||
|
||
|
|
||
| String[] args3 = {"delete", "credential1", "-f", "-provider", | ||
| jceksProvider}; | ||
| rc = shell.run(args3); | ||
| assertEquals(0, rc); | ||
| assertTrue(outContent.toString().contains("credential1 has been successfully " + | ||
| "deleted.")); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.