Generated by TestNG with ReportNG at 22:16 PDT on Tuesday 04 July 2023
root@8f5c98824654 / Java 17.0.6 (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.776s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.592s
2023-07-04 22:30:50 |

2023-07-04 22:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-07-04 22:30:50 | ------------------------------------

2023-07-04 22:30:50 | [Mutex] isItemNotified: node_4smprs0208:exists :: false

2023-07-04 22:30:50 | [Mutex] waiting for: [node_4smprs0208:create_node]

2023-07-04 22:30:50 | [Mutex] received everything.

2023-07-04 22:30:50 | [Mutex] isItemNotified: node_4smprs0208:create_node:success :: true

2023-07-04 22:30:50 | [Mutex] waiting for: [node_4smprs0208:subscribe_node]

2023-07-04 22:30:50 | [Mutex] waiting for: [node_4smprs0208:subscribe_node]

2023-07-04 22:30:50 | [Mutex] received everything.

2023-07-04 22:30:50 | [Mutex] isItemNotified: node_4smprs0208:subscribe_node:success :: true

2023-07-04 22:30:50 |


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


2023-07-04 22:30:50 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:30:50 | command: <data><node>node_4smprs0208</node><entry><content>content_mz9gif0209</content></entry></data>

2023-07-04 22:30:50 | target: http://localhost:8088

2023-07-04 22:30:50 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-07-04 22:30:50 | entity: <data><node>node_4smprs0208</node><entry><content>content_mz9gif0209</content></entry></data>

2023-07-04 22:30:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:30:50 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:30:50 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>df3e2955-e0f4-4d28-9581-2339b648130b</value></item-id></result>

2023-07-04 22:30:50 | contains: true

2023-07-04 22:30:50 | [Mutex] received everything.

2023-07-04 22:30:50 | [Mutex] isItemNotified: user_regular781s950207@test-domain.com:message:received:content_mz9gif0209 :: true

2023-07-04 22:30:50 |


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


2023-07-04 22:30:50 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:30:50 | command: <data><node>node_4smprs0208</node><expire-at>2023-07-05T05:30:45Z</expire-at><entry><content>content_xvxvts0210</content></entry></data>

2023-07-04 22:30:50 | target: http://localhost:8088

2023-07-04 22:30:50 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-07-04 22:30:50 | entity: <data><node>node_4smprs0208</node><expire-at>2023-07-05T05:30:45Z</expire-at><entry><content>content_xvxvts0210</content></entry></data>

2023-07-04 22:30:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:30:50 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:30:50 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>eb5ceb9d-e9cd-43ab-a843-ee6a842b7c38</value></item-id></result>

2023-07-04 22:30:50 | contains: true

2023-07-04 22:30:50 | [Mutex] waiting for: [user_regular781s950207@test-domain.com:message:received:content_xvxvts0210]

2023-07-04 22:31:05 | [Mutex] timeout. Not received [user_regular781s950207@test-domain.com:message:received:content_xvxvts0210]

2023-07-04 22:31:05 | [Mutex] isItemNotified: user_regular781s950207@test-domain.com:message:received:content_xvxvts0210 :: false

2023-07-04 22:31:05 |


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


2023-07-04 22:31:05 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:31:05 | command: <data><node>node_4smprs0208</node><entry><content>content_pcbh6q0211</content></entry></data>

2023-07-04 22:31:05 | target: http://localhost:8088

2023-07-04 22:31:05 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-07-04 22:31:05 | entity: <data><node>node_4smprs0208</node><entry><content>content_pcbh6q0211</content></entry></data>

2023-07-04 22:31:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:31:05 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:31:05 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>93cdbf1a-7f9d-476f-af48-2f51dc883acd</value></item-id></result>

2023-07-04 22:31:05 | contains: true

2023-07-04 22:31:10 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-07-04 22:31:10 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] DNS entry stored in session object: localhost:5222

2023-07-04 22:31:10 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-07-04 22:31:10 | [Mutex] received everything.

2023-07-04 22:31:10 | [Mutex] isItemNotified: user_regular781s950207@test-domain.com:message:received:content_pcbh6q0211 :: true

2023-07-04 22:31:10 |


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


2023-07-04 22:31:10 | [Mutex] received everything.

2023-07-04 22:31:10 | [Mutex] isItemNotified: node_4smprs0208:subscribe_node:success :: true

2023-07-04 22:31:10 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:31:10 | command: <data><node>node_4smprs0208</node><expire-at>2023-07-05T05:31:15Z</expire-at><entry><content>content_6d7ht70212</content></entry></data>

2023-07-04 22:31:10 | target: http://localhost:8088

2023-07-04 22:31:10 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-07-04 22:31:10 | entity: <data><node>node_4smprs0208</node><expire-at>2023-07-05T05:31:15Z</expire-at><entry><content>content_6d7ht70212</content></entry></data>

2023-07-04 22:31:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:31:10 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:31:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8985237e-dfd3-4490-ac82-7566d81505e9</value></item-id></result>

2023-07-04 22:31:10 | contains: true

2023-07-04 22:31:18 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-07-04 22:31:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] DNS entry stored in session object: localhost:5222

2023-07-04 22:31:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-07-04 22:31:19 | [Mutex] waiting for: [user_regular781s950207@test-domain.com:message:received:content_6d7ht70212]

2023-07-04 22:31:34 | [Mutex] timeout. Not received [user_regular781s950207@test-domain.com:message:received:content_6d7ht70212]

2023-07-04 22:31:34 | [Mutex] received everything.

2023-07-04 22:31:34 | [Mutex] isItemNotified: user_regular781s950207@test-domain.com:message:received:content_6d7ht70212 :: false

2023-07-04 22:31:34 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_6d7ht70212 :: true