Generated by TestNG with ReportNG at 21:17 PST on Wednesday 16 November 2022
root@f9c07ffec79b / 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 : 44.733s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.566s
2022-11-16 21:34:03 |

2022-11-16 21:34:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-11-16 21:34:03 | ------------------------------------

2022-11-16 21:34:03 | [Mutex] isItemNotified: node_43spy90204:exists :: false

2022-11-16 21:34:03 | [Mutex] waiting for: [node_43spy90204:create_node]

2022-11-16 21:34:03 | [Mutex] received everything.

2022-11-16 21:34:03 | [Mutex] isItemNotified: node_43spy90204:create_node:success :: true

2022-11-16 21:34:03 | [Mutex] waiting for: [node_43spy90204:subscribe_node]

2022-11-16 21:34:03 | [Mutex] received everything.

2022-11-16 21:34:03 | [Mutex] isItemNotified: node_43spy90204:subscribe_node:success :: true

2022-11-16 21:34:03 |


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


2022-11-16 21:34:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-16 21:34:03 | command: <data><node>node_43spy90204</node><entry><content>content_id8x9v0205</content></entry></data>

2022-11-16 21:34:03 | target: http://localhost:8088

2022-11-16 21:34:03 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-11-16 21:34:03 | entity: <data><node>node_43spy90204</node><entry><content>content_id8x9v0205</content></entry></data>

2022-11-16 21:34:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Nov 2022 05:34:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-16 21:34:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>27275881-9352-4e32-99c6-ef028e9cb7fa</value></item-id></result>

2022-11-16 21:34:03 | contains: true

2022-11-16 21:34:03 | [Mutex] received everything.

2022-11-16 21:34:03 | [Mutex] isItemNotified: user_regularxr0t8x0203@test-domain.com:message:received:content_id8x9v0205 :: true

2022-11-16 21:34:03 |


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


2022-11-16 21:34:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-16 21:34:03 | command: <data><node>node_43spy90204</node><expire-at>2022-11-17T05:33:58Z</expire-at><entry><content>content_j35unr0206</content></entry></data>

2022-11-16 21:34:03 | target: http://localhost:8088

2022-11-16 21:34:03 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-11-16 21:34:03 | entity: <data><node>node_43spy90204</node><expire-at>2022-11-17T05:33:58Z</expire-at><entry><content>content_j35unr0206</content></entry></data>

2022-11-16 21:34:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Nov 2022 05:34:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-16 21:34:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>843b92b4-4ec1-48d2-a112-81e84128a011</value></item-id></result>

2022-11-16 21:34:03 | contains: true

2022-11-16 21:34:03 | [Mutex] waiting for: [user_regularxr0t8x0203@test-domain.com:message:received:content_j35unr0206]

2022-11-16 21:34:18 | [Mutex] timeout. Not received [user_regularxr0t8x0203@test-domain.com:message:received:content_j35unr0206]

2022-11-16 21:34:18 | [Mutex] isItemNotified: user_regularxr0t8x0203@test-domain.com:message:received:content_j35unr0206 :: false

2022-11-16 21:34:18 |


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


2022-11-16 21:34:18 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-16 21:34:18 | command: <data><node>node_43spy90204</node><entry><content>content_436klx0207</content></entry></data>

2022-11-16 21:34:18 | target: http://localhost:8088

2022-11-16 21:34:18 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-11-16 21:34:18 | entity: <data><node>node_43spy90204</node><entry><content>content_436klx0207</content></entry></data>

2022-11-16 21:34:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Nov 2022 05:34:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-16 21:34:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4ae6c9e8-b4f6-4c3f-bb30-5c26478e1b8d</value></item-id></result>

2022-11-16 21:34:18 | contains: true

2022-11-16 21:34:23 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-11-16 21:34:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-11-16 21:34:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-11-16 21:34:24 | [Mutex] received everything.

2022-11-16 21:34:24 | [Mutex] isItemNotified: user_regularxr0t8x0203@test-domain.com:message:received:content_436klx0207 :: true

2022-11-16 21:34:24 |


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


2022-11-16 21:34:24 | [Mutex] received everything.

2022-11-16 21:34:24 | [Mutex] isItemNotified: node_43spy90204:subscribe_node:success :: true

2022-11-16 21:34:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-16 21:34:24 | command: <data><node>node_43spy90204</node><expire-at>2022-11-17T05:34:29Z</expire-at><entry><content>content_kfrset0208</content></entry></data>

2022-11-16 21:34:24 | target: http://localhost:8088

2022-11-16 21:34:24 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-11-16 21:34:24 | entity: <data><node>node_43spy90204</node><expire-at>2022-11-17T05:34:29Z</expire-at><entry><content>content_kfrset0208</content></entry></data>

2022-11-16 21:34:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 17 Nov 2022 05:34:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-16 21:34:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f1e6d932-555b-4493-8ac3-b43999fb9e13</value></item-id></result>

2022-11-16 21:34:24 | contains: true

2022-11-16 21:34:32 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-11-16 21:34:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-11-16 21:34:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-11-16 21:34:32 | [Mutex] waiting for: [user_regularxr0t8x0203@test-domain.com:message:received:content_kfrset0208]

2022-11-16 21:34:47 | [Mutex] timeout. Not received [user_regularxr0t8x0203@test-domain.com:message:received:content_kfrset0208]

2022-11-16 21:34:47 | [Mutex] received everything.

2022-11-16 21:34:47 | [Mutex] isItemNotified: user_regularxr0t8x0203@test-domain.com:message:received:content_kfrset0208 :: false

2022-11-16 21:34:47 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_kfrset0208 :: true