Test duration : 60.792s
Failed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiWithMessageExpiration | ||
testMessageExpiration | 58.821s |
2020-10-27 22:32:14 |
java.lang.AssertionError: User: admin@test-domain.com should have received message: r5tc5o0207 expected [true] but found [false]
2020-10-27 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration] 2020-10-27 22:32:14 | ------------------------------------ 2020-10-27 22:32:14 | [Mutex] isItemNotified: node_xtjn6a0203:exists :: false 2020-10-27 22:32:14 | [Mutex] waiting for: [node_xtjn6a0203:create_node] 2020-10-27 22:32:14 | [Mutex] received everything. 2020-10-27 22:32:14 | [Mutex] isItemNotified: node_xtjn6a0203:create_node:success :: true 2020-10-27 22:32:14 | [Mutex] waiting for: [node_xtjn6a0203:subscribe_node] 2020-10-27 22:32:14 | [Mutex] waiting for: [node_xtjn6a0203:subscribe_node] 2020-10-27 22:32:14 | [Mutex] received everything. 2020-10-27 22:32:14 | [Mutex] isItemNotified: node_xtjn6a0203:subscribe_node:success :: true 2020-10-27 22:32:14 | ===== publishing normal message (to online) 2020-10-27 22:32:14 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-10-27 22:32:14 | command: <data><node>node_xtjn6a0203</node><entry><content>content_y4uu3c0204</content></entry></data> 2020-10-27 22:32:14 | target: http://localhost:8088 2020-10-27 22:32:14 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false] 2020-10-27 22:32:14 | entity: <data><node>node_xtjn6a0203</node><entry><content>content_y4uu3c0204</content></entry></data> 2020-10-27 22:32:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Oct 2020 05:32:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-10-27 22:32:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ccf2d1f5-5026-444c-a254-da89c6ff20f0</value></item-id></result> 2020-10-27 22:32:14 | contains: true 2020-10-27 22:32:14 | [Mutex] received everything. 2020-10-27 22:32:14 | [Mutex] isItemNotified: user_regular473quh0202@test-domain.com:message:received:content_y4uu3c0204 :: true 2020-10-27 22:32:14 | ===== publishing already old message - expecting message being filtered out (to online) 2020-10-27 22:32:14 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-10-27 22:32:14 | command: <data><node>node_xtjn6a0203</node><expire-at>2020-10-28T05:32:09Z</expire-at><entry><content>content_nmn4sb0205</content></entry></data> 2020-10-27 22:32:14 | target: http://localhost:8088 2020-10-27 22:32:14 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false] 2020-10-27 22:32:14 | entity: <data><node>node_xtjn6a0203</node><expire-at>2020-10-28T05:32:09Z</expire-at><entry><content>content_nmn4sb0205</content></entry></data> 2020-10-27 22:32:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Oct 2020 05:32:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-10-27 22:32:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>be557c7f-a7f7-458b-a847-42c80a7c58dc</value></item-id></result> 2020-10-27 22:32:14 | contains: true 2020-10-27 22:32:14 | [Mutex] waiting for: [user_regular473quh0202@test-domain.com:message:received:content_nmn4sb0205] 2020-10-27 22:32:29 | [Mutex] timeout. Not received [user_regular473quh0202@test-domain.com:message:received:content_nmn4sb0205] 2020-10-27 22:32:29 | [Mutex] isItemNotified: user_regular473quh0202@test-domain.com:message:received:content_nmn4sb0205 :: false 2020-10-27 22:32:29 | ===== publishing normal message (to offline) 2020-10-27 22:32:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-10-27 22:32:29 | command: <data><node>node_xtjn6a0203</node><entry><content>content_d7lmdg0206</content></entry></data> 2020-10-27 22:32:29 | target: http://localhost:8088 2020-10-27 22:32:29 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false] 2020-10-27 22:32:29 | entity: <data><node>node_xtjn6a0203</node><entry><content>content_d7lmdg0206</content></entry></data> 2020-10-27 22:32:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Oct 2020 05:32:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-10-27 22:32:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>bdfcc560-35ad-44b8-b08d-02b4196d0144</value></item-id></result> 2020-10-27 22:32:29 | contains: true 2020-10-27 22:32:35 | [Mutex] waiting for: [user_regular473quh0202@test-domain.com:message:received:content_d7lmdg0206] 2020-10-27 22:32:35 | [Mutex] received everything. 2020-10-27 22:32:35 | [Mutex] isItemNotified: user_regular473quh0202@test-domain.com:message:received:content_d7lmdg0206 :: true 2020-10-27 22:32:35 | ===== publishing already old message - expecting message being filtered out (to offline) 2020-10-27 22:32:35 | [Mutex] received everything. 2020-10-27 22:32:35 | [Mutex] isItemNotified: node_xtjn6a0203:subscribe_node:success :: true 2020-10-27 22:32:35 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-10-27 22:32:35 | command: <data><node>node_xtjn6a0203</node><expire-at>2020-10-28T05:32:40Z</expire-at><entry><content>content_r5tc5o0207</content></entry></data> 2020-10-27 22:32:35 | target: http://localhost:8088 2020-10-27 22:32:35 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false] 2020-10-27 22:32:35 | entity: <data><node>node_xtjn6a0203</node><expire-at>2020-10-28T05:32:40Z</expire-at><entry><content>content_r5tc5o0207</content></entry></data> 2020-10-27 22:32:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Oct 2020 05:32:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-10-27 22:32:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8259af55-c652-4106-9001-db705f40adb4</value></item-id></result> 2020-10-27 22:32:35 | contains: true 2020-10-27 22:32:43 | [Mutex] waiting for: [user_regular473quh0202@test-domain.com:message:received:content_r5tc5o0207] 2020-10-27 22:32:58 | [Mutex] timeout. Not received [user_regular473quh0202@test-domain.com:message:received:content_r5tc5o0207] 2020-10-27 22:32:58 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_r5tc5o0207] 2020-10-27 22:33:13 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_r5tc5o0207] 2020-10-27 22:33:13 | [Mutex] isItemNotified: user_regular473quh0202@test-domain.com:message:received:content_r5tc5o0207 :: false 2020-10-27 22:33:13 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_r5tc5o0207 :: false
org.testng.Assert.fail(Assert.java:99)
org.testng.Assert.failNotEquals(Assert.java:1037) org.testng.Assert.assertTrue(Assert.java:45) tigase.tests.pubsub.TestRestApiWithMessageExpiration.testMessageExpiration(TestRestApiWithMessageExpiration.java:180) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:566) org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132) org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599) org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174) org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822) org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147) org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) java.base/java.util.ArrayList.forEach(ArrayList.java:1541) org.testng.TestRunner.privateRun(TestRunner.java:764) org.testng.TestRunner.run(TestRunner.java:585) org.testng.SuiteRunner.runTest(SuiteRunner.java:384) org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378) org.testng.SuiteRunner.privateRun(SuiteRunner.java:337) org.testng.SuiteRunner.run(SuiteRunner.java:286) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) org.testng.TestNG.runSuitesSequentially(TestNG.java:1218) org.testng.TestNG.runSuitesLocally(TestNG.java:1140) org.testng.TestNG.runSuites(TestNG.java:1069) org.testng.TestNG.run(TestNG.java:1037) org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283) org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) |