RFR: 8335172: Add manual steps to run security/auth/callback/TextCallbackHandler/Password.java test
Rajan Halade
rhalade at openjdk.org
Tue Aug 6 17:27:33 UTC 2024
On Mon, 29 Jul 2024 12:43:04 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:
> The test: **com/sun/security/auth/callback/TextCallbackHandler/Password.java** would benefit from detailed manual steps to ensure it runs correctly. It was added to the problem list because it was not executed properly and failed. Providing these steps will help prevent such issues in the future.
>
> This test cannot be automated because [util/Password.java](https://github.com/openjdk/jdk/blob/cd52ad80a82c8165424722dcddd37d6584137031/src/java.base/share/classes/sun/security/util/Password.java#L58) verifies that the given input stream is equal to the **initialSystemIn**. As a result, the test cannot simulate user input by providing a custom input stream.
>
> Additionally, move it from **jdk_security_manual_no_input** to **jdk_security_manual_interactive** because the user needs to enter several passwords and verify the console output. Also, the test was originally introduced in ticket ID: 6829785, added that information.
Marked as reviewed by rhalade (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/20374#pullrequestreview-2221874764
More information about the security-dev
mailing list