Generated by TestNG with ReportNG at 22:25 PDT on Friday 10 June 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 : 44.891s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.700s
2022-06-10 22:41:08 |

2022-06-10 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-06-10 22:41:08 | ------------------------------------

2022-06-10 22:41:08 | [Mutex] isItemNotified: node_2wgyra0204:exists :: false

2022-06-10 22:41:08 | [Mutex] waiting for: [node_2wgyra0204:create_node]

2022-06-10 22:41:08 | [Mutex] received everything.

2022-06-10 22:41:08 | [Mutex] isItemNotified: node_2wgyra0204:create_node:success :: true

2022-06-10 22:41:08 | [Mutex] waiting for: [node_2wgyra0204:subscribe_node]

2022-06-10 22:41:08 | [Mutex] waiting for: [node_2wgyra0204:subscribe_node]

2022-06-10 22:41:08 | [Mutex] received everything.

2022-06-10 22:41:08 | [Mutex] isItemNotified: node_2wgyra0204:subscribe_node:success :: true

2022-06-10 22:41:08 |


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


2022-06-10 22:41:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-10 22:41:08 | command: <data><node>node_2wgyra0204</node><entry><content>content_x8t51n0205</content></entry></data>

2022-06-10 22:41:08 | target: http://localhost:8088

2022-06-10 22:41:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-10 22:41:08 | entity: <data><node>node_2wgyra0204</node><entry><content>content_x8t51n0205</content></entry></data>

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

2022-06-10 22:41:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ceb8e2ef-5bfc-437e-ae9d-ed45197d6bea</value></item-id></result>

2022-06-10 22:41:09 | contains: true

2022-06-10 22:41:09 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_x8t51n0205]

2022-06-10 22:41:09 | [Mutex] received everything.

2022-06-10 22:41:09 | [Mutex] isItemNotified: user_regulary2m9lv0203@test-domain.com:message:received:content_x8t51n0205 :: true

2022-06-10 22:41:09 |


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


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

2022-06-10 22:41:09 | command: <data><node>node_2wgyra0204</node><expire-at>2022-06-11T05:41:04Z</expire-at><entry><content>content_jz8ucz0206</content></entry></data>

2022-06-10 22:41:09 | target: http://localhost:8088

2022-06-10 22:41:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-10 22:41:09 | entity: <data><node>node_2wgyra0204</node><expire-at>2022-06-11T05:41:04Z</expire-at><entry><content>content_jz8ucz0206</content></entry></data>

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

2022-06-10 22:41:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2e79ed2e-5699-4061-a0e0-99602b3f5c06</value></item-id></result>

2022-06-10 22:41:09 | contains: true

2022-06-10 22:41:09 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_jz8ucz0206]

2022-06-10 22:41:24 | [Mutex] timeout. Not received [user_regulary2m9lv0203@test-domain.com:message:received:content_jz8ucz0206]

2022-06-10 22:41:24 | [Mutex] isItemNotified: user_regulary2m9lv0203@test-domain.com:message:received:content_jz8ucz0206 :: false

2022-06-10 22:41:24 |


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


2022-06-10 22:41:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-10 22:41:24 | command: <data><node>node_2wgyra0204</node><entry><content>content_ebye6a0207</content></entry></data>

2022-06-10 22:41:24 | target: http://localhost:8088

2022-06-10 22:41:24 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-10 22:41:24 | entity: <data><node>node_2wgyra0204</node><entry><content>content_ebye6a0207</content></entry></data>

2022-06-10 22:41:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 11 Jun 2022 05:41:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-10 22:41:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b86a73c2-2c4e-4626-b134-52c8e5f2877e</value></item-id></result>

2022-06-10 22:41:24 | contains: true

2022-06-10 22:41:29 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-10 22:41:29 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_ebye6a0207]

2022-06-10 22:41:29 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_ebye6a0207]

2022-06-10 22:41:29 | [Mutex] received everything.

2022-06-10 22:41:29 | [Mutex] isItemNotified: user_regulary2m9lv0203@test-domain.com:message:received:content_ebye6a0207 :: true

2022-06-10 22:41:29 |


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


2022-06-10 22:41:29 | [Mutex] received everything.

2022-06-10 22:41:29 | [Mutex] isItemNotified: node_2wgyra0204:subscribe_node:success :: true

2022-06-10 22:41:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-10 22:41:29 | command: <data><node>node_2wgyra0204</node><expire-at>2022-06-11T05:41:34Z</expire-at><entry><content>content_mgem6l0208</content></entry></data>

2022-06-10 22:41:29 | target: http://localhost:8088

2022-06-10 22:41:29 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-10 22:41:29 | entity: <data><node>node_2wgyra0204</node><expire-at>2022-06-11T05:41:34Z</expire-at><entry><content>content_mgem6l0208</content></entry></data>

2022-06-10 22:41:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 11 Jun 2022 05:41:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-10 22:41:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c1417625-9e7b-4507-8e6f-1b3c57b8ad02</value></item-id></result>

2022-06-10 22:41:29 | contains: true

2022-06-10 22:41:37 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-10 22:41:37 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_mgem6l0208]

2022-06-10 22:41:37 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_mgem6l0208]

2022-06-10 22:41:37 | [Mutex] waiting for: [user_regulary2m9lv0203@test-domain.com:message:received:content_mgem6l0208]

2022-06-10 22:41:52 | [Mutex] timeout. Not received [user_regulary2m9lv0203@test-domain.com:message:received:content_mgem6l0208]

2022-06-10 22:41:52 | [Mutex] received everything.

2022-06-10 22:41:52 | [Mutex] isItemNotified: user_regulary2m9lv0203@test-domain.com:message:received:content_mgem6l0208 :: false

2022-06-10 22:41:52 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_mgem6l0208 :: true