Generated by TestNG with ReportNG at 22:20 PDT on Tuesday 20 September 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.788s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.612s
2022-09-20 22:35:54 |

2022-09-20 22:35:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-09-20 22:35:54 | ------------------------------------

2022-09-20 22:35:54 | [Mutex] isItemNotified: node_iry9sa0204:exists :: false

2022-09-20 22:35:54 | [Mutex] waiting for: [node_iry9sa0204:create_node]

2022-09-20 22:35:54 | [Mutex] waiting for: [node_iry9sa0204:create_node]

2022-09-20 22:35:54 | [Mutex] received everything.

2022-09-20 22:35:54 | [Mutex] isItemNotified: node_iry9sa0204:create_node:success :: true

2022-09-20 22:35:54 | [Mutex] waiting for: [node_iry9sa0204:subscribe_node]

2022-09-20 22:35:54 | [Mutex] waiting for: [node_iry9sa0204:subscribe_node]

2022-09-20 22:35:54 | [Mutex] received everything.

2022-09-20 22:35:54 | [Mutex] isItemNotified: node_iry9sa0204:subscribe_node:success :: true

2022-09-20 22:35:54 |


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


2022-09-20 22:35:54 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-20 22:35:54 | command: <data><node>node_iry9sa0204</node><entry><content>content_uou4jy0205</content></entry></data>

2022-09-20 22:35:54 | target: http://localhost:8088

2022-09-20 22:35:54 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-09-20 22:35:54 | entity: <data><node>node_iry9sa0204</node><entry><content>content_uou4jy0205</content></entry></data>

2022-09-20 22:35:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 21 Sep 2022 05:35:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-20 22:35:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7e78e498-d30a-448a-8b50-18c35ad3dacc</value></item-id></result>

2022-09-20 22:35:54 | contains: true

2022-09-20 22:35:54 | [Mutex] received everything.

2022-09-20 22:35:54 | [Mutex] isItemNotified: user_regularkv3ca0203@test-domain.com:message:received:content_uou4jy0205 :: true

2022-09-20 22:35:54 |


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


2022-09-20 22:35:54 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-20 22:35:54 | command: <data><node>node_iry9sa0204</node><expire-at>2022-09-21T05:35:49Z</expire-at><entry><content>content_488l2r0206</content></entry></data>

2022-09-20 22:35:54 | target: http://localhost:8088

2022-09-20 22:35:54 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-20 22:35:54 | entity: <data><node>node_iry9sa0204</node><expire-at>2022-09-21T05:35:49Z</expire-at><entry><content>content_488l2r0206</content></entry></data>

2022-09-20 22:35:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 21 Sep 2022 05:35:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-20 22:35:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a6466fc4-1899-4fb0-9c79-1db503b2cf0b</value></item-id></result>

2022-09-20 22:35:54 | contains: true

2022-09-20 22:35:54 | [Mutex] waiting for: [user_regularkv3ca0203@test-domain.com:message:received:content_488l2r0206]

2022-09-20 22:36:09 | [Mutex] timeout. Not received [user_regularkv3ca0203@test-domain.com:message:received:content_488l2r0206]

2022-09-20 22:36:09 | [Mutex] isItemNotified: user_regularkv3ca0203@test-domain.com:message:received:content_488l2r0206 :: false

2022-09-20 22:36:09 |


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


2022-09-20 22:36:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-20 22:36:09 | command: <data><node>node_iry9sa0204</node><entry><content>content_21hiho0207</content></entry></data>

2022-09-20 22:36:09 | target: http://localhost:8088

2022-09-20 22:36:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-09-20 22:36:09 | entity: <data><node>node_iry9sa0204</node><entry><content>content_21hiho0207</content></entry></data>

2022-09-20 22:36:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 21 Sep 2022 05:36:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-20 22:36:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ffe314e5-30a9-4cd3-b7f9-baa395768a83</value></item-id></result>

2022-09-20 22:36:09 | contains: true

2022-09-20 22:36:14 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-09-20 22:36:14 | [Mutex] waiting for: [user_regularkv3ca0203@test-domain.com:message:received:content_21hiho0207]

2022-09-20 22:36:14 | [Mutex] received everything.

2022-09-20 22:36:14 | [Mutex] isItemNotified: user_regularkv3ca0203@test-domain.com:message:received:content_21hiho0207 :: true

2022-09-20 22:36:14 |


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


2022-09-20 22:36:14 | [Mutex] received everything.

2022-09-20 22:36:14 | [Mutex] isItemNotified: node_iry9sa0204:subscribe_node:success :: true

2022-09-20 22:36:14 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-20 22:36:14 | command: <data><node>node_iry9sa0204</node><expire-at>2022-09-21T05:36:19Z</expire-at><entry><content>content_r5eacc0208</content></entry></data>

2022-09-20 22:36:14 | target: http://localhost:8088

2022-09-20 22:36:14 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-20 22:36:14 | entity: <data><node>node_iry9sa0204</node><expire-at>2022-09-21T05:36:19Z</expire-at><entry><content>content_r5eacc0208</content></entry></data>

2022-09-20 22:36:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 21 Sep 2022 05:36:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-20 22:36:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>be19c7b3-8f57-4ea4-93bd-8aea43babba5</value></item-id></result>

2022-09-20 22:36:14 | contains: true

2022-09-20 22:36:22 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-09-20 22:36:22 | [Mutex] waiting for: [user_regularkv3ca0203@test-domain.com:message:received:content_r5eacc0208]

2022-09-20 22:36:22 | [Mutex] waiting for: [user_regularkv3ca0203@test-domain.com:message:received:content_r5eacc0208]

2022-09-20 22:36:37 | [Mutex] timeout. Not received [user_regularkv3ca0203@test-domain.com:message:received:content_r5eacc0208]

2022-09-20 22:36:37 | [Mutex] received everything.

2022-09-20 22:36:37 | [Mutex] isItemNotified: user_regularkv3ca0203@test-domain.com:message:received:content_r5eacc0208 :: false

2022-09-20 22:36:37 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_r5eacc0208 :: true