Generated by TestNG with ReportNG at 22:59 PDT on Wednesday 16 September 2020
root@e2a92dd2f4be / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Item publication on PubSub node with message expiration using REST API - #2959

Suites · Log Output

Test duration : 60.385s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.749s
2020-09-16 23:15:06 |

2020-09-16 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-09-16 23:15:06 | ------------------------------------

2020-09-16 23:15:06 | [Mutex] isItemNotified: node_wbmxrb0203:exists :: false

2020-09-16 23:15:06 | [Mutex] waiting for: [node_wbmxrb0203:create_node]

2020-09-16 23:15:06 | [Mutex] received everything.

2020-09-16 23:15:06 | [Mutex] isItemNotified: node_wbmxrb0203:create_node:success :: true

2020-09-16 23:15:06 | [Mutex] waiting for: [node_wbmxrb0203:subscribe_node]

2020-09-16 23:15:06 | [Mutex] waiting for: [node_wbmxrb0203:subscribe_node]

2020-09-16 23:15:06 | [Mutex] received everything.

2020-09-16 23:15:06 | [Mutex] isItemNotified: node_wbmxrb0203:subscribe_node:success :: true

2020-09-16 23:15:06 |


===== publishing normal message (to online)


2020-09-16 23:15:06 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-16 23:15:06 | command: <data><node>node_wbmxrb0203</node><entry><content>content_5unlh40204</content></entry></data>

2020-09-16 23:15:06 | target: http://localhost:8088

2020-09-16 23:15:06 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-09-16 23:15:06 | entity: <data><node>node_wbmxrb0203</node><entry><content>content_5unlh40204</content></entry></data>

2020-09-16 23:15:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Sep 2020 06:15:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-16 23:15:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>691377e0-ef27-4e4b-a22e-697b0d89bda1</value></item-id></result>

2020-09-16 23:15:06 | contains: true

2020-09-16 23:15:06 | [Mutex] waiting for: [user_regularqzfo7h0202@test-domain.com:message:received:content_5unlh40204]

2020-09-16 23:15:06 | [Mutex] received everything.

2020-09-16 23:15:06 | [Mutex] isItemNotified: user_regularqzfo7h0202@test-domain.com:message:received:content_5unlh40204 :: true

2020-09-16 23:15:06 |


===== publishing already old message - expecting message being filtered out (to online)


2020-09-16 23:15:06 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-16 23:15:06 | command: <data><node>node_wbmxrb0203</node><expire-at>2020-09-17T06:15:01Z</expire-at><entry><content>content_9cvzmz0205</content></entry></data>

2020-09-16 23:15:06 | target: http://localhost:8088

2020-09-16 23:15:06 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-09-16 23:15:06 | entity: <data><node>node_wbmxrb0203</node><expire-at>2020-09-17T06:15:01Z</expire-at><entry><content>content_9cvzmz0205</content></entry></data>

2020-09-16 23:15:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Sep 2020 06:15:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-16 23:15:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8c0f7417-4f9f-42db-82ac-04372fde95cd</value></item-id></result>

2020-09-16 23:15:06 | contains: true

2020-09-16 23:15:06 | [Mutex] waiting for: [user_regularqzfo7h0202@test-domain.com:message:received:content_9cvzmz0205]

2020-09-16 23:15:21 | [Mutex] timeout. Not received [user_regularqzfo7h0202@test-domain.com:message:received:content_9cvzmz0205]

2020-09-16 23:15:21 | [Mutex] isItemNotified: user_regularqzfo7h0202@test-domain.com:message:received:content_9cvzmz0205 :: false

2020-09-16 23:15:21 |


===== publishing normal message (to offline)


2020-09-16 23:15:21 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-16 23:15:21 | command: <data><node>node_wbmxrb0203</node><entry><content>content_ia1fip0206</content></entry></data>

2020-09-16 23:15:21 | target: http://localhost:8088

2020-09-16 23:15:21 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-09-16 23:15:21 | entity: <data><node>node_wbmxrb0203</node><entry><content>content_ia1fip0206</content></entry></data>

2020-09-16 23:15:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Sep 2020 06:15:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-16 23:15:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6a1e8796-1ae1-4ac1-bc4d-36e39f5a7236</value></item-id></result>

2020-09-16 23:15:21 | contains: true

2020-09-16 23:15:26 | [Mutex] waiting for: [user_regularqzfo7h0202@test-domain.com:message:received:content_ia1fip0206]

2020-09-16 23:15:27 | [Mutex] received everything.

2020-09-16 23:15:27 | [Mutex] isItemNotified: user_regularqzfo7h0202@test-domain.com:message:received:content_ia1fip0206 :: true

2020-09-16 23:15:27 |


===== publishing already old message - expecting message being filtered out (to offline)


2020-09-16 23:15:27 | [Mutex] received everything.

2020-09-16 23:15:27 | [Mutex] isItemNotified: node_wbmxrb0203:subscribe_node:success :: true

2020-09-16 23:15:27 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-16 23:15:27 | command: <data><node>node_wbmxrb0203</node><expire-at>2020-09-17T06:15:32Z</expire-at><entry><content>content_qspf8y0207</content></entry></data>

2020-09-16 23:15:27 | target: http://localhost:8088

2020-09-16 23:15:27 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-09-16 23:15:27 | entity: <data><node>node_wbmxrb0203</node><expire-at>2020-09-17T06:15:32Z</expire-at><entry><content>content_qspf8y0207</content></entry></data>

2020-09-16 23:15:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Sep 2020 06:15:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-16 23:15:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>af2054ae-a2c3-4417-8755-e43baa8bbdea</value></item-id></result>

2020-09-16 23:15:27 | contains: true

2020-09-16 23:15:35 | [Mutex] waiting for: [user_regularqzfo7h0202@test-domain.com:message:received:content_qspf8y0207]

2020-09-16 23:15:35 | [Mutex] waiting for: [user_regularqzfo7h0202@test-domain.com:message:received:content_qspf8y0207]

2020-09-16 23:15:50 | [Mutex] timeout. Not received [user_regularqzfo7h0202@test-domain.com:message:received:content_qspf8y0207]

2020-09-16 23:15:50 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_qspf8y0207]

2020-09-16 23:16:05 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_qspf8y0207]

2020-09-16 23:16:05 | [Mutex] isItemNotified: user_regularqzfo7h0202@test-domain.com:message:received:content_qspf8y0207 :: false

2020-09-16 23:16:05 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_qspf8y0207 :: false

java.lang.AssertionError: User: admin@test-domain.com should have received message: qspf8y0207 expected [true] but found [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)