Generated by TestNG with ReportNG at 22:47 PDT on Sunday 27 August 2023
root@d4b373e367b3 / Java 17.0.8 (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 : 44.372s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.581s
2023-08-27 23:02:15 |

2023-08-27 23:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-08-27 23:02:15 | ------------------------------------

2023-08-27 23:02:15 | [Mutex] isItemNotified: node_14vvg50208:exists :: false

2023-08-27 23:02:15 | [Mutex] waiting for: [node_14vvg50208:create_node]

2023-08-27 23:02:15 | [Mutex] received everything.

2023-08-27 23:02:15 | [Mutex] isItemNotified: node_14vvg50208:create_node:success :: true

2023-08-27 23:02:15 | [Mutex] waiting for: [node_14vvg50208:subscribe_node]

2023-08-27 23:02:15 | [Mutex] waiting for: [node_14vvg50208:subscribe_node]

2023-08-27 23:02:15 | [Mutex] received everything.

2023-08-27 23:02:15 | [Mutex] isItemNotified: node_14vvg50208:subscribe_node:success :: true

2023-08-27 23:02:15 |


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


2023-08-27 23:02:15 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-27 23:02:15 | command: <data><node>node_14vvg50208</node><entry><content>content_2k72nc0209</content></entry></data>

2023-08-27 23:02:15 | target: http://localhost:8088

2023-08-27 23:02:15 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-08-27 23:02:15 | entity: <data><node>node_14vvg50208</node><entry><content>content_2k72nc0209</content></entry></data>

2023-08-27 23:02:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 28 Aug 2023 06:02:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-27 23:02:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ffdfc226-b4cd-4687-adda-502ff1832181</value></item-id></result>

2023-08-27 23:02:15 | contains: true

2023-08-27 23:02:15 | [Mutex] waiting for: [user_regular1kgvy20207@test-domain.com:message:received:content_2k72nc0209]

2023-08-27 23:02:15 | [Mutex] received everything.

2023-08-27 23:02:15 | [Mutex] isItemNotified: user_regular1kgvy20207@test-domain.com:message:received:content_2k72nc0209 :: true

2023-08-27 23:02:15 |


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


2023-08-27 23:02:15 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-27 23:02:15 | command: <data><node>node_14vvg50208</node><expire-at>2023-08-28T06:02:10Z</expire-at><entry><content>content_ir6ypp0210</content></entry></data>

2023-08-27 23:02:15 | target: http://localhost:8088

2023-08-27 23:02:15 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-08-27 23:02:15 | entity: <data><node>node_14vvg50208</node><expire-at>2023-08-28T06:02:10Z</expire-at><entry><content>content_ir6ypp0210</content></entry></data>

2023-08-27 23:02:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 28 Aug 2023 06:02:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-27 23:02:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>079e2371-e079-4a0a-ad05-7a45dec00dd6</value></item-id></result>

2023-08-27 23:02:15 | contains: true

2023-08-27 23:02:15 | [Mutex] waiting for: [user_regular1kgvy20207@test-domain.com:message:received:content_ir6ypp0210]

2023-08-27 23:02:30 | [Mutex] timeout. Not received [user_regular1kgvy20207@test-domain.com:message:received:content_ir6ypp0210]

2023-08-27 23:02:30 | [Mutex] isItemNotified: user_regular1kgvy20207@test-domain.com:message:received:content_ir6ypp0210 :: false

2023-08-27 23:02:30 |


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


2023-08-27 23:02:30 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-27 23:02:30 | command: <data><node>node_14vvg50208</node><entry><content>content_9de3zn0211</content></entry></data>

2023-08-27 23:02:30 | target: http://localhost:8088

2023-08-27 23:02:30 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-08-27 23:02:30 | entity: <data><node>node_14vvg50208</node><entry><content>content_9de3zn0211</content></entry></data>

2023-08-27 23:02:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 28 Aug 2023 06:02:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-27 23:02:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>14bfb12b-5bd0-45a5-b660-166a230d0de2</value></item-id></result>

2023-08-27 23:02:30 | contains: true

2023-08-27 23:02:35 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-08-27 23:02:35 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] DNS entry stored in session object: localhost:5222

2023-08-27 23:02:35 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-08-27 23:02:35 | [Mutex] received everything.

2023-08-27 23:02:35 | [Mutex] isItemNotified: user_regular1kgvy20207@test-domain.com:message:received:content_9de3zn0211 :: true

2023-08-27 23:02:35 |


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


2023-08-27 23:02:35 | [Mutex] received everything.

2023-08-27 23:02:35 | [Mutex] isItemNotified: node_14vvg50208:subscribe_node:success :: true

2023-08-27 23:02:35 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-27 23:02:35 | command: <data><node>node_14vvg50208</node><expire-at>2023-08-28T06:02:40Z</expire-at><entry><content>content_ue0wpd0212</content></entry></data>

2023-08-27 23:02:35 | target: http://localhost:8088

2023-08-27 23:02:35 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-08-27 23:02:35 | entity: <data><node>node_14vvg50208</node><expire-at>2023-08-28T06:02:40Z</expire-at><entry><content>content_ue0wpd0212</content></entry></data>

2023-08-27 23:02:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 28 Aug 2023 06:02:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-27 23:02:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>14b41ec2-f4dd-453f-bf87-afc4839f0fe0</value></item-id></result>

2023-08-27 23:02:35 | contains: true

2023-08-27 23:02:43 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-08-27 23:02:43 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] DNS entry stored in session object: localhost:5222

2023-08-27 23:02:43 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-08-27 23:02:43 | [Mutex] waiting for: [user_regular1kgvy20207@test-domain.com:message:received:content_ue0wpd0212]

2023-08-27 23:02:58 | [Mutex] timeout. Not received [user_regular1kgvy20207@test-domain.com:message:received:content_ue0wpd0212]

2023-08-27 23:02:58 | [Mutex] received everything.

2023-08-27 23:02:58 | [Mutex] isItemNotified: user_regular1kgvy20207@test-domain.com:message:received:content_ue0wpd0212 :: false

2023-08-27 23:02:58 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_ue0wpd0212 :: true