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
8281717: Cover logout method for several LoginModule #7940
Conversation
👋 Welcome back ssahoo! A progress list of the required criteria for merging this PR into |
Webrevs
|
"SolarisLoginModule", "optional"); | ||
try { | ||
login("windows", "NTLoginModule", "required"); | ||
login("unix", "UnixLoginModule", "required"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing this code. Test earlier skipped UnixLoginModule early on "nix" platform as windows login would fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will run on all platform even the unsuccessful ones appear before.
} | ||
UNIX_MODULE, "optional", | ||
NT_MODULE, "optional"); | ||
login(OS.replaceAll("[^a-zA-Z0-9]", ""), getPlatformLoginModule(), "required"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for addressing it!
* @test | ||
* @bug 8039951 | ||
* @bug 8039951 8281717 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add bug id here as this is not a product change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Updated exception handling to ignore the case where the running platform doesn't match the test case. In that case required native library loading will fail.
@sisahoo This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 56 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
1 similar comment
/integrate |
Going to push as commit fbb8ca5.
Your commit was automatically rebased without conflicts. |
@sisahoo The command |
Added coverage to logout method.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7940/head:pull/7940
$ git checkout pull/7940
Update a local copy of the PR:
$ git checkout pull/7940
$ git pull https://git.openjdk.java.net/jdk pull/7940/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7940
View PR using the GUI difftool:
$ git pr show -t 7940
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7940.diff