Generated by TestNG with ReportNG at 22:52 PDT on Monday 29 August 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.760s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.597s
2022-08-29 23:06:28 |

2022-08-29 23:06:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-08-29 23:06:28 | ------------------------------------

2022-08-29 23:06:28 | [Mutex] isItemNotified: node_rwq1lb0204:exists :: false

2022-08-29 23:06:28 | [Mutex] waiting for: [node_rwq1lb0204:create_node]

2022-08-29 23:06:28 | [Mutex] received everything.

2022-08-29 23:06:28 | [Mutex] isItemNotified: node_rwq1lb0204:create_node:success :: true

2022-08-29 23:06:28 | [Mutex] waiting for: [node_rwq1lb0204:subscribe_node]

2022-08-29 23:06:28 | [Mutex] waiting for: [node_rwq1lb0204:subscribe_node]

2022-08-29 23:06:28 | [Mutex] received everything.

2022-08-29 23:06:28 | [Mutex] isItemNotified: node_rwq1lb0204:subscribe_node:success :: true

2022-08-29 23:06:28 |


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


2022-08-29 23:06:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-29 23:06:28 | command: <data><node>node_rwq1lb0204</node><entry><content>content_cywqzf0205</content></entry></data>

2022-08-29 23:06:28 | target: http://localhost:8088

2022-08-29 23:06:28 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-08-29 23:06:28 | entity: <data><node>node_rwq1lb0204</node><entry><content>content_cywqzf0205</content></entry></data>

2022-08-29 23:06:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Aug 2022 06:06:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-29 23:06:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5d023ddb-d302-4d78-8122-c9569b4fad4b</value></item-id></result>

2022-08-29 23:06:28 | contains: true

2022-08-29 23:06:28 | [Mutex] received everything.

2022-08-29 23:06:28 | [Mutex] isItemNotified: user_regularhepfmp0203@test-domain.com:message:received:content_cywqzf0205 :: true

2022-08-29 23:06:28 |


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


2022-08-29 23:06:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-29 23:06:28 | command: <data><node>node_rwq1lb0204</node><expire-at>2022-08-30T06:06:23Z</expire-at><entry><content>content_9bkaa30206</content></entry></data>

2022-08-29 23:06:28 | target: http://localhost:8088

2022-08-29 23:06:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-08-29 23:06:28 | entity: <data><node>node_rwq1lb0204</node><expire-at>2022-08-30T06:06:23Z</expire-at><entry><content>content_9bkaa30206</content></entry></data>

2022-08-29 23:06:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Aug 2022 06:06:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-29 23:06:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c7654d18-a386-4932-b689-08134cf0b098</value></item-id></result>

2022-08-29 23:06:28 | contains: true

2022-08-29 23:06:28 | [Mutex] waiting for: [user_regularhepfmp0203@test-domain.com:message:received:content_9bkaa30206]

2022-08-29 23:06:43 | [Mutex] timeout. Not received [user_regularhepfmp0203@test-domain.com:message:received:content_9bkaa30206]

2022-08-29 23:06:43 | [Mutex] isItemNotified: user_regularhepfmp0203@test-domain.com:message:received:content_9bkaa30206 :: false

2022-08-29 23:06:43 |


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


2022-08-29 23:06:44 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-29 23:06:44 | command: <data><node>node_rwq1lb0204</node><entry><content>content_kcn01x0207</content></entry></data>

2022-08-29 23:06:44 | target: http://localhost:8088

2022-08-29 23:06:44 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-08-29 23:06:44 | entity: <data><node>node_rwq1lb0204</node><entry><content>content_kcn01x0207</content></entry></data>

2022-08-29 23:06:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Aug 2022 06:06:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-29 23:06:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>459f1d46-945f-43d3-b9ad-6dc0798c0690</value></item-id></result>

2022-08-29 23:06:44 | contains: true

2022-08-29 23:06:49 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-08-29 23:06:49 | [Mutex] waiting for: [user_regularhepfmp0203@test-domain.com:message:received:content_kcn01x0207]

2022-08-29 23:06:49 | [Mutex] received everything.

2022-08-29 23:06:49 | [Mutex] isItemNotified: user_regularhepfmp0203@test-domain.com:message:received:content_kcn01x0207 :: true

2022-08-29 23:06:49 |


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


2022-08-29 23:06:49 | [Mutex] received everything.

2022-08-29 23:06:49 | [Mutex] isItemNotified: node_rwq1lb0204:subscribe_node:success :: true

2022-08-29 23:06:49 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-29 23:06:49 | command: <data><node>node_rwq1lb0204</node><expire-at>2022-08-30T06:06:54Z</expire-at><entry><content>content_jdaf5m0208</content></entry></data>

2022-08-29 23:06:49 | target: http://localhost:8088

2022-08-29 23:06:49 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-08-29 23:06:49 | entity: <data><node>node_rwq1lb0204</node><expire-at>2022-08-30T06:06:54Z</expire-at><entry><content>content_jdaf5m0208</content></entry></data>

2022-08-29 23:06:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Aug 2022 06:06:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-29 23:06:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e36c9df0-a3ae-4d85-910d-ebc81fe192de</value></item-id></result>

2022-08-29 23:06:49 | contains: true

2022-08-29 23:06:57 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-08-29 23:06:57 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-08-29 23:06:57 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-08-29 23:06:57 | [Mutex] waiting for: [user_regularhepfmp0203@test-domain.com:message:received:content_jdaf5m0208]

2022-08-29 23:06:57 | [Mutex] waiting for: [user_regularhepfmp0203@test-domain.com:message:received:content_jdaf5m0208]

2022-08-29 23:07:12 | [Mutex] timeout. Not received [user_regularhepfmp0203@test-domain.com:message:received:content_jdaf5m0208]

2022-08-29 23:07:12 | [Mutex] received everything.

2022-08-29 23:07:12 | [Mutex] isItemNotified: user_regularhepfmp0203@test-domain.com:message:received:content_jdaf5m0208 :: false

2022-08-29 23:07:12 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_jdaf5m0208 :: true