Generated by TestNG with ReportNG at 22:21 PDT on Tuesday 27 September 2022
root@ed1b7dd8a1b3 / 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.930s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.615s
2022-09-27 22:36:58 |

2022-09-27 22:36:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-09-27 22:36:58 | ------------------------------------

2022-09-27 22:36:58 | [Mutex] isItemNotified: node_bpe6380204:exists :: false

2022-09-27 22:36:58 | [Mutex] waiting for: [node_bpe6380204:create_node]

2022-09-27 22:36:58 | [Mutex] received everything.

2022-09-27 22:36:58 | [Mutex] isItemNotified: node_bpe6380204:create_node:success :: true

2022-09-27 22:36:58 | [Mutex] waiting for: [node_bpe6380204:subscribe_node]

2022-09-27 22:36:58 | [Mutex] waiting for: [node_bpe6380204:subscribe_node]

2022-09-27 22:36:58 | [Mutex] received everything.

2022-09-27 22:36:58 | [Mutex] isItemNotified: node_bpe6380204:subscribe_node:success :: true

2022-09-27 22:36:58 |


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


2022-09-27 22:36:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-27 22:36:58 | command: <data><node>node_bpe6380204</node><entry><content>content_t182b0205</content></entry></data>

2022-09-27 22:36:58 | target: http://localhost:8088

2022-09-27 22:36:58 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2022-09-27 22:36:58 | entity: <data><node>node_bpe6380204</node><entry><content>content_t182b0205</content></entry></data>

2022-09-27 22:36:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Sep 2022 05:36:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-27 22:36:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>0878cfea-2e5d-49bb-b178-69179f6f7404</value></item-id></result>

2022-09-27 22:36:58 | contains: true

2022-09-27 22:36:58 | [Mutex] received everything.

2022-09-27 22:36:58 | [Mutex] isItemNotified: user_regularp0o28o0203@test-domain.com:message:received:content_t182b0205 :: true

2022-09-27 22:36:58 |


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


2022-09-27 22:36:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-27 22:36:58 | command: <data><node>node_bpe6380204</node><expire-at>2022-09-28T05:36:53Z</expire-at><entry><content>content_70twdm0206</content></entry></data>

2022-09-27 22:36:58 | target: http://localhost:8088

2022-09-27 22:36:58 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-27 22:36:58 | entity: <data><node>node_bpe6380204</node><expire-at>2022-09-28T05:36:53Z</expire-at><entry><content>content_70twdm0206</content></entry></data>

2022-09-27 22:36:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Sep 2022 05:36:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-27 22:36:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ee905fb2-8f59-4415-853f-62407f5b551f</value></item-id></result>

2022-09-27 22:36:58 | contains: true

2022-09-27 22:36:58 | [Mutex] waiting for: [user_regularp0o28o0203@test-domain.com:message:received:content_70twdm0206]

2022-09-27 22:37:13 | [Mutex] timeout. Not received [user_regularp0o28o0203@test-domain.com:message:received:content_70twdm0206]

2022-09-27 22:37:13 | [Mutex] isItemNotified: user_regularp0o28o0203@test-domain.com:message:received:content_70twdm0206 :: false

2022-09-27 22:37:13 |


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


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

2022-09-27 22:37:13 | command: <data><node>node_bpe6380204</node><entry><content>content_m8f84v0207</content></entry></data>

2022-09-27 22:37:13 | target: http://localhost:8088

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

2022-09-27 22:37:13 | entity: <data><node>node_bpe6380204</node><entry><content>content_m8f84v0207</content></entry></data>

2022-09-27 22:37:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Sep 2022 05:37:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-27 22:37:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>08b09807-2d41-4ad9-a2fa-d976f0adaa9a</value></item-id></result>

2022-09-27 22:37:13 | contains: true

2022-09-27 22:37:18 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-09-27 22:37:19 | [Mutex] waiting for: [user_regularp0o28o0203@test-domain.com:message:received:content_m8f84v0207]

2022-09-27 22:37:19 | [Mutex] received everything.

2022-09-27 22:37:19 | [Mutex] isItemNotified: user_regularp0o28o0203@test-domain.com:message:received:content_m8f84v0207 :: true

2022-09-27 22:37:19 |


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


2022-09-27 22:37:19 | [Mutex] received everything.

2022-09-27 22:37:19 | [Mutex] isItemNotified: node_bpe6380204:subscribe_node:success :: true

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

2022-09-27 22:37:19 | command: <data><node>node_bpe6380204</node><expire-at>2022-09-28T05:37:24Z</expire-at><entry><content>content_z0bw750208</content></entry></data>

2022-09-27 22:37:19 | target: http://localhost:8088

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

2022-09-27 22:37:19 | entity: <data><node>node_bpe6380204</node><expire-at>2022-09-28T05:37:24Z</expire-at><entry><content>content_z0bw750208</content></entry></data>

2022-09-27 22:37:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 28 Sep 2022 05:37:19 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-27 22:37:19 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7480d877-0c3a-4c4d-ad98-09e616b2f108</value></item-id></result>

2022-09-27 22:37:19 | contains: true

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

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

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

2022-09-27 22:37:27 | [Mutex] waiting for: [user_regularp0o28o0203@test-domain.com:message:received:content_z0bw750208]

2022-09-27 22:37:42 | [Mutex] timeout. Not received [user_regularp0o28o0203@test-domain.com:message:received:content_z0bw750208]

2022-09-27 22:37:42 | [Mutex] received everything.

2022-09-27 22:37:42 | [Mutex] isItemNotified: user_regularp0o28o0203@test-domain.com:message:received:content_z0bw750208 :: false

2022-09-27 22:37:42 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_z0bw750208 :: true