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-57965] Prevent save of KubernetesSlave through UI #514
Conversation
Not sure if test timeouts are flakes or not. I did notice this which might be related:
|
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesSlave.java
Outdated
Show resolved
Hide resolved
I looked at the failure, and what I understood is the following:
|
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.
If you want to write a functional test for it, use
JenkinsRule.createDummySecurityRealm
+MockAuthorizationStrategy
(actually not even necessary since you are denying permission even to admins)JenkinsRule.WebClient.goTo
or similar overloads
public boolean hasPermission(Authentication a, Permission permission) { | ||
if (permission== Computer.CONFIGURE) | ||
return false; | ||
return base.hasPermission(a,permission); |
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.
nonstandard formatting these three lines, FYI
No description provided.