Test duration : 60.538s
Failed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiWithMessageExpiration | ||
testMessageExpiration | 58.782s |
2021-01-26 22:01:12 |
java.lang.AssertionError: User: admin@test-domain.com should have received message: urgoby0207 expected [true] but found [false]
2021-01-26 22:01:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration] 2021-01-26 22:01:12 | ------------------------------------ 2021-01-26 22:01:12 | [Mutex] isItemNotified: node_bmrz3j0203:exists :: false 2021-01-26 22:01:12 | [Mutex] waiting for: [node_bmrz3j0203:create_node] 2021-01-26 22:01:12 | [Mutex] received everything. 2021-01-26 22:01:12 | [Mutex] isItemNotified: node_bmrz3j0203:create_node:success :: true 2021-01-26 22:01:12 | [Mutex] waiting for: [node_bmrz3j0203:subscribe_node] 2021-01-26 22:01:12 | [Mutex] received everything. 2021-01-26 22:01:12 | [Mutex] isItemNotified: node_bmrz3j0203:subscribe_node:success :: true 2021-01-26 22:01:12 | ===== publishing normal message (to online) 2021-01-26 22:01:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2021-01-26 22:01:12 | command: <data><node>node_bmrz3j0203</node><entry><content>content_cd1zus0204</content></entry></data> 2021-01-26 22:01:12 | target: http://localhost:8088 2021-01-26 22:01:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false] 2021-01-26 22:01:12 | entity: <data><node>node_bmrz3j0203</node><entry><content>content_cd1zus0204</content></entry></data> 2021-01-26 22:01:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Jan 2021 06:01:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2021-01-26 22:01:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4f4976f0-9e61-4843-a5cf-7e69bc648c89</value></item-id></result> 2021-01-26 22:01:12 | contains: true 2021-01-26 22:01:12 | [Mutex] received everything. 2021-01-26 22:01:12 | [Mutex] isItemNotified: user_regularbehfyh0202@test-domain.com:message:received:content_cd1zus0204 :: true 2021-01-26 22:01:12 | ===== publishing already old message - expecting message being filtered out (to online) 2021-01-26 22:01:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2021-01-26 22:01:12 | command: <data><node>node_bmrz3j0203</node><expire-at>2021-01-27T06:01:07Z</expire-at><entry><content>content_o55tjb0205</content></entry></data> 2021-01-26 22:01:12 | target: http://localhost:8088 2021-01-26 22:01:12 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false] 2021-01-26 22:01:12 | entity: <data><node>node_bmrz3j0203</node><expire-at>2021-01-27T06:01:07Z</expire-at><entry><content>content_o55tjb0205</content></entry></data> 2021-01-26 22:01:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Jan 2021 06:01:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2021-01-26 22:01:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e435a11e-30c7-431c-a1dd-002b0e9d9509</value></item-id></result> 2021-01-26 22:01:12 | contains: true 2021-01-26 22:01:12 | [Mutex] waiting for: [user_regularbehfyh0202@test-domain.com:message:received:content_o55tjb0205] 2021-01-26 22:01:27 | [Mutex] timeout. Not received [user_regularbehfyh0202@test-domain.com:message:received:content_o55tjb0205] 2021-01-26 22:01:27 | [Mutex] isItemNotified: user_regularbehfyh0202@test-domain.com:message:received:content_o55tjb0205 :: false 2021-01-26 22:01:27 | ===== publishing normal message (to offline) 2021-01-26 22:01:27 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2021-01-26 22:01:27 | command: <data><node>node_bmrz3j0203</node><entry><content>content_lrw5xs0206</content></entry></data> 2021-01-26 22:01:27 | target: http://localhost:8088 2021-01-26 22:01:27 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false] 2021-01-26 22:01:27 | entity: <data><node>node_bmrz3j0203</node><entry><content>content_lrw5xs0206</content></entry></data> 2021-01-26 22:01:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Jan 2021 06:01:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2021-01-26 22:01:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>efa441f7-25b5-46e4-8b5c-e10ff355286a</value></item-id></result> 2021-01-26 22:01:27 | contains: true 2021-01-26 22:01:32 | [Mutex] waiting for: [user_regularbehfyh0202@test-domain.com:message:received:content_lrw5xs0206] 2021-01-26 22:01:32 | [Mutex] waiting for: [user_regularbehfyh0202@test-domain.com:message:received:content_lrw5xs0206] 2021-01-26 22:01:32 | [Mutex] received everything. 2021-01-26 22:01:32 | [Mutex] isItemNotified: user_regularbehfyh0202@test-domain.com:message:received:content_lrw5xs0206 :: true 2021-01-26 22:01:32 | ===== publishing already old message - expecting message being filtered out (to offline) 2021-01-26 22:01:32 | [Mutex] received everything. 2021-01-26 22:01:32 | [Mutex] isItemNotified: node_bmrz3j0203:subscribe_node:success :: true 2021-01-26 22:01:32 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2021-01-26 22:01:32 | command: <data><node>node_bmrz3j0203</node><expire-at>2021-01-27T06:01:37Z</expire-at><entry><content>content_urgoby0207</content></entry></data> 2021-01-26 22:01:32 | target: http://localhost:8088 2021-01-26 22:01:32 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false] 2021-01-26 22:01:32 | entity: <data><node>node_bmrz3j0203</node><expire-at>2021-01-27T06:01:37Z</expire-at><entry><content>content_urgoby0207</content></entry></data> 2021-01-26 22:01:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Jan 2021 06:01:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2021-01-26 22:01:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c4031d52-926e-4d5a-a8f3-2e8a7cf672b2</value></item-id></result> 2021-01-26 22:01:32 | contains: true 2021-01-26 22:01:40 | [Mutex] waiting for: [user_regularbehfyh0202@test-domain.com:message:received:content_urgoby0207] 2021-01-26 22:01:55 | [Mutex] timeout. Not received [user_regularbehfyh0202@test-domain.com:message:received:content_urgoby0207] 2021-01-26 22:01:55 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_urgoby0207] 2021-01-26 22:02:10 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_urgoby0207] 2021-01-26 22:02:10 | [Mutex] isItemNotified: user_regularbehfyh0202@test-domain.com:message:received:content_urgoby0207 :: false 2021-01-26 22:02:10 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_urgoby0207 :: 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) |