Generated by TestNG with ReportNG at 22:23 PDT on Monday 16 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Item publication on PubSub node with message expiration using REST API - #2959

Suites · Log Output

Test duration : 45.107s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.657s
2022-05-16 22:38:52 |

2022-05-16 22:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-16 22:38:52 | ------------------------------------

2022-05-16 22:38:52 | [Mutex] isItemNotified: node_c62cm70204:exists :: false

2022-05-16 22:38:52 | [Mutex] waiting for: [node_c62cm70204:create_node]

2022-05-16 22:38:52 | [Mutex] received everything.

2022-05-16 22:38:52 | [Mutex] isItemNotified: node_c62cm70204:create_node:success :: true

2022-05-16 22:38:52 | [Mutex] waiting for: [node_c62cm70204:subscribe_node]

2022-05-16 22:38:52 | [Mutex] waiting for: [node_c62cm70204:subscribe_node]

2022-05-16 22:38:52 | [Mutex] received everything.

2022-05-16 22:38:52 | [Mutex] isItemNotified: node_c62cm70204:subscribe_node:success :: true

2022-05-16 22:38:52 |


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


2022-05-16 22:38:52 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:38:52 | command: <data><node>node_c62cm70204</node><entry><content>content_3tb9ef0205</content></entry></data>

2022-05-16 22:38:52 | target: http://localhost:8088

2022-05-16 22:38:52 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-16 22:38:52 | entity: <data><node>node_c62cm70204</node><entry><content>content_3tb9ef0205</content></entry></data>

2022-05-16 22:38:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:38:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:38:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e38f9835-117d-4c52-a8a2-bc86fb381f5d</value></item-id></result>

2022-05-16 22:38:53 | contains: true

2022-05-16 22:38:53 | [Mutex] received everything.

2022-05-16 22:38:53 | [Mutex] isItemNotified: user_regular5elay10203@test-domain.com:message:received:content_3tb9ef0205 :: true

2022-05-16 22:38:53 |


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


2022-05-16 22:38:53 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:38:53 | command: <data><node>node_c62cm70204</node><expire-at>2022-05-17T05:38:48Z</expire-at><entry><content>content_ywy8b60206</content></entry></data>

2022-05-16 22:38:53 | target: http://localhost:8088

2022-05-16 22:38:53 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-16 22:38:53 | entity: <data><node>node_c62cm70204</node><expire-at>2022-05-17T05:38:48Z</expire-at><entry><content>content_ywy8b60206</content></entry></data>

2022-05-16 22:38:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:38:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:38:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e1e7db99-c1d8-48ac-a98d-788f174c6562</value></item-id></result>

2022-05-16 22:38:53 | contains: true

2022-05-16 22:38:53 | [Mutex] waiting for: [user_regular5elay10203@test-domain.com:message:received:content_ywy8b60206]

2022-05-16 22:39:08 | [Mutex] timeout. Not received [user_regular5elay10203@test-domain.com:message:received:content_ywy8b60206]

2022-05-16 22:39:08 | [Mutex] isItemNotified: user_regular5elay10203@test-domain.com:message:received:content_ywy8b60206 :: false

2022-05-16 22:39:08 |


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


2022-05-16 22:39:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:39:08 | command: <data><node>node_c62cm70204</node><entry><content>content_2ymbvp0207</content></entry></data>

2022-05-16 22:39:08 | target: http://localhost:8088

2022-05-16 22:39:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-16 22:39:08 | entity: <data><node>node_c62cm70204</node><entry><content>content_2ymbvp0207</content></entry></data>

2022-05-16 22:39:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:39:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:39:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ea901254-a080-4905-b948-af986d9ed9f0</value></item-id></result>

2022-05-16 22:39:08 | contains: true

2022-05-16 22:39:13 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-05-16 22:39:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-05-16 22:39:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-05-16 22:39:13 | [Mutex] waiting for: [user_regular5elay10203@test-domain.com:message:received:content_2ymbvp0207]

2022-05-16 22:39:13 | [Mutex] waiting for: [user_regular5elay10203@test-domain.com:message:received:content_2ymbvp0207]

2022-05-16 22:39:13 | [Mutex] received everything.

2022-05-16 22:39:13 | [Mutex] isItemNotified: user_regular5elay10203@test-domain.com:message:received:content_2ymbvp0207 :: true

2022-05-16 22:39:13 |


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


2022-05-16 22:39:13 | [Mutex] received everything.

2022-05-16 22:39:13 | [Mutex] isItemNotified: node_c62cm70204:subscribe_node:success :: true

2022-05-16 22:39:13 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-16 22:39:13 | command: <data><node>node_c62cm70204</node><expire-at>2022-05-17T05:39:18Z</expire-at><entry><content>content_yxr4gp0208</content></entry></data>

2022-05-16 22:39:13 | target: http://localhost:8088

2022-05-16 22:39:13 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-16 22:39:13 | entity: <data><node>node_c62cm70204</node><expire-at>2022-05-17T05:39:18Z</expire-at><entry><content>content_yxr4gp0208</content></entry></data>

2022-05-16 22:39:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 17 May 2022 05:39:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-16 22:39:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>9d751f6b-e5ec-446a-9716-2e6db3b90575</value></item-id></result>

2022-05-16 22:39:13 | contains: true

2022-05-16 22:39:21 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-16 22:39:21 | [Mutex] waiting for: [user_regular5elay10203@test-domain.com:message:received:content_yxr4gp0208]

2022-05-16 22:39:21 | [Mutex] waiting for: [user_regular5elay10203@test-domain.com:message:received:content_yxr4gp0208]

2022-05-16 22:39:36 | [Mutex] timeout. Not received [user_regular5elay10203@test-domain.com:message:received:content_yxr4gp0208]

2022-05-16 22:39:36 | [Mutex] received everything.

2022-05-16 22:39:36 | [Mutex] isItemNotified: user_regular5elay10203@test-domain.com:message:received:content_yxr4gp0208 :: false

2022-05-16 22:39:36 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_yxr4gp0208 :: true