Generated by TestNG with ReportNG at 23:54 PST on Sunday 05 November 2023
root@8dfa9d99ff97 / 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.619s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.581s
2023-11-06 00:08:36 |

2023-11-06 00:08:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-11-06 00:08:36 | ------------------------------------

2023-11-06 00:08:36 | [Mutex] isItemNotified: node_7128l20208:exists :: false

2023-11-06 00:08:36 | [Mutex] waiting for: [node_7128l20208:create_node]

2023-11-06 00:08:36 | [Mutex] received everything.

2023-11-06 00:08:36 | [Mutex] isItemNotified: node_7128l20208:create_node:success :: true

2023-11-06 00:08:36 | [Mutex] waiting for: [node_7128l20208:subscribe_node]

2023-11-06 00:08:36 | [Mutex] received everything.

2023-11-06 00:08:36 | [Mutex] isItemNotified: node_7128l20208:subscribe_node:success :: true

2023-11-06 00:08:36 |


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


2023-11-06 00:08:36 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-11-06 00:08:36 | command: <data><node>node_7128l20208</node><entry><content>content_jkc2kt0209</content></entry></data>

2023-11-06 00:08:36 | target: http://localhost:8088

2023-11-06 00:08:36 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-11-06 00:08:36 | entity: <data><node>node_7128l20208</node><entry><content>content_jkc2kt0209</content></entry></data>

2023-11-06 00:08:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Nov 2023 08:08:36 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-11-06 00:08:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6f2c38a9-3fd0-4b7e-8895-c9cbd4c608cc</value></item-id></result>

2023-11-06 00:08:36 | contains: true

2023-11-06 00:08:36 | [Mutex] received everything.

2023-11-06 00:08:36 | [Mutex] isItemNotified: user_regularu57fxp0207@test-domain.com:message:received:content_jkc2kt0209 :: true

2023-11-06 00:08:36 |


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


2023-11-06 00:08:36 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-11-06 00:08:36 | command: <data><node>node_7128l20208</node><expire-at>2023-11-06T08:08:31Z</expire-at><entry><content>content_h6sxer0210</content></entry></data>

2023-11-06 00:08:36 | target: http://localhost:8088

2023-11-06 00:08:36 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-11-06 00:08:36 | entity: <data><node>node_7128l20208</node><expire-at>2023-11-06T08:08:31Z</expire-at><entry><content>content_h6sxer0210</content></entry></data>

2023-11-06 00:08:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Nov 2023 08:08:36 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-11-06 00:08:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>921c7cad-b20b-4dc5-a0b5-e682774497f6</value></item-id></result>

2023-11-06 00:08:36 | contains: true

2023-11-06 00:08:36 | [Mutex] waiting for: [user_regularu57fxp0207@test-domain.com:message:received:content_h6sxer0210]

2023-11-06 00:08:51 | [Mutex] timeout. Not received [user_regularu57fxp0207@test-domain.com:message:received:content_h6sxer0210]

2023-11-06 00:08:51 | [Mutex] isItemNotified: user_regularu57fxp0207@test-domain.com:message:received:content_h6sxer0210 :: false

2023-11-06 00:08:51 |


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


2023-11-06 00:08:51 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-11-06 00:08:51 | command: <data><node>node_7128l20208</node><entry><content>content_q1pcbz0211</content></entry></data>

2023-11-06 00:08:51 | target: http://localhost:8088

2023-11-06 00:08:51 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-11-06 00:08:51 | entity: <data><node>node_7128l20208</node><entry><content>content_q1pcbz0211</content></entry></data>

2023-11-06 00:08:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Nov 2023 08:08:51 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-11-06 00:08:51 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>f8d5ea1b-39ce-40e5-ac0d-508720d6033a</value></item-id></result>

2023-11-06 00:08:51 | contains: true

2023-11-06 00:08:56 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-11-06 00:08:56 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] DNS entry stored in session object: localhost:5222

2023-11-06 00:08:56 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-11-06 00:08:56 | [Mutex] waiting for: [user_regularu57fxp0207@test-domain.com:message:received:content_q1pcbz0211]

2023-11-06 00:08:56 | [Mutex] waiting for: [user_regularu57fxp0207@test-domain.com:message:received:content_q1pcbz0211]

2023-11-06 00:08:56 | [Mutex] received everything.

2023-11-06 00:08:56 | [Mutex] isItemNotified: user_regularu57fxp0207@test-domain.com:message:received:content_q1pcbz0211 :: true

2023-11-06 00:08:56 |


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


2023-11-06 00:08:56 | [Mutex] received everything.

2023-11-06 00:08:56 | [Mutex] isItemNotified: node_7128l20208:subscribe_node:success :: true

2023-11-06 00:08:56 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-11-06 00:08:56 | command: <data><node>node_7128l20208</node><expire-at>2023-11-06T08:09:01Z</expire-at><entry><content>content_qkfens0212</content></entry></data>

2023-11-06 00:08:56 | target: http://localhost:8088

2023-11-06 00:08:56 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-11-06 00:08:56 | entity: <data><node>node_7128l20208</node><expire-at>2023-11-06T08:09:01Z</expire-at><entry><content>content_qkfens0212</content></entry></data>

2023-11-06 00:08:56 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Nov 2023 08:08:56 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-11-06 00:08:56 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2a991b80-3b5c-495f-9e70-1d338caad80c</value></item-id></result>

2023-11-06 00:08:56 | contains: true

2023-11-06 00:09:04 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-11-06 00:09:04 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] DNS entry stored in session object: localhost:5222

2023-11-06 00:09:04 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-11-06 00:09:05 | [Mutex] waiting for: [user_regularu57fxp0207@test-domain.com:message:received:content_qkfens0212]

2023-11-06 00:09:20 | [Mutex] timeout. Not received [user_regularu57fxp0207@test-domain.com:message:received:content_qkfens0212]

2023-11-06 00:09:20 | [Mutex] received everything.

2023-11-06 00:09:20 | [Mutex] isItemNotified: user_regularu57fxp0207@test-domain.com:message:received:content_qkfens0212 :: false

2023-11-06 00:09:20 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_qkfens0212 :: true