Test duration : 60.285s
Failed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiWithMessageExpiration | ||
testMessageExpiration | 58.680s |
2020-09-18 10:36:49 |
java.lang.AssertionError: User: admin@test-domain.com should have received message: ue9sz40207 expected [true] but found [false]
2020-09-18 10:36:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration] 2020-09-18 10:36:49 | ------------------------------------ 2020-09-18 10:36:49 | [Mutex] isItemNotified: node_llyk2v0203:exists :: false 2020-09-18 10:36:49 | [Mutex] waiting for: [node_llyk2v0203:create_node] 2020-09-18 10:36:49 | [Mutex] received everything. 2020-09-18 10:36:49 | [Mutex] isItemNotified: node_llyk2v0203:create_node:success :: true 2020-09-18 10:36:49 | [Mutex] waiting for: [node_llyk2v0203:subscribe_node] 2020-09-18 10:36:49 | [Mutex] waiting for: [node_llyk2v0203:subscribe_node] 2020-09-18 10:36:49 | [Mutex] received everything. 2020-09-18 10:36:49 | [Mutex] isItemNotified: node_llyk2v0203:subscribe_node:success :: true 2020-09-18 10:36:49 | ===== publishing normal message (to online) 2020-09-18 10:36:49 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-09-18 10:36:49 | command: <data><node>node_llyk2v0203</node><entry><content>content_8c2lwa0204</content></entry></data> 2020-09-18 10:36:49 | target: http://localhost:8088 2020-09-18 10:36:49 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false] 2020-09-18 10:36:49 | entity: <data><node>node_llyk2v0203</node><entry><content>content_8c2lwa0204</content></entry></data> 2020-09-18 10:36:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 18 Sep 2020 17:36:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-09-18 10:36:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>90457b9f-11c3-4e19-8f4a-2aff69f80f02</value></item-id></result> 2020-09-18 10:36:49 | contains: true 2020-09-18 10:36:49 | [Mutex] received everything. 2020-09-18 10:36:49 | [Mutex] isItemNotified: user_regularch22mk0202@test-domain.com:message:received:content_8c2lwa0204 :: true 2020-09-18 10:36:49 | ===== publishing already old message - expecting message being filtered out (to online) 2020-09-18 10:36:49 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-09-18 10:36:49 | command: <data><node>node_llyk2v0203</node><expire-at>2020-09-18T17:36:44Z</expire-at><entry><content>content_dr8sxn0205</content></entry></data> 2020-09-18 10:36:49 | target: http://localhost:8088 2020-09-18 10:36:49 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false] 2020-09-18 10:36:49 | entity: <data><node>node_llyk2v0203</node><expire-at>2020-09-18T17:36:44Z</expire-at><entry><content>content_dr8sxn0205</content></entry></data> 2020-09-18 10:36:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 18 Sep 2020 17:36:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-09-18 10:36:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ff02ebbf-be44-4c49-986c-d8385b59a0d3</value></item-id></result> 2020-09-18 10:36:49 | contains: true 2020-09-18 10:36:49 | [Mutex] waiting for: [user_regularch22mk0202@test-domain.com:message:received:content_dr8sxn0205] 2020-09-18 10:37:04 | [Mutex] timeout. Not received [user_regularch22mk0202@test-domain.com:message:received:content_dr8sxn0205] 2020-09-18 10:37:04 | [Mutex] isItemNotified: user_regularch22mk0202@test-domain.com:message:received:content_dr8sxn0205 :: false 2020-09-18 10:37:04 | ===== publishing normal message (to offline) 2020-09-18 10:37:04 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-09-18 10:37:04 | command: <data><node>node_llyk2v0203</node><entry><content>content_4yed200206</content></entry></data> 2020-09-18 10:37:04 | target: http://localhost:8088 2020-09-18 10:37:04 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false] 2020-09-18 10:37:04 | entity: <data><node>node_llyk2v0203</node><entry><content>content_4yed200206</content></entry></data> 2020-09-18 10:37:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 18 Sep 2020 17:37:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-09-18 10:37:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4a216656-0cce-4d6f-8ee6-1b2cb39138c4</value></item-id></result> 2020-09-18 10:37:04 | contains: true 2020-09-18 10:37:10 | [Mutex] received everything. 2020-09-18 10:37:10 | [Mutex] isItemNotified: user_regularch22mk0202@test-domain.com:message:received:content_4yed200206 :: true 2020-09-18 10:37:10 | ===== publishing already old message - expecting message being filtered out (to offline) 2020-09-18 10:37:10 | [Mutex] received everything. 2020-09-18 10:37:10 | [Mutex] isItemNotified: node_llyk2v0203:subscribe_node:success :: true 2020-09-18 10:37:10 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1 2020-09-18 10:37:10 | command: <data><node>node_llyk2v0203</node><expire-at>2020-09-18T17:37:15Z</expire-at><entry><content>content_ue9sz40207</content></entry></data> 2020-09-18 10:37:10 | target: http://localhost:8088 2020-09-18 10:37:10 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false] 2020-09-18 10:37:10 | entity: <data><node>node_llyk2v0203</node><expire-at>2020-09-18T17:37:15Z</expire-at><entry><content>content_ue9sz40207</content></entry></data> 2020-09-18 10:37:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 18 Sep 2020 17:37:10 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}} 2020-09-18 10:37:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>70efc285-9e82-4217-ae77-ca6b52a6d190</value></item-id></result> 2020-09-18 10:37:10 | contains: true 2020-09-18 10:37:18 | [Mutex] waiting for: [user_regularch22mk0202@test-domain.com:message:received:content_ue9sz40207] 2020-09-18 10:37:18 | [Mutex] waiting for: [user_regularch22mk0202@test-domain.com:message:received:content_ue9sz40207] 2020-09-18 10:37:33 | [Mutex] timeout. Not received [user_regularch22mk0202@test-domain.com:message:received:content_ue9sz40207] 2020-09-18 10:37:33 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_ue9sz40207] 2020-09-18 10:37:48 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_ue9sz40207] 2020-09-18 10:37:48 | [Mutex] isItemNotified: user_regularch22mk0202@test-domain.com:message:received:content_ue9sz40207 :: false 2020-09-18 10:37:48 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_ue9sz40207 :: 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) |