Generated by TestNG with ReportNG at 09:07 PST on Monday 06 March 2023
root@7c41cec37518 / 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.863s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.684s
2023-03-06 09:22:43 |

2023-03-06 09:22:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-03-06 09:22:43 | ------------------------------------

2023-03-06 09:22:43 | [Mutex] isItemNotified: node_o46r990208:exists :: false

2023-03-06 09:22:43 | [Mutex] waiting for: [node_o46r990208:create_node]

2023-03-06 09:22:43 | [Mutex] received everything.

2023-03-06 09:22:43 | [Mutex] isItemNotified: node_o46r990208:create_node:success :: true

2023-03-06 09:22:43 | [Mutex] waiting for: [node_o46r990208:subscribe_node]

2023-03-06 09:22:43 | [Mutex] waiting for: [node_o46r990208:subscribe_node]

2023-03-06 09:22:43 | [Mutex] received everything.

2023-03-06 09:22:43 | [Mutex] isItemNotified: node_o46r990208:subscribe_node:success :: true

2023-03-06 09:22:43 |


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


2023-03-06 09:22:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-06 09:22:43 | command: <data><node>node_o46r990208</node><entry><content>content_n496eh0209</content></entry></data>

2023-03-06 09:22:43 | target: http://localhost:8088

2023-03-06 09:22:43 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-03-06 09:22:43 | entity: <data><node>node_o46r990208</node><entry><content>content_n496eh0209</content></entry></data>

2023-03-06 09:22:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Mar 2023 17:22:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-06 09:22:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>46066eb5-b735-4a8f-bdf9-b67c17f350a0</value></item-id></result>

2023-03-06 09:22:43 | contains: true

2023-03-06 09:22:43 | [Mutex] received everything.

2023-03-06 09:22:43 | [Mutex] isItemNotified: user_regularqzyuqx0207@test-domain.com:message:received:content_n496eh0209 :: true

2023-03-06 09:22:43 |


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


2023-03-06 09:22:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-06 09:22:43 | command: <data><node>node_o46r990208</node><expire-at>2023-03-06T17:22:38Z</expire-at><entry><content>content_vhzaiw0210</content></entry></data>

2023-03-06 09:22:43 | target: http://localhost:8088

2023-03-06 09:22:43 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-03-06 09:22:43 | entity: <data><node>node_o46r990208</node><expire-at>2023-03-06T17:22:38Z</expire-at><entry><content>content_vhzaiw0210</content></entry></data>

2023-03-06 09:22:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Mar 2023 17:22:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-06 09:22:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>1ed5463e-3bb2-4f54-964d-76fbab87bd42</value></item-id></result>

2023-03-06 09:22:43 | contains: true

2023-03-06 09:22:43 | [Mutex] waiting for: [user_regularqzyuqx0207@test-domain.com:message:received:content_vhzaiw0210]

2023-03-06 09:22:58 | [Mutex] timeout. Not received [user_regularqzyuqx0207@test-domain.com:message:received:content_vhzaiw0210]

2023-03-06 09:22:58 | [Mutex] isItemNotified: user_regularqzyuqx0207@test-domain.com:message:received:content_vhzaiw0210 :: false

2023-03-06 09:22:58 |


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


2023-03-06 09:22:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-06 09:22:58 | command: <data><node>node_o46r990208</node><entry><content>content_udex6h0211</content></entry></data>

2023-03-06 09:22:58 | target: http://localhost:8088

2023-03-06 09:22:58 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-03-06 09:22:58 | entity: <data><node>node_o46r990208</node><entry><content>content_udex6h0211</content></entry></data>

2023-03-06 09:22:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Mar 2023 17:22:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-06 09:22:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2dc2a039-2286-4ba2-b4a0-00911c9365b4</value></item-id></result>

2023-03-06 09:22:58 | contains: true

2023-03-06 09:23:03 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2023-03-06 09:23:03 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-03-06 09:23:04 | [Mutex] waiting for: [user_regularqzyuqx0207@test-domain.com:message:received:content_udex6h0211]

2023-03-06 09:23:04 | [Mutex] received everything.

2023-03-06 09:23:04 | [Mutex] isItemNotified: user_regularqzyuqx0207@test-domain.com:message:received:content_udex6h0211 :: true

2023-03-06 09:23:04 |


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


2023-03-06 09:23:04 | [Mutex] received everything.

2023-03-06 09:23:04 | [Mutex] isItemNotified: node_o46r990208:subscribe_node:success :: true

2023-03-06 09:23:04 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-06 09:23:04 | command: <data><node>node_o46r990208</node><expire-at>2023-03-06T17:23:09Z</expire-at><entry><content>content_sm21gf0212</content></entry></data>

2023-03-06 09:23:04 | target: http://localhost:8088

2023-03-06 09:23:04 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-03-06 09:23:04 | entity: <data><node>node_o46r990208</node><expire-at>2023-03-06T17:23:09Z</expire-at><entry><content>content_sm21gf0212</content></entry></data>

2023-03-06 09:23:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 06 Mar 2023 17:23:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-06 09:23:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4b3365f5-71f5-4a28-8573-1b4219ea83b0</value></item-id></result>

2023-03-06 09:23:04 | contains: true

2023-03-06 09:23:12 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2023-03-06 09:23:12 | [Mutex] waiting for: [user_regularqzyuqx0207@test-domain.com:message:received:content_sm21gf0212]

2023-03-06 09:23:12 | [Mutex] waiting for: [user_regularqzyuqx0207@test-domain.com:message:received:content_sm21gf0212]

2023-03-06 09:23:27 | [Mutex] timeout. Not received [user_regularqzyuqx0207@test-domain.com:message:received:content_sm21gf0212]

2023-03-06 09:23:27 | [Mutex] received everything.

2023-03-06 09:23:27 | [Mutex] isItemNotified: user_regularqzyuqx0207@test-domain.com:message:received:content_sm21gf0212 :: false

2023-03-06 09:23:27 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_sm21gf0212 :: true