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

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.595s
2022-12-28 22:02:40 |

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

2022-12-28 22:02:40 | ------------------------------------

2022-12-28 22:02:40 | [Mutex] isItemNotified: node_4xgon30204:exists :: false

2022-12-28 22:02:40 | [Mutex] waiting for: [node_4xgon30204:create_node]

2022-12-28 22:02:40 | [Mutex] received everything.

2022-12-28 22:02:40 | [Mutex] isItemNotified: node_4xgon30204:create_node:success :: true

2022-12-28 22:02:40 | [Mutex] waiting for: [node_4xgon30204:subscribe_node]

2022-12-28 22:02:40 | [Mutex] waiting for: [node_4xgon30204:subscribe_node]

2022-12-28 22:02:40 | [Mutex] received everything.

2022-12-28 22:02:40 | [Mutex] isItemNotified: node_4xgon30204:subscribe_node:success :: true

2022-12-28 22:02:40 |


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


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

2022-12-28 22:02:40 | command: <data><node>node_4xgon30204</node><entry><content>content_xi46l20205</content></entry></data>

2022-12-28 22:02:40 | target: http://localhost:8088

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

2022-12-28 22:02:40 | entity: <data><node>node_4xgon30204</node><entry><content>content_xi46l20205</content></entry></data>

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

2022-12-28 22:02:40 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>8fce18d0-b98d-439f-9401-7aa38057d3f8</value></item-id></result>

2022-12-28 22:02:40 | contains: true

2022-12-28 22:02:40 | [Mutex] received everything.

2022-12-28 22:02:40 | [Mutex] isItemNotified: user_regularvyts840203@test-domain.com:message:received:content_xi46l20205 :: true

2022-12-28 22:02:40 |


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


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

2022-12-28 22:02:40 | command: <data><node>node_4xgon30204</node><expire-at>2022-12-29T06:02:35Z</expire-at><entry><content>content_s0ic7a0206</content></entry></data>

2022-12-28 22:02:40 | target: http://localhost:8088

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

2022-12-28 22:02:40 | entity: <data><node>node_4xgon30204</node><expire-at>2022-12-29T06:02:35Z</expire-at><entry><content>content_s0ic7a0206</content></entry></data>

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

2022-12-28 22:02:41 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>1d2180bf-3378-4f17-a594-3f5802d86be9</value></item-id></result>

2022-12-28 22:02:41 | contains: true

2022-12-28 22:02:41 | [Mutex] waiting for: [user_regularvyts840203@test-domain.com:message:received:content_s0ic7a0206]

2022-12-28 22:02:56 | [Mutex] timeout. Not received [user_regularvyts840203@test-domain.com:message:received:content_s0ic7a0206]

2022-12-28 22:02:56 | [Mutex] isItemNotified: user_regularvyts840203@test-domain.com:message:received:content_s0ic7a0206 :: false

2022-12-28 22:02:56 |


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


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

2022-12-28 22:02:56 | command: <data><node>node_4xgon30204</node><entry><content>content_5x6dd0207</content></entry></data>

2022-12-28 22:02:56 | target: http://localhost:8088

2022-12-28 22:02:56 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2022-12-28 22:02:56 | entity: <data><node>node_4xgon30204</node><entry><content>content_5x6dd0207</content></entry></data>

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

2022-12-28 22:02:56 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ada6e76d-2d23-4682-9ce1-f32e7235b72f</value></item-id></result>

2022-12-28 22:02:56 | contains: true

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

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

2022-12-28 22:03:01 | 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:01 | [Mutex] waiting for: [user_regularvyts840203@test-domain.com:message:received:content_5x6dd0207]

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

2022-12-28 22:03:01 | [Mutex] isItemNotified: user_regularvyts840203@test-domain.com:message:received:content_5x6dd0207 :: true

2022-12-28 22:03:01 |


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


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

2022-12-28 22:03:01 | [Mutex] isItemNotified: node_4xgon30204:subscribe_node:success :: true

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

2022-12-28 22:03:01 | command: <data><node>node_4xgon30204</node><expire-at>2022-12-29T06:03:06Z</expire-at><entry><content>content_chpzll0208</content></entry></data>

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

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

2022-12-28 22:03:01 | entity: <data><node>node_4xgon30204</node><expire-at>2022-12-29T06:03:06Z</expire-at><entry><content>content_chpzll0208</content></entry></data>

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

2022-12-28 22:03:01 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6c41905e-56e3-4dc0-a26e-d3ab2996287f</value></item-id></result>

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

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

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

2022-12-28 22:03:09 | 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:09 | [Mutex] waiting for: [user_regularvyts840203@test-domain.com:message:received:content_chpzll0208]

2022-12-28 22:03:24 | [Mutex] timeout. Not received [user_regularvyts840203@test-domain.com:message:received:content_chpzll0208]

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

2022-12-28 22:03:24 | [Mutex] isItemNotified: user_regularvyts840203@test-domain.com:message:received:content_chpzll0208 :: false

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