8335172: Add manual steps to run security/auth/callback/TextCallbackHandler/Password.java test

Reviewed-by: rhalade
This commit is contained in:
Fernando Guallini 2024-08-07 18:24:08 +00:00 committed by Rajan Halade
parent 36d08c213d
commit a5c2d7b305
3 changed files with 15 additions and 4 deletions

View File

@ -606,7 +606,6 @@ sun/security/smartcardio/TestExclusive.java 8039280 generic-
sun/security/smartcardio/TestMultiplePresent.java 8039280 generic-all
sun/security/smartcardio/TestPresent.java 8039280 generic-all
sun/security/smartcardio/TestTransmit.java 8039280 generic-all
com/sun/security/auth/callback/TextCallbackHandler/Password.java 8039280 generic-all
com/sun/security/sasl/gsskerb/AuthOnly.java 8039280 generic-all
com/sun/security/sasl/gsskerb/ConfSecurityLayer.java 8039280 generic-all
com/sun/security/sasl/gsskerb/NoSecurityLayer.java 8039280 generic-all

View File

@ -623,7 +623,6 @@ jdk_security_manual_no_input = \
:jdk_security_infra \
com/sun/crypto/provider/Cipher/AEAD/GCMIncrementByte4.java \
com/sun/crypto/provider/Cipher/AEAD/GCMIncrementDirect4.java \
com/sun/security/auth/callback/TextCallbackHandler/Password.java \
com/sun/security/sasl/gsskerb/AuthOnly.java \
com/sun/security/sasl/gsskerb/ConfSecurityLayer.java \
com/sun/security/sasl/gsskerb/NoSecurityLayer.java \
@ -652,6 +651,7 @@ jdk_core_manual_interactive = \
jdk_security_manual_interactive = \
sun/security/tools/keytool/i18n.java \
java/security/Policy/Root/Root.java \
com/sun/security/auth/callback/TextCallbackHandler/Password.java \
sun/security/krb5/config/native/TestDynamicStore.java
# Test sets for running inside container environment

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,11 +23,23 @@
/*
* @test
* @bug 6825240
* @bug 6825240 6829785
* @summary Password.readPassword() echos the input when System.Console is null
* @run main/manual Password
*/
/*
* This scenario cannot be automated because util/Password.java verifies the given input stream is
* equal to the initialSystemIn. This prevents the test from providing a custom input stream.
*
* Steps to run the test:
* 1) Compile the class using the JDK version being tested: '<JdkBin>/javac Password.java'
* 2) Run the test using the JDK version being tested: '<JdkBin>/java -cp . Password'
* 3) Type in the first password, it should not be visible in the console
* 4) Type in the second password, it should be visible in the console
* 5) The final output line displays the entered passwords, both should be visible
*/
import com.sun.security.auth.callback.TextCallbackHandler;
import javax.security.auth.callback.*;