RFR: 8342270: Test sun/security/pkcs11/Provider/RequiredMechCheck.java needs write access to src tree [v2]

duke duke at openjdk.org
Wed Nov 6 16:26:33 UTC 2024


On Thu, 24 Oct 2024 10:01:42 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:

>> The test sun/security/pkcs11/Provider/RequiredMechCheck.java extends sun/security/pkcs11/PKCS11Test.java, which sets up a PKCS11Provider configured with NSS config files located in the source tree directory (sun/security/pkcs11/nss) for the dependent tests to run properly. This test currently fails if that **pkcs11/nss** directory is made read-only because these config files are updated during the test execution. Files located in the source tree should not be modified when running tests. 
>> This PR updates the PKCS11Test to copy the NSS config files to the Jtreg scratch directory and configures the provider to use those files instead.
>
> Fernando Guallini has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reusing Utils.CopyFiles

@fguallini 
Your change (at version 1b1eae9511a81edc8036adb8380a3ca95ab565b8) is now ready to be sponsored by a Committer.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21665#issuecomment-2460228544


More information about the security-dev mailing list