Generated by TestNG with ReportNG at 22:49 PDT on Thursday 08 September 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.733s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.594s
2022-09-08 23:04:43 |

2022-09-08 23:04:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-09-08 23:04:43 | ------------------------------------

2022-09-08 23:04:43 | [Mutex] isItemNotified: node_2w6bgj0204:exists :: false

2022-09-08 23:04:43 | [Mutex] waiting for: [node_2w6bgj0204:create_node]

2022-09-08 23:04:43 | [Mutex] received everything.

2022-09-08 23:04:43 | [Mutex] isItemNotified: node_2w6bgj0204:create_node:success :: true

2022-09-08 23:04:43 | [Mutex] waiting for: [node_2w6bgj0204:subscribe_node]

2022-09-08 23:04:43 | [Mutex] received everything.

2022-09-08 23:04:43 | [Mutex] isItemNotified: node_2w6bgj0204:subscribe_node:success :: true

2022-09-08 23:04:43 |


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


2022-09-08 23:04:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-08 23:04:43 | command: <data><node>node_2w6bgj0204</node><entry><content>content_l3md5k0205</content></entry></data>

2022-09-08 23:04:43 | target: http://localhost:8088

2022-09-08 23:04:43 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-09-08 23:04:43 | entity: <data><node>node_2w6bgj0204</node><entry><content>content_l3md5k0205</content></entry></data>

2022-09-08 23:04:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 09 Sep 2022 06:04:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-08 23:04:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2f709db6-6ef2-4e98-8dab-812d05785b8f</value></item-id></result>

2022-09-08 23:04:43 | contains: true

2022-09-08 23:04:43 | [Mutex] received everything.

2022-09-08 23:04:43 | [Mutex] isItemNotified: user_regular6jgh5o0203@test-domain.com:message:received:content_l3md5k0205 :: true

2022-09-08 23:04:43 |


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


2022-09-08 23:04:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-08 23:04:43 | command: <data><node>node_2w6bgj0204</node><expire-at>2022-09-09T06:04:38Z</expire-at><entry><content>content_sbeafg0206</content></entry></data>

2022-09-08 23:04:43 | target: http://localhost:8088

2022-09-08 23:04:43 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-08 23:04:43 | entity: <data><node>node_2w6bgj0204</node><expire-at>2022-09-09T06:04:38Z</expire-at><entry><content>content_sbeafg0206</content></entry></data>

2022-09-08 23:04:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 09 Sep 2022 06:04:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-08 23:04:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>febde0f4-16d8-4974-bfdd-be2f7d42160b</value></item-id></result>

2022-09-08 23:04:43 | contains: true

2022-09-08 23:04:43 | [Mutex] waiting for: [user_regular6jgh5o0203@test-domain.com:message:received:content_sbeafg0206]

2022-09-08 23:04:58 | [Mutex] timeout. Not received [user_regular6jgh5o0203@test-domain.com:message:received:content_sbeafg0206]

2022-09-08 23:04:58 | [Mutex] isItemNotified: user_regular6jgh5o0203@test-domain.com:message:received:content_sbeafg0206 :: false

2022-09-08 23:04:58 |


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


2022-09-08 23:04:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-08 23:04:58 | command: <data><node>node_2w6bgj0204</node><entry><content>content_ih1mya0207</content></entry></data>

2022-09-08 23:04:58 | target: http://localhost:8088

2022-09-08 23:04:58 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-09-08 23:04:58 | entity: <data><node>node_2w6bgj0204</node><entry><content>content_ih1mya0207</content></entry></data>

2022-09-08 23:04:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 09 Sep 2022 06:04:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-08 23:04:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>dbbe0443-ef96-46e3-bed4-819995d62a11</value></item-id></result>

2022-09-08 23:04:58 | contains: true

2022-09-08 23:05:03 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-09-08 23:05:03 | [Mutex] waiting for: [user_regular6jgh5o0203@test-domain.com:message:received:content_ih1mya0207]

2022-09-08 23:05:03 | [Mutex] received everything.

2022-09-08 23:05:03 | [Mutex] isItemNotified: user_regular6jgh5o0203@test-domain.com:message:received:content_ih1mya0207 :: true

2022-09-08 23:05:03 |


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


2022-09-08 23:05:03 | [Mutex] received everything.

2022-09-08 23:05:03 | [Mutex] isItemNotified: node_2w6bgj0204:subscribe_node:success :: true

2022-09-08 23:05:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-08 23:05:03 | command: <data><node>node_2w6bgj0204</node><expire-at>2022-09-09T06:05:08Z</expire-at><entry><content>content_etamvk0208</content></entry></data>

2022-09-08 23:05:03 | target: http://localhost:8088

2022-09-08 23:05:03 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-08 23:05:03 | entity: <data><node>node_2w6bgj0204</node><expire-at>2022-09-09T06:05:08Z</expire-at><entry><content>content_etamvk0208</content></entry></data>

2022-09-08 23:05:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 09 Sep 2022 06:05:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-08 23:05:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b9fb0d5c-b22b-4637-b8c6-20a7213fb7df</value></item-id></result>

2022-09-08 23:05:03 | contains: true

2022-09-08 23:05:11 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-09-08 23:05:12 | [Mutex] waiting for: [user_regular6jgh5o0203@test-domain.com:message:received:content_etamvk0208]

2022-09-08 23:05:27 | [Mutex] timeout. Not received [user_regular6jgh5o0203@test-domain.com:message:received:content_etamvk0208]

2022-09-08 23:05:27 | [Mutex] received everything.

2022-09-08 23:05:27 | [Mutex] isItemNotified: user_regular6jgh5o0203@test-domain.com:message:received:content_etamvk0208 :: false

2022-09-08 23:05:27 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_etamvk0208 :: true