Generated by TestNG with ReportNG at 07:46 PDT on Tuesday 12 July 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.389s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.519s
2022-07-12 08:02:09 |

2022-07-12 08:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-12 08:02:09 | ------------------------------------

2022-07-12 08:02:09 | [Mutex] isItemNotified: node_jhysz20204:exists :: false

2022-07-12 08:02:09 | [Mutex] waiting for: [node_jhysz20204:create_node]

2022-07-12 08:02:09 | [Mutex] received everything.

2022-07-12 08:02:09 | [Mutex] isItemNotified: node_jhysz20204:create_node:success :: true

2022-07-12 08:02:09 | [Mutex] waiting for: [node_jhysz20204:subscribe_node]

2022-07-12 08:02:09 | [Mutex] waiting for: [node_jhysz20204:subscribe_node]

2022-07-12 08:02:09 | [Mutex] received everything.

2022-07-12 08:02:09 | [Mutex] isItemNotified: node_jhysz20204:subscribe_node:success :: true

2022-07-12 08:02:09 |


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


2022-07-12 08:02:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-12 08:02:09 | command: <data><node>node_jhysz20204</node><entry><content>content_1reyz10205</content></entry></data>

2022-07-12 08:02:09 | target: http://localhost:8088

2022-07-12 08:02:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-12 08:02:09 | entity: <data><node>node_jhysz20204</node><entry><content>content_1reyz10205</content></entry></data>

2022-07-12 08:02:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 12 Jul 2022 15:02:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-12 08:02:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>365b5552-88a4-4f45-a8ee-1f7fa2cdee7d</value></item-id></result>

2022-07-12 08:02:09 | contains: true

2022-07-12 08:02:09 | [Mutex] waiting for: [user_regular4lo7pk0203@test-domain.com:message:received:content_1reyz10205]

2022-07-12 08:02:09 | [Mutex] received everything.

2022-07-12 08:02:09 | [Mutex] isItemNotified: user_regular4lo7pk0203@test-domain.com:message:received:content_1reyz10205 :: true

2022-07-12 08:02:09 |


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


2022-07-12 08:02:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-12 08:02:09 | command: <data><node>node_jhysz20204</node><expire-at>2022-07-12T15:02:04Z</expire-at><entry><content>content_f2f6dq0206</content></entry></data>

2022-07-12 08:02:09 | target: http://localhost:8088

2022-07-12 08:02:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-12 08:02:09 | entity: <data><node>node_jhysz20204</node><expire-at>2022-07-12T15:02:04Z</expire-at><entry><content>content_f2f6dq0206</content></entry></data>

2022-07-12 08:02:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 12 Jul 2022 15:02:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-12 08:02:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e625bca9-85a2-45bf-b04f-234c87c0be7c</value></item-id></result>

2022-07-12 08:02:09 | contains: true

2022-07-12 08:02:09 | [Mutex] waiting for: [user_regular4lo7pk0203@test-domain.com:message:received:content_f2f6dq0206]

2022-07-12 08:02:24 | [Mutex] timeout. Not received [user_regular4lo7pk0203@test-domain.com:message:received:content_f2f6dq0206]

2022-07-12 08:02:24 | [Mutex] isItemNotified: user_regular4lo7pk0203@test-domain.com:message:received:content_f2f6dq0206 :: false

2022-07-12 08:02:24 |


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


2022-07-12 08:02:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-12 08:02:24 | command: <data><node>node_jhysz20204</node><entry><content>content_nq197y0207</content></entry></data>

2022-07-12 08:02:24 | target: http://localhost:8088

2022-07-12 08:02:24 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-12 08:02:24 | entity: <data><node>node_jhysz20204</node><entry><content>content_nq197y0207</content></entry></data>

2022-07-12 08:02:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 12 Jul 2022 15:02:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-12 08:02:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>01e8c7de-b8be-428f-b919-f11972ad68ea</value></item-id></result>

2022-07-12 08:02:24 | contains: true

2022-07-12 08:02:29 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-07-12 08:02:29 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-07-12 08:02:29 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-12 08:02:30 | [Mutex] waiting for: [user_regular4lo7pk0203@test-domain.com:message:received:content_nq197y0207]

2022-07-12 08:02:30 | [Mutex] waiting for: [user_regular4lo7pk0203@test-domain.com:message:received:content_nq197y0207]

2022-07-12 08:02:30 | [Mutex] received everything.

2022-07-12 08:02:30 | [Mutex] isItemNotified: user_regular4lo7pk0203@test-domain.com:message:received:content_nq197y0207 :: true

2022-07-12 08:02:30 |


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


2022-07-12 08:02:30 | [Mutex] received everything.

2022-07-12 08:02:30 | [Mutex] isItemNotified: node_jhysz20204:subscribe_node:success :: true

2022-07-12 08:02:30 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-12 08:02:30 | command: <data><node>node_jhysz20204</node><expire-at>2022-07-12T15:02:35Z</expire-at><entry><content>content_ncy7eo0208</content></entry></data>

2022-07-12 08:02:30 | target: http://localhost:8088

2022-07-12 08:02:30 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-12 08:02:30 | entity: <data><node>node_jhysz20204</node><expire-at>2022-07-12T15:02:35Z</expire-at><entry><content>content_ncy7eo0208</content></entry></data>

2022-07-12 08:02:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 12 Jul 2022 15:02:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-12 08:02:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e2a9d0d5-7e7b-44ca-8839-fde0db43a03a</value></item-id></result>

2022-07-12 08:02:30 | contains: true

2022-07-12 08:02:38 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-07-12 08:02:38 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-07-12 08:02:38 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-12 08:02:38 | [Mutex] waiting for: [user_regular4lo7pk0203@test-domain.com:message:received:content_ncy7eo0208]

2022-07-12 08:02:53 | [Mutex] timeout. Not received [user_regular4lo7pk0203@test-domain.com:message:received:content_ncy7eo0208]

2022-07-12 08:02:53 | [Mutex] received everything.

2022-07-12 08:02:53 | [Mutex] isItemNotified: user_regular4lo7pk0203@test-domain.com:message:received:content_ncy7eo0208 :: false

2022-07-12 08:02:53 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_ncy7eo0208 :: true