Generated by TestNG with ReportNG at 22:21 PDT on Monday 16 May 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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 : 44.737s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.619s
2022-05-16 22:36:26 |

2022-05-16 22:36:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-16 22:36:26 | ------------------------------------

2022-05-16 22:36:26 | [Mutex] isItemNotified: node_162zb80204:exists :: false

2022-05-16 22:36:26 | [Mutex] waiting for: [node_162zb80204:create_node]

2022-05-16 22:36:26 | [Mutex] received everything.

2022-05-16 22:36:26 | [Mutex] isItemNotified: node_162zb80204:create_node:success :: true

2022-05-16 22:36:26 | [Mutex] waiting for: [node_162zb80204:subscribe_node]

2022-05-16 22:36:26 | [Mutex] received everything.

2022-05-16 22:36:26 | [Mutex] isItemNotified: node_162zb80204:subscribe_node:success :: true

2022-05-16 22:36:26 |


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


2022-05-16 22:36:26 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:36:26 | command: <data><node>node_162zb80204</node><entry><content>content_b0qe0x0205</content></entry></data>

2022-05-16 22:36:26 | target: http://localhost:8088

2022-05-16 22:36:26 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-16 22:36:26 | entity: <data><node>node_162zb80204</node><entry><content>content_b0qe0x0205</content></entry></data>

2022-05-16 22:36:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:36:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:36:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>59de3001-df0c-4071-935d-1f61a63fd5e0</value></item-id></result>

2022-05-16 22:36:26 | contains: true

2022-05-16 22:36:26 | [Mutex] received everything.

2022-05-16 22:36:26 | [Mutex] isItemNotified: user_regular2bztrs0203@test-domain.com:message:received:content_b0qe0x0205 :: true

2022-05-16 22:36:26 |


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


2022-05-16 22:36:26 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:36:26 | command: <data><node>node_162zb80204</node><expire-at>2022-05-17T05:36:21Z</expire-at><entry><content>content_kpnnxp0206</content></entry></data>

2022-05-16 22:36:26 | target: http://localhost:8088

2022-05-16 22:36:26 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-16 22:36:26 | entity: <data><node>node_162zb80204</node><expire-at>2022-05-17T05:36:21Z</expire-at><entry><content>content_kpnnxp0206</content></entry></data>

2022-05-16 22:36:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:36:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:36:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>08d4dd83-0821-4a89-9cf2-f7fe735a7d88</value></item-id></result>

2022-05-16 22:36:26 | contains: true

2022-05-16 22:36:26 | [Mutex] waiting for: [user_regular2bztrs0203@test-domain.com:message:received:content_kpnnxp0206]

2022-05-16 22:36:41 | [Mutex] timeout. Not received [user_regular2bztrs0203@test-domain.com:message:received:content_kpnnxp0206]

2022-05-16 22:36:41 | [Mutex] isItemNotified: user_regular2bztrs0203@test-domain.com:message:received:content_kpnnxp0206 :: false

2022-05-16 22:36:41 |


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


2022-05-16 22:36:41 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:36:41 | command: <data><node>node_162zb80204</node><entry><content>content_fcotjb0207</content></entry></data>

2022-05-16 22:36:41 | target: http://localhost:8088

2022-05-16 22:36:41 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-16 22:36:41 | entity: <data><node>node_162zb80204</node><entry><content>content_fcotjb0207</content></entry></data>

2022-05-16 22:36:41 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:36:41 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:36:41 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d3d39892-1fd6-4d4a-b386-87f0ace7dfb6</value></item-id></result>

2022-05-16 22:36:41 | contains: true

2022-05-16 22:36:46 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-05-16 22:36:46 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-05-16 22:36:46 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-05-16 22:36:46 | [Mutex] waiting for: [user_regular2bztrs0203@test-domain.com:message:received:content_fcotjb0207]

2022-05-16 22:36:46 | [Mutex] waiting for: [user_regular2bztrs0203@test-domain.com:message:received:content_fcotjb0207]

2022-05-16 22:36:46 | [Mutex] received everything.

2022-05-16 22:36:46 | [Mutex] isItemNotified: user_regular2bztrs0203@test-domain.com:message:received:content_fcotjb0207 :: true

2022-05-16 22:36:46 |


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


2022-05-16 22:36:46 | [Mutex] received everything.

2022-05-16 22:36:46 | [Mutex] isItemNotified: node_162zb80204:subscribe_node:success :: true

2022-05-16 22:36:46 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:36:46 | command: <data><node>node_162zb80204</node><expire-at>2022-05-17T05:36:51Z</expire-at><entry><content>content_s9pauu0208</content></entry></data>

2022-05-16 22:36:46 | target: http://localhost:8088

2022-05-16 22:36:46 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-16 22:36:46 | entity: <data><node>node_162zb80204</node><expire-at>2022-05-17T05:36:51Z</expire-at><entry><content>content_s9pauu0208</content></entry></data>

2022-05-16 22:36:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:36:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:36:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>989259ab-b2c2-4cc9-a36c-96d05be7cfd7</value></item-id></result>

2022-05-16 22:36:46 | contains: true

2022-05-16 22:36:54 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-05-16 22:36:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-05-16 22:36:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-05-16 22:36:54 | [Mutex] waiting for: [user_regular2bztrs0203@test-domain.com:message:received:content_s9pauu0208]

2022-05-16 22:36:54 | [Mutex] waiting for: [user_regular2bztrs0203@test-domain.com:message:received:content_s9pauu0208]

2022-05-16 22:36:54 | [Mutex] waiting for: [user_regular2bztrs0203@test-domain.com:message:received:content_s9pauu0208]

2022-05-16 22:37:09 | [Mutex] timeout. Not received [user_regular2bztrs0203@test-domain.com:message:received:content_s9pauu0208]

2022-05-16 22:37:09 | [Mutex] received everything.

2022-05-16 22:37:09 | [Mutex] isItemNotified: user_regular2bztrs0203@test-domain.com:message:received:content_s9pauu0208 :: false

2022-05-16 22:37:09 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_s9pauu0208 :: true