RFR: 8281717: Cover logout method for several LoginModule [v2]
Sibabrata Sahoo
ssahoo at openjdk.java.net
Mon Mar 28 07:02:27 UTC 2022
On Thu, 24 Mar 2022 23:02:47 GMT, Rajan Halade <rhalade at openjdk.org> wrote:
>> Sibabrata Sahoo has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Update AllPlatforms.java
>> - Update AllPlatforms.java
>
> test/jdk/com/sun/security/auth/module/AllPlatforms.java line 26:
>
>> 24: /*
>> 25: * @test
>> 26: * @bug 8039951 8281717
>
> No need to add bug id here as this is not a product change.
Done.
> test/jdk/com/sun/security/auth/module/AllPlatforms.java line 44:
>
>> 42: try {
>> 43: login("windows", "NTLoginModule", "required");
>> 44: login("unix", "UnixLoginModule", "required");
>
> thanks for fixing this code. Test earlier skipped UnixLoginModule early on "nix" platform as windows login would fail.
It will run on all platform even the unsuccessful ones appear before.
> test/jdk/com/sun/security/auth/module/AllPlatforms.java line 45:
>
>> 43: UNIX_MODULE, "optional",
>> 44: NT_MODULE, "optional");
>> 45: login(OS.replaceAll("[^a-zA-Z0-9]", ""), getPlatformLoginModule(), "required");
>
> I think test should still be run on all platforms even though login would fail. On other platforms than the test being run on, test shouldn't fail with "UnsatisfiedLinkError" as per JDK-8039951.
Now it will run in all platform other than the running one and the expected failure is LoginException. So any other types of Exception will be treated as failure including UnsatisfiedLinkError.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7940
More information about the security-dev
mailing list