Generated by TestNG with ReportNG at 21:46 PST on Wednesday 28 December 2022
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.598s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.536s
2022-12-28 22:03:11 |

2022-12-28 22:03:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-28 22:03:11 | ------------------------------------

2022-12-28 22:03:11 | [Mutex] isItemNotified: node_r45xma0204:exists :: false

2022-12-28 22:03:11 | [Mutex] waiting for: [node_r45xma0204:create_node]

2022-12-28 22:03:11 | [Mutex] received everything.

2022-12-28 22:03:11 | [Mutex] isItemNotified: node_r45xma0204:create_node:success :: true

2022-12-28 22:03:11 | [Mutex] waiting for: [node_r45xma0204:subscribe_node]

2022-12-28 22:03:11 | [Mutex] waiting for: [node_r45xma0204:subscribe_node]

2022-12-28 22:03:11 | [Mutex] received everything.

2022-12-28 22:03:11 | [Mutex] isItemNotified: node_r45xma0204:subscribe_node:success :: true

2022-12-28 22:03:11 |


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


2022-12-28 22:03:11 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-28 22:03:11 | command: <data><node>node_r45xma0204</node><entry><content>content_s2k5180205</content></entry></data>

2022-12-28 22:03:11 | target: http://localhost:8088

2022-12-28 22:03:11 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-28 22:03:11 | entity: <data><node>node_r45xma0204</node><entry><content>content_s2k5180205</content></entry></data>

2022-12-28 22:03:11 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 06:03:11 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 22:03:11 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>06a0a304-36c9-4904-86a6-713e37b53d3e</value></item-id></result>

2022-12-28 22:03:11 | contains: true

2022-12-28 22:03:11 | [Mutex] received everything.

2022-12-28 22:03:11 | [Mutex] isItemNotified: user_regular9sfj110203@test-domain.com:message:received:content_s2k5180205 :: true

2022-12-28 22:03:11 |


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


2022-12-28 22:03:11 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-28 22:03:11 | command: <data><node>node_r45xma0204</node><expire-at>2022-12-29T06:03:06Z</expire-at><entry><content>content_g5gggc0206</content></entry></data>

2022-12-28 22:03:11 | target: http://localhost:8088

2022-12-28 22:03:11 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-28 22:03:11 | entity: <data><node>node_r45xma0204</node><expire-at>2022-12-29T06:03:06Z</expire-at><entry><content>content_g5gggc0206</content></entry></data>

2022-12-28 22:03:11 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 06:03:11 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 22:03:11 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ad4b6162-91ca-4989-895a-7e466c4ec805</value></item-id></result>

2022-12-28 22:03:11 | contains: true

2022-12-28 22:03:11 | [Mutex] waiting for: [user_regular9sfj110203@test-domain.com:message:received:content_g5gggc0206]

2022-12-28 22:03:26 | [Mutex] timeout. Not received [user_regular9sfj110203@test-domain.com:message:received:content_g5gggc0206]

2022-12-28 22:03:26 | [Mutex] isItemNotified: user_regular9sfj110203@test-domain.com:message:received:content_g5gggc0206 :: false

2022-12-28 22:03:26 |


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


2022-12-28 22:03:26 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-28 22:03:26 | command: <data><node>node_r45xma0204</node><entry><content>content_b5bp4y0207</content></entry></data>

2022-12-28 22:03:26 | target: http://localhost:8088

2022-12-28 22:03:26 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-28 22:03:26 | entity: <data><node>node_r45xma0204</node><entry><content>content_b5bp4y0207</content></entry></data>

2022-12-28 22:03:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 06:03:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 22:03:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1eaf42d7-9c31-400f-abf1-fd91317d0048</value></item-id></result>

2022-12-28 22:03:26 | contains: true

2022-12-28 22:03:31 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-28 22:03:31 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-12-28 22:03:31 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-28 22:03:32 | [Mutex] waiting for: [user_regular9sfj110203@test-domain.com:message:received:content_b5bp4y0207]

2022-12-28 22:03:32 | [Mutex] received everything.

2022-12-28 22:03:32 | [Mutex] isItemNotified: user_regular9sfj110203@test-domain.com:message:received:content_b5bp4y0207 :: true

2022-12-28 22:03:32 |


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


2022-12-28 22:03:32 | [Mutex] received everything.

2022-12-28 22:03:32 | [Mutex] isItemNotified: node_r45xma0204:subscribe_node:success :: true

2022-12-28 22:03:32 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-28 22:03:32 | command: <data><node>node_r45xma0204</node><expire-at>2022-12-29T06:03:37Z</expire-at><entry><content>content_pd9i2k0208</content></entry></data>

2022-12-28 22:03:32 | target: http://localhost:8088

2022-12-28 22:03:32 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-28 22:03:32 | entity: <data><node>node_r45xma0204</node><expire-at>2022-12-29T06:03:37Z</expire-at><entry><content>content_pd9i2k0208</content></entry></data>

2022-12-28 22:03:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 06:03:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 22:03:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8fd54c1c-0c43-4672-8a98-9b25812495a7</value></item-id></result>

2022-12-28 22:03:32 | contains: true

2022-12-28 22:03:40 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-28 22:03:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-12-28 22:03:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-28 22:03:40 | [Mutex] waiting for: [user_regular9sfj110203@test-domain.com:message:received:content_pd9i2k0208]

2022-12-28 22:03:55 | [Mutex] timeout. Not received [user_regular9sfj110203@test-domain.com:message:received:content_pd9i2k0208]

2022-12-28 22:03:55 | [Mutex] received everything.

2022-12-28 22:03:55 | [Mutex] isItemNotified: user_regular9sfj110203@test-domain.com:message:received:content_pd9i2k0208 :: false

2022-12-28 22:03:55 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_pd9i2k0208 :: true