[JIRA] (JENKINS-49470) wizardInstallSuggestedTest failing due to Expected: has logged in user adminUser but: adminUser is not logged in.

2 views
Skip to first unread message

m.vilacides@gmail.com (JIRA)

unread,
Feb 9, 2018, 4:14:01 AM2/9/18
to jenkinsc...@googlegroups.com
Isa Vilacides created an issue
 
Jenkins / Bug JENKINS-49470
wizardInstallSuggestedTest failing due to Expected: has logged in user adminUser but: adminUser is not logged in.
Issue Type: Bug Bug
Assignee: Isa Vilacides
Components: acceptance-test-harness
Created: 2018-02-09 09:13
Environment: All browsers and all versions of both jenkins and acceptance-test-harness
Priority: Minor Minor
Reporter: Isa Vilacides

The wizardInstallSuggestedTest has been failing since months ago  (it looks like it never worked) https://ci.jenkins.io/job/Core/job/acceptance-test-harness/job/master/28/testReport/core/InstallWizardTest/wizardInstallSuggestedTest/ with

{code}

java.lang.AssertionError: Expected: has logged in user adminUser but: adminUser is not logged in. at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.junit.Assert.assertThat(Assert.java:865) at org.junit.Assert.assertThat(Assert.java:832) at core.InstallWizardTest.wizardInstallSuggestedTest(InstallWizardTest.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.jenkinsci.test.acceptance.junit.Since$RuleImpl$1.evaluate(Since.java:49) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1$2$1.evaluate(JenkinsAcceptanceTestRule.java:175) at org.jenkinsci.test.acceptance.junit.FilterRule$1.evaluate(FilterRule.java:63) at org.jenkinsci.test.acceptance.junit.WithInstallWizard$RuleImpl$1.evaluate(WithInstallWizard.java:43) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1.evaluate(JenkinsAcceptanceTestRule.java:60) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

{code}

 

The test is asserting for /user/username and the username is sanitized. The username provided is camel case and after sanitizing there are no capital letters there, hence, the assertion fails. It looks like it never worked since there have been no code changes that make the behaviour different.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

m.vilacides@gmail.com (JIRA)

unread,
Feb 9, 2018, 4:14:03 AM2/9/18
to jenkinsc...@googlegroups.com
Isa Vilacides started work on Bug JENKINS-49470
 
Change By: Isa Vilacides
Status: Open In Progress

m.vilacides@gmail.com (JIRA)

unread,
Feb 9, 2018, 4:21:01 AM2/9/18
to jenkinsc...@googlegroups.com
Isa Vilacides updated an issue
Change By: Isa Vilacides
The wizardInstallSuggestedTest has been failing since months ago  (it looks like it never worked) [https://ci.jenkins.io/job/Core/job/acceptance-test-harness/job/master/28/testReport/core/InstallWizardTest/wizardInstallSuggestedTest/] with

\{code}

java.lang.AssertionError: Expected: has logged in user adminUser but: adminUser is not logged in. at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.junit.Assert.assertThat(Assert.java:865) at org.junit.Assert.assertThat(Assert.java:832) at core.InstallWizardTest.wizardInstallSuggestedTest(InstallWizardTest.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.jenkinsci.test.acceptance.junit.Since$RuleImpl$1.evaluate(Since.java:49) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1$2$1.evaluate(JenkinsAcceptanceTestRule.java:175) at org.jenkinsci.test.acceptance.junit.FilterRule$1.evaluate(FilterRule.java:63) at org.jenkinsci.test.acceptance.junit.WithInstallWizard$RuleImpl$1.evaluate(WithInstallWizard.java:43) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1.evaluate(JenkinsAcceptanceTestRule.java:60) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

\{code}

 

The test is asserting for /user/username and the username is sanitized. The username provided is camel case and after sanitizing there are no capital letters there, hence, the assertion fails. It looks like it never worked since there have been no code changes that make the behaviour different and in the test history I cannot see any green https://ci . jenkins.io/job/Core/job/acceptance-test-harness/job/master/56/testReport/junit/core/InstallWizardTest/wizardInstallSuggestedTest/history/

m.vilacides@gmail.com (JIRA)

unread,
Feb 9, 2018, 4:21:02 AM2/9/18
to jenkinsc...@googlegroups.com

m.vilacides@gmail.com (JIRA)

unread,
Jun 4, 2019, 12:10:02 PM6/4/19
to jenkinsc...@googlegroups.com
Change By: Isa Vilacides
Status: In Review Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages