Generated by TestNG with ReportNG at 22:30 PDT on Saturday 09 July 2022
root@7c41cec37518 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 59.887s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.682s
2022-07-09 22:45:21 |

2022-07-09 22:45:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-09 22:45:21 | ------------------------------------

2022-07-09 22:45:21 | [Mutex] isItemNotified: node_r76dqw0204:exists :: false

2022-07-09 22:45:21 | [Mutex] waiting for: [node_r76dqw0204:create_node]

2022-07-09 22:45:21 | [Mutex] received everything.

2022-07-09 22:45:21 | [Mutex] isItemNotified: node_r76dqw0204:create_node:success :: true

2022-07-09 22:45:21 | [Mutex] waiting for: [node_r76dqw0204:subscribe_node]

2022-07-09 22:45:21 | [Mutex] waiting for: [node_r76dqw0204:subscribe_node]

2022-07-09 22:45:21 | [Mutex] received everything.

2022-07-09 22:45:21 | [Mutex] isItemNotified: node_r76dqw0204:subscribe_node:success :: true

2022-07-09 22:45:21 |


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


2022-07-09 22:45:21 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-09 22:45:21 | command: <data><node>node_r76dqw0204</node><entry><content>content_p1y4kt0205</content></entry></data>

2022-07-09 22:45:21 | target: http://localhost:8088

2022-07-09 22:45:21 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-09 22:45:21 | entity: <data><node>node_r76dqw0204</node><entry><content>content_p1y4kt0205</content></entry></data>

2022-07-09 22:45:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sun, 10 Jul 2022 05:45:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-09 22:45:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b5f3e79a-ca59-49e3-b35a-143cb29b5d0b</value></item-id></result>

2022-07-09 22:45:21 | contains: true

2022-07-09 22:45:21 | [Mutex] received everything.

2022-07-09 22:45:21 | [Mutex] isItemNotified: user_regulartym7dt0203@test-domain.com:message:received:content_p1y4kt0205 :: true

2022-07-09 22:45:21 |


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


2022-07-09 22:45:21 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-09 22:45:21 | command: <data><node>node_r76dqw0204</node><expire-at>2022-07-10T05:45:16Z</expire-at><entry><content>content_9svtro0206</content></entry></data>

2022-07-09 22:45:21 | target: http://localhost:8088

2022-07-09 22:45:21 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-09 22:45:21 | entity: <data><node>node_r76dqw0204</node><expire-at>2022-07-10T05:45:16Z</expire-at><entry><content>content_9svtro0206</content></entry></data>

2022-07-09 22:45:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sun, 10 Jul 2022 05:45:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-09 22:45:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4c9e1cfe-31aa-439c-9183-4cf452cae159</value></item-id></result>

2022-07-09 22:45:21 | contains: true

2022-07-09 22:45:21 | [Mutex] waiting for: [user_regulartym7dt0203@test-domain.com:message:received:content_9svtro0206]

2022-07-09 22:45:36 | [Mutex] timeout. Not received [user_regulartym7dt0203@test-domain.com:message:received:content_9svtro0206]

2022-07-09 22:45:36 | [Mutex] isItemNotified: user_regulartym7dt0203@test-domain.com:message:received:content_9svtro0206 :: false

2022-07-09 22:45:36 |


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


2022-07-09 22:45:36 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-09 22:45:36 | command: <data><node>node_r76dqw0204</node><entry><content>content_nb3ue20207</content></entry></data>

2022-07-09 22:45:36 | target: http://localhost:8088

2022-07-09 22:45:36 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-09 22:45:36 | entity: <data><node>node_r76dqw0204</node><entry><content>content_nb3ue20207</content></entry></data>

2022-07-09 22:45:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sun, 10 Jul 2022 05:45:36 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-09 22:45:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5115bab8-19bf-4b80-ac17-1be92e4aabf5</value></item-id></result>

2022-07-09 22:45:36 | contains: true

2022-07-09 22:45:41 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-07-09 22:45:41 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-07-09 22:45:41 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-09 22:45:41 | [Mutex] waiting for: [user_regulartym7dt0203@test-domain.com:message:received:content_nb3ue20207]

2022-07-09 22:45:41 | [Mutex] received everything.

2022-07-09 22:45:41 | [Mutex] isItemNotified: user_regulartym7dt0203@test-domain.com:message:received:content_nb3ue20207 :: true

2022-07-09 22:45:41 |


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


2022-07-09 22:45:41 | [Mutex] received everything.

2022-07-09 22:45:41 | [Mutex] isItemNotified: node_r76dqw0204:subscribe_node:success :: true

2022-07-09 22:45:41 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-09 22:45:41 | command: <data><node>node_r76dqw0204</node><expire-at>2022-07-10T05:45:46Z</expire-at><entry><content>content_kjzzrd0208</content></entry></data>

2022-07-09 22:45:41 | target: http://localhost:8088

2022-07-09 22:45:41 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-09 22:45:41 | entity: <data><node>node_r76dqw0204</node><expire-at>2022-07-10T05:45:46Z</expire-at><entry><content>content_kjzzrd0208</content></entry></data>

2022-07-09 22:45:41 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sun, 10 Jul 2022 05:45:41 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-09 22:45:41 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e20859d7-c957-4b50-ab09-a224db95be04</value></item-id></result>

2022-07-09 22:45:41 | contains: true

2022-07-09 22:45:49 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-07-09 22:45:49 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-07-09 22:45:49 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-09 22:45:49 | [Mutex] waiting for: [user_regulartym7dt0203@test-domain.com:message:received:content_kjzzrd0208]

2022-07-09 22:46:04 | [Mutex] timeout. Not received [user_regulartym7dt0203@test-domain.com:message:received:content_kjzzrd0208]

2022-07-09 22:46:04 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_kjzzrd0208]

2022-07-09 22:46:19 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_kjzzrd0208]

2022-07-09 22:46:19 | [Mutex] isItemNotified: user_regulartym7dt0203@test-domain.com:message:received:content_kjzzrd0208 :: false

2022-07-09 22:46:19 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_kjzzrd0208 :: false

java.lang.AssertionError: User: admin@test-domain.com should have received message: kjzzrd0208 expected [true] but found [false]
org.testng.Assert.fail(Assert.java:110)
org.testng.Assert.failNotEquals(Assert.java:1413)
org.testng.Assert.assertTrue(Assert.java:56)
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:77)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:568)
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)
org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:673)
org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:220)
org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50)
org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:945)
org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:193)
org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128)
java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
org.testng.TestRunner.privateRun(TestRunner.java:808)
org.testng.TestRunner.run(TestRunner.java:603)
org.testng.SuiteRunner.runTest(SuiteRunner.java:429)
org.testng.SuiteRunner.runSequentially(SuiteRunner.java:423)
org.testng.SuiteRunner.privateRun(SuiteRunner.java:383)
org.testng.SuiteRunner.run(SuiteRunner.java:326)
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
org.testng.TestNG.runSuitesSequentially(TestNG.java:1249)
org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
org.testng.TestNG.runSuites(TestNG.java:1092)
org.testng.TestNG.run(TestNG.java:1060)
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)