Generated by TestNG with ReportNG at 21:15 PST on Friday 16 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.514s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.597s
2022-12-16 21:31:10 |

2022-12-16 21:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-16 21:31:10 | ------------------------------------

2022-12-16 21:31:10 | [Mutex] isItemNotified: node_zhewn60204:exists :: false

2022-12-16 21:31:10 | [Mutex] waiting for: [node_zhewn60204:create_node]

2022-12-16 21:31:10 | [Mutex] received everything.

2022-12-16 21:31:10 | [Mutex] isItemNotified: node_zhewn60204:create_node:success :: true

2022-12-16 21:31:10 | [Mutex] waiting for: [node_zhewn60204:subscribe_node]

2022-12-16 21:31:10 | [Mutex] waiting for: [node_zhewn60204:subscribe_node]

2022-12-16 21:31:10 | [Mutex] received everything.

2022-12-16 21:31:10 | [Mutex] isItemNotified: node_zhewn60204:subscribe_node:success :: true

2022-12-16 21:31:10 |


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


2022-12-16 21:31:10 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 21:31:10 | command: <data><node>node_zhewn60204</node><entry><content>content_jrc0ta0205</content></entry></data>

2022-12-16 21:31:10 | target: http://localhost:8088

2022-12-16 21:31:10 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-16 21:31:10 | entity: <data><node>node_zhewn60204</node><entry><content>content_jrc0ta0205</content></entry></data>

2022-12-16 21:31:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 17 Dec 2022 05:31:10 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 21:31:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>aa0bd8cd-62ad-4b6f-b352-86a72469f087</value></item-id></result>

2022-12-16 21:31:10 | contains: true

2022-12-16 21:31:10 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_jrc0ta0205]

2022-12-16 21:31:10 | [Mutex] received everything.

2022-12-16 21:31:10 | [Mutex] isItemNotified: user_regularwfev6z0203@test-domain.com:message:received:content_jrc0ta0205 :: true

2022-12-16 21:31:10 |


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


2022-12-16 21:31:10 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 21:31:10 | command: <data><node>node_zhewn60204</node><expire-at>2022-12-17T05:31:05Z</expire-at><entry><content>content_i7l5wo0206</content></entry></data>

2022-12-16 21:31:10 | target: http://localhost:8088

2022-12-16 21:31:10 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-16 21:31:10 | entity: <data><node>node_zhewn60204</node><expire-at>2022-12-17T05:31:05Z</expire-at><entry><content>content_i7l5wo0206</content></entry></data>

2022-12-16 21:31:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 17 Dec 2022 05:31:10 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 21:31:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>089c28cd-eae3-401d-9c25-3a3e84107baa</value></item-id></result>

2022-12-16 21:31:10 | contains: true

2022-12-16 21:31:10 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_i7l5wo0206]

2022-12-16 21:31:25 | [Mutex] timeout. Not received [user_regularwfev6z0203@test-domain.com:message:received:content_i7l5wo0206]

2022-12-16 21:31:25 | [Mutex] isItemNotified: user_regularwfev6z0203@test-domain.com:message:received:content_i7l5wo0206 :: false

2022-12-16 21:31:25 |


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


2022-12-16 21:31:25 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 21:31:25 | command: <data><node>node_zhewn60204</node><entry><content>content_89lca0207</content></entry></data>

2022-12-16 21:31:25 | target: http://localhost:8088

2022-12-16 21:31:25 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2022-12-16 21:31:25 | entity: <data><node>node_zhewn60204</node><entry><content>content_89lca0207</content></entry></data>

2022-12-16 21:31:25 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 17 Dec 2022 05:31:25 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 21:31:25 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>87deb39d-8b6f-4b8e-a47b-15a0f936ec25</value></item-id></result>

2022-12-16 21:31:25 | contains: true

2022-12-16 21:31:30 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-12-16 21:31:31 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_89lca0207]

2022-12-16 21:31:31 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_89lca0207]

2022-12-16 21:31:31 | [Mutex] received everything.

2022-12-16 21:31:31 | [Mutex] isItemNotified: user_regularwfev6z0203@test-domain.com:message:received:content_89lca0207 :: true

2022-12-16 21:31:31 |


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


2022-12-16 21:31:31 | [Mutex] received everything.

2022-12-16 21:31:31 | [Mutex] isItemNotified: node_zhewn60204:subscribe_node:success :: true

2022-12-16 21:31:31 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 21:31:31 | command: <data><node>node_zhewn60204</node><expire-at>2022-12-17T05:31:36Z</expire-at><entry><content>content_dz6h7n0208</content></entry></data>

2022-12-16 21:31:31 | target: http://localhost:8088

2022-12-16 21:31:31 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-16 21:31:31 | entity: <data><node>node_zhewn60204</node><expire-at>2022-12-17T05:31:36Z</expire-at><entry><content>content_dz6h7n0208</content></entry></data>

2022-12-16 21:31:31 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 17 Dec 2022 05:31:31 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 21:31:31 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>cc668758-bab4-48ef-b876-78abdd560cc4</value></item-id></result>

2022-12-16 21:31:31 | contains: true

2022-12-16 21:31:39 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-16 21:31:39 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-12-16 21:31:39 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-16 21:31:39 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_dz6h7n0208]

2022-12-16 21:31:39 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_dz6h7n0208]

2022-12-16 21:31:39 | [Mutex] waiting for: [user_regularwfev6z0203@test-domain.com:message:received:content_dz6h7n0208]

2022-12-16 21:31:54 | [Mutex] timeout. Not received [user_regularwfev6z0203@test-domain.com:message:received:content_dz6h7n0208]

2022-12-16 21:31:54 | [Mutex] received everything.

2022-12-16 21:31:54 | [Mutex] isItemNotified: user_regularwfev6z0203@test-domain.com:message:received:content_dz6h7n0208 :: false

2022-12-16 21:31:54 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_dz6h7n0208 :: true