Generated by TestNG with ReportNG at 22:23 PDT on Monday 09 May 2022
root@61c39d2ed70d / 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.079s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.654s
2022-05-09 22:37:26 |

2022-05-09 22:37:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-09 22:37:26 | ------------------------------------

2022-05-09 22:37:26 | [Mutex] isItemNotified: node_z8o95l0204:exists :: false

2022-05-09 22:37:26 | [Mutex] waiting for: [node_z8o95l0204:create_node]

2022-05-09 22:37:26 | [Mutex] waiting for: [node_z8o95l0204:create_node]

2022-05-09 22:37:26 | [Mutex] received everything.

2022-05-09 22:37:26 | [Mutex] isItemNotified: node_z8o95l0204:create_node:success :: true

2022-05-09 22:37:26 | [Mutex] waiting for: [node_z8o95l0204:subscribe_node]

2022-05-09 22:37:26 | [Mutex] waiting for: [node_z8o95l0204:subscribe_node]

2022-05-09 22:37:26 | [Mutex] received everything.

2022-05-09 22:37:26 | [Mutex] isItemNotified: node_z8o95l0204:subscribe_node:success :: true

2022-05-09 22:37:26 |


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


2022-05-09 22:37:26 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-09 22:37:26 | command: <data><node>node_z8o95l0204</node><entry><content>content_rxzu740205</content></entry></data>

2022-05-09 22:37:26 | target: http://localhost:8088

2022-05-09 22:37:26 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-09 22:37:26 | entity: <data><node>node_z8o95l0204</node><entry><content>content_rxzu740205</content></entry></data>

2022-05-09 22:37:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 10 May 2022 05:37:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-09 22:37:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a3bc8139-8c37-4d40-ac28-46912460a805</value></item-id></result>

2022-05-09 22:37:26 | contains: true

2022-05-09 22:37:26 | [Mutex] received everything.

2022-05-09 22:37:26 | [Mutex] isItemNotified: user_regularf9eihu0203@test-domain.com:message:received:content_rxzu740205 :: true

2022-05-09 22:37:26 |


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


2022-05-09 22:37:26 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-09 22:37:26 | command: <data><node>node_z8o95l0204</node><expire-at>2022-05-10T05:37:21Z</expire-at><entry><content>content_ghz1k40206</content></entry></data>

2022-05-09 22:37:26 | target: http://localhost:8088

2022-05-09 22:37:26 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-09 22:37:26 | entity: <data><node>node_z8o95l0204</node><expire-at>2022-05-10T05:37:21Z</expire-at><entry><content>content_ghz1k40206</content></entry></data>

2022-05-09 22:37:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 10 May 2022 05:37:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-09 22:37:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d6320de7-b86a-48ae-b090-ec3cf2be23a7</value></item-id></result>

2022-05-09 22:37:26 | contains: true

2022-05-09 22:37:26 | [Mutex] waiting for: [user_regularf9eihu0203@test-domain.com:message:received:content_ghz1k40206]

2022-05-09 22:37:41 | [Mutex] timeout. Not received [user_regularf9eihu0203@test-domain.com:message:received:content_ghz1k40206]

2022-05-09 22:37:41 | [Mutex] isItemNotified: user_regularf9eihu0203@test-domain.com:message:received:content_ghz1k40206 :: false

2022-05-09 22:37:41 |


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


2022-05-09 22:37:41 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-09 22:37:41 | command: <data><node>node_z8o95l0204</node><entry><content>content_xhifd00207</content></entry></data>

2022-05-09 22:37:41 | target: http://localhost:8088

2022-05-09 22:37:41 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-09 22:37:41 | entity: <data><node>node_z8o95l0204</node><entry><content>content_xhifd00207</content></entry></data>

2022-05-09 22:37:41 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 10 May 2022 05:37:41 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-09 22:37:41 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>cdf7f987-cae6-4a3d-bdd8-12f82eeba09f</value></item-id></result>

2022-05-09 22:37:41 | contains: true

2022-05-09 22:37:46 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-09 22:37:46 | [Mutex] waiting for: [user_regularf9eihu0203@test-domain.com:message:received:content_xhifd00207]

2022-05-09 22:37:46 | [Mutex] waiting for: [user_regularf9eihu0203@test-domain.com:message:received:content_xhifd00207]

2022-05-09 22:37:46 | [Mutex] received everything.

2022-05-09 22:37:46 | [Mutex] isItemNotified: user_regularf9eihu0203@test-domain.com:message:received:content_xhifd00207 :: true

2022-05-09 22:37:46 |


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


2022-05-09 22:37:46 | [Mutex] received everything.

2022-05-09 22:37:46 | [Mutex] isItemNotified: node_z8o95l0204:subscribe_node:success :: true

2022-05-09 22:37:46 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-09 22:37:46 | command: <data><node>node_z8o95l0204</node><expire-at>2022-05-10T05:37:51Z</expire-at><entry><content>content_5hurz30208</content></entry></data>

2022-05-09 22:37:46 | target: http://localhost:8088

2022-05-09 22:37:46 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-09 22:37:46 | entity: <data><node>node_z8o95l0204</node><expire-at>2022-05-10T05:37:51Z</expire-at><entry><content>content_5hurz30208</content></entry></data>

2022-05-09 22:37:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 10 May 2022 05:37:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-09 22:37:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>9cb3b5ac-2f0e-4f57-a365-7b7e9c25498e</value></item-id></result>

2022-05-09 22:37:46 | contains: true

2022-05-09 22:37:54 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-09 22:37:54 | [Mutex] waiting for: [user_regularf9eihu0203@test-domain.com:message:received:content_5hurz30208]

2022-05-09 22:38:09 | [Mutex] timeout. Not received [user_regularf9eihu0203@test-domain.com:message:received:content_5hurz30208]

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

2022-05-09 22:38:09 | [Mutex] isItemNotified: user_regularf9eihu0203@test-domain.com:message:received:content_5hurz30208 :: false

2022-05-09 22:38:09 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_5hurz30208 :: true