-
Notifications
You must be signed in to change notification settings - Fork 371
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
[JENKINS-73053] Allow users with Overall/Manage permission to configure endpoints #784
Conversation
…re endpoints See [JENKINS-73053](https://issues.jenkins.io/browse/JENKINS-73053).
Do I get it right that this only fixes permission checks on form validation and dropdowns and that the actual submission of a new endpoint was already allowed? |
I was missing a |
@@ -90,6 +91,13 @@ public void canPostAsAdmin_doCheckApiUri() throws Exception { | |||
assertTrue(TestRoot.get().visited); | |||
} | |||
|
|||
@Test |
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.
👍
@Issue("JENKINS-73053") | ||
public void manageCanSetupEndpoints() throws Exception { | ||
HtmlPage htmlPage = j.createWebClient().login("alice").goTo("manage/configure"); | ||
assertTrue(htmlPage.getVisibleText().contains("GitHub Enterprise Servers")); |
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.
Does not verify that you can actually save new endpoints, but that is much harder to test in WebClient (given YUI craziness), and I guess ought to be implied by the same getRequiredGlobalConfigPagePermission
. Did you at least try it interactively? (Most easily by just setting a breakpoint in this test and then logging in as alice
/ alice
from a real browser.)
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.
Verified manually. It works as expected.
Description
Allow users with Overall/Manage permission to configure endpoints. See JENKINS-73053 for further information.
Submitter checklist
Reviewer checklist
Documentation changes
Users/aliases to notify