[midPoint] v.3.2 failed tests

Pavol Mederly mederly at evolveum.com
Tue Aug 11 16:21:11 CEST 2015


Fixes committed. You can rerun the tests, if you wish (I only ran the 
two tests you mentioned with TZ set to Yekaterinburg time :)
I hope there will be no other timezone-dependent ones.

Best regards,
Pavol

> Hello Oleg,
>
> yes, 3.2 release is stable. In our case, all tests passed without 
> problems, see e.g. https://bamboo.evolveum.com/browse/MID-TRUNK-3578 
> (testing 3.2 as it was released - regular tests), or 
> https://bamboo.evolveum.com/browse/MID-LONG-518 (the same with 
> extended tests). There are some recent (3.3-SNAPSHOT) test failures 
> but these seem to be caused by a bug in a newly added test, so they 
> will be corrected soon.
>
> I've looked at the failing tests i.e. CleanupTest and 
> TestExpressionFunctions. Both seem to have problems because of the 
> timezone. I'm fixing them and will push the commit today. (CleanupTest 
> also depends on the execution order within task-quartz-impl module, 
> which I also fixed, even if it hasn't manifested as test failure yet.)
>
> But these test failures had no effect on the midPoint 3.2 
> functionality. You can safely use it.
>
> Best regards,
> Pavol
>
>> Hello guys.
>>
>> Today I tried to build midPoint v.3.2 but got 2 failed tests.
>> Just in case, I would like to be sure that release v.3.2 is stable.
>>
>> My JDK:
>> java version "1.7.0_79"
>> Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
>> Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
>>
>> Maven command: mvn clean install (from midpoint root dir)
>> And, just to mention, I did not change the code (only commented out 
>> first failed test to see if any next fails)
>>
>>
>> Running TestSuite
>> Tests run: 24, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
>> 104.4 sec <<< FAILURE! - in TestSuite
>> testTasksCleanup(com.evolveum.midpoint.task.quartzimpl.CleanupTest) 
>>  Time elapsed: 0.397 sec  <<< FAILURE!
>> java.lang.AssertionError: expected:<1> but was:<2>
>>         at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
>>         at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
>>         at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
>>         at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245)
>>         at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
>>         at 
>> com.evolveum.midpoint.task.quartzimpl.CleanupTest.testTasksCleanup(CleanupTest.java:99)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at 
>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
>>         at 
>> org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200)
>>         at 
>> org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:172)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at 
>> org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
>>         at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
>>         at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
>>         at 
>> org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
>>         at 
>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
>>         at 
>> org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
>>         at org.testng.TestRunner.privateRun(TestRunner.java:767)
>>         at org.testng.TestRunner.run(TestRunner.java:617)
>>         at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
>>         at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
>>         at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
>>         at org.testng.SuiteRunner.run(SuiteRunner.java:254)
>>         at 
>> org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>         at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>         at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
>>         at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
>>         at org.testng.TestNG.run(TestNG.java:1057)
>>         at 
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:293)
>>         at 
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
>>         at 
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:91)
>>         at 
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>>         at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>>         at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>
>>
>> Results :
>>
>> Failed tests:
>> CleanupTest>AbstractTestNGSpringContextTests.run:172->testTasksCleanup:99 
>> expected:<1> but was:<2>
>> (and this failed after I commented out CleanUpTest and re-ran entire 
>> build)
>>
>> Tests run: 239, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
>> 83.123 sec <<< FAILURE! - in TestSuite
>> testFormatDateTime(com.evolveum.midpoint.model.common.expression.script.TestExpressionFunctions) 
>>  Time elapsed: 2.306 sec  <<< FAILURE!
>> java.lang.AssertionError: Wrong result value expected:<1975 05 30 
>> 22:30:00.000 Central European Time> but was:<1975 05 31 00:30:00.000 
>> Eastern African Time>
>>         at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:101)
>>         at 
>> com.evolveum.midpoint.model.common.expression.script.TestExpressionFunctions.testFormatDateTime(TestExpressionFunctions.java:357)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at 
>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
>>         at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
>>         at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
>>         at 
>> org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
>>         at 
>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
>>         at 
>> org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
>>         at org.testng.TestRunner.privateRun(TestRunner.java:767)
>>         at org.testng.TestRunner.run(TestRunner.java:617)
>>         at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
>>         at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
>>         at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
>>         at org.testng.SuiteRunner.run(SuiteRunner.java:254)
>>         at 
>> org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>         at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>         at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
>>         at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
>>         at org.testng.TestNG.run(TestNG.java:1057)
>>         at 
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:293)
>>         at 
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
>>         at 
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:91)
>>         at 
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>>         at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>>         at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>
>>
>> Results :
>>
>> Failed tests:
>>   TestExpressionFunctions.testFormatDateTime:357 Wrong result value 
>> expected:<1975 05 30 22:30:00.000 Central European Time> but 
>> was:<1975 05 31 00:30:00.000 Eastern African Time>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150811/ae4a1463/attachment.htm>


More information about the midPoint mailing list