Skip to content

Commit

Permalink
[JENKINS-74858] resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasdrolia committed Nov 29, 2024
1 parent 1c6282e commit abfae0b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ private static void validatePasswordLengthForFIPSStep(JenkinsRule j) throws Exce
HudsonPrivateSecurityRealm securityRealm = new HudsonPrivateSecurityRealm(false, false, null);
j.jenkins.setSecurityRealm(securityRealm);

User u1 = securityRealm.createAccount("test", "password");
User u1 = securityRealm.createAccount("test", "aValidFipsPass");

WebClient wc = j.createWebClient();
wc.login("test","password");
wc.login("test","aValidFipsPass");

HtmlPage configurePage = wc.goTo(u1.getUrl() + "/security/");
HtmlPasswordInput password1 = configurePage.getElementByName("user.password");
Expand All @@ -188,11 +188,11 @@ private static void validatePasswordMismatchForFIPSStep(JenkinsRule j) throws Ex
HudsonPrivateSecurityRealm securityRealm = new HudsonPrivateSecurityRealm(false, false, null);
j.jenkins.setSecurityRealm(securityRealm);

User u1 = securityRealm.createAccount("test", "password");
User u1 = securityRealm.createAccount("test", "aValidFipsPass");


WebClient wc = j.createWebClient();
wc.login("test","password");
wc.login("test","aValidFipsPass");

HtmlPage configurePage = wc.goTo(u1.getUrl() + "/security/");
HtmlPasswordInput password1 = configurePage.getElementByName("user.password");
Expand All @@ -216,10 +216,10 @@ private static void validatePasswordSuccessForFIPSStep(JenkinsRule j) throws Exc
HudsonPrivateSecurityRealm securityRealm = new HudsonPrivateSecurityRealm(false, false, null);
j.jenkins.setSecurityRealm(securityRealm);

User u1 = securityRealm.createAccount("test", "password");
User u1 = securityRealm.createAccount("test", "aValidFipsPass");

WebClient wc = j.createWebClient();
wc.login("test","password");
wc.login("test","aValidFipsPass");

HtmlPage configurePage = wc.goTo(u1.getUrl() + "/security/");
HtmlPasswordInput password1 = configurePage.getElementByName("user.password");
Expand Down

0 comments on commit abfae0b

Please sign in to comment.