Generated by TestNG with ReportNG at 22:43 PDT on Tuesday 04 July 2023
root@8f5c98824654 / Java 17.0.6 (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.791s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.722s
2023-07-04 22:58:08 |

2023-07-04 22:58:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-07-04 22:58:08 | ------------------------------------

2023-07-04 22:58:08 | [Mutex] isItemNotified: node_st134q0208:exists :: false

2023-07-04 22:58:08 | [Mutex] waiting for: [node_st134q0208:create_node]

2023-07-04 22:58:08 | [Mutex] waiting for: [node_st134q0208:create_node]

2023-07-04 22:58:08 | [Mutex] received everything.

2023-07-04 22:58:08 | [Mutex] isItemNotified: node_st134q0208:create_node:success :: true

2023-07-04 22:58:08 | [Mutex] waiting for: [node_st134q0208:subscribe_node]

2023-07-04 22:58:08 | [Mutex] waiting for: [node_st134q0208:subscribe_node]

2023-07-04 22:58:08 | [Mutex] received everything.

2023-07-04 22:58:08 | [Mutex] isItemNotified: node_st134q0208:subscribe_node:success :: true

2023-07-04 22:58:08 |


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


2023-07-04 22:58:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:58:08 | command: <data><node>node_st134q0208</node><entry><content>content_y9nsl80209</content></entry></data>

2023-07-04 22:58:08 | target: http://localhost:8088

2023-07-04 22:58:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-07-04 22:58:08 | entity: <data><node>node_st134q0208</node><entry><content>content_y9nsl80209</content></entry></data>

2023-07-04 22:58:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:58:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:58:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>68ed4b96-6a8c-47de-9fb0-4c7078aacd63</value></item-id></result>

2023-07-04 22:58:08 | contains: true

2023-07-04 22:58:08 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_y9nsl80209]

2023-07-04 22:58:08 | [Mutex] received everything.

2023-07-04 22:58:08 | [Mutex] isItemNotified: user_regularhb38n20207@test-domain.com:message:received:content_y9nsl80209 :: true

2023-07-04 22:58:08 |


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


2023-07-04 22:58:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:58:08 | command: <data><node>node_st134q0208</node><expire-at>2023-07-05T05:58:03Z</expire-at><entry><content>content_ynl5nw0210</content></entry></data>

2023-07-04 22:58:08 | target: http://localhost:8088

2023-07-04 22:58:08 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-07-04 22:58:08 | entity: <data><node>node_st134q0208</node><expire-at>2023-07-05T05:58:03Z</expire-at><entry><content>content_ynl5nw0210</content></entry></data>

2023-07-04 22:58:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:58:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:58:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ba20a040-63e4-4ec3-88ef-fa672793352e</value></item-id></result>

2023-07-04 22:58:08 | contains: true

2023-07-04 22:58:08 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_ynl5nw0210]

2023-07-04 22:58:23 | [Mutex] timeout. Not received [user_regularhb38n20207@test-domain.com:message:received:content_ynl5nw0210]

2023-07-04 22:58:23 | [Mutex] isItemNotified: user_regularhb38n20207@test-domain.com:message:received:content_ynl5nw0210 :: false

2023-07-04 22:58:23 |


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


2023-07-04 22:58:23 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:58:23 | command: <data><node>node_st134q0208</node><entry><content>content_x4zbzq0211</content></entry></data>

2023-07-04 22:58:23 | target: http://localhost:8088

2023-07-04 22:58:23 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-07-04 22:58:23 | entity: <data><node>node_st134q0208</node><entry><content>content_x4zbzq0211</content></entry></data>

2023-07-04 22:58:23 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:58:23 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:58:23 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>2a19a494-0e50-442a-9fbb-8cd9c400123f</value></item-id></result>

2023-07-04 22:58:23 | contains: true

2023-07-04 22:58:28 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-07-04 22:58:28 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] DNS entry stored in session object: localhost:5222

2023-07-04 22:58:28 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-07-04 22:58:28 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_x4zbzq0211]

2023-07-04 22:58:28 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_x4zbzq0211]

2023-07-04 22:58:28 | [Mutex] received everything.

2023-07-04 22:58:28 | [Mutex] isItemNotified: user_regularhb38n20207@test-domain.com:message:received:content_x4zbzq0211 :: true

2023-07-04 22:58:28 |


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


2023-07-04 22:58:28 | [Mutex] received everything.

2023-07-04 22:58:28 | [Mutex] isItemNotified: node_st134q0208:subscribe_node:success :: true

2023-07-04 22:58:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-07-04 22:58:28 | command: <data><node>node_st134q0208</node><expire-at>2023-07-05T05:58:33Z</expire-at><entry><content>content_z11djn0212</content></entry></data>

2023-07-04 22:58:28 | target: http://localhost:8088

2023-07-04 22:58:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-07-04 22:58:28 | entity: <data><node>node_st134q0208</node><expire-at>2023-07-05T05:58:33Z</expire-at><entry><content>content_z11djn0212</content></entry></data>

2023-07-04 22:58:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 05 Jul 2023 05:58:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-07-04 22:58:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d6314c98-5ca4-4505-9321-a30310741935</value></item-id></result>

2023-07-04 22:58:29 | contains: true

2023-07-04 22:58:37 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-07-04 22:58:37 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] DNS entry stored in session object: localhost:5222

2023-07-04 22:58:37 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-07-04 22:58:37 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_z11djn0212]

2023-07-04 22:58:37 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_z11djn0212]

2023-07-04 22:58:37 | [Mutex] waiting for: [user_regularhb38n20207@test-domain.com:message:received:content_z11djn0212]

2023-07-04 22:58:52 | [Mutex] timeout. Not received [user_regularhb38n20207@test-domain.com:message:received:content_z11djn0212]

2023-07-04 22:58:52 | [Mutex] received everything.

2023-07-04 22:58:52 | [Mutex] isItemNotified: user_regularhb38n20207@test-domain.com:message:received:content_z11djn0212 :: false

2023-07-04 22:58:52 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_z11djn0212 :: true