Generated by TestNG with ReportNG at 21:17 PST on Sunday 13 November 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.841s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.543s
2022-11-13 21:33:12 |

2022-11-13 21:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-11-13 21:33:12 | ------------------------------------

2022-11-13 21:33:12 | [Mutex] isItemNotified: node_bbgqpq0204:exists :: false

2022-11-13 21:33:12 | [Mutex] waiting for: [node_bbgqpq0204:create_node]

2022-11-13 21:33:12 | [Mutex] received everything.

2022-11-13 21:33:12 | [Mutex] isItemNotified: node_bbgqpq0204:create_node:success :: true

2022-11-13 21:33:12 | [Mutex] waiting for: [node_bbgqpq0204:subscribe_node]

2022-11-13 21:33:12 | [Mutex] waiting for: [node_bbgqpq0204:subscribe_node]

2022-11-13 21:33:12 | [Mutex] received everything.

2022-11-13 21:33:12 | [Mutex] isItemNotified: node_bbgqpq0204:subscribe_node:success :: true

2022-11-13 21:33:12 |


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


2022-11-13 21:33:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-13 21:33:12 | command: <data><node>node_bbgqpq0204</node><entry><content>content_rp8erw0205</content></entry></data>

2022-11-13 21:33:12 | target: http://localhost:8088

2022-11-13 21:33:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-11-13 21:33:12 | entity: <data><node>node_bbgqpq0204</node><entry><content>content_rp8erw0205</content></entry></data>

2022-11-13 21:33:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Nov 2022 05:33:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-13 21:33:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3819835d-6f4b-407c-9352-9586cba535db</value></item-id></result>

2022-11-13 21:33:12 | contains: true

2022-11-13 21:33:12 | [Mutex] received everything.

2022-11-13 21:33:12 | [Mutex] isItemNotified: user_regular9o1byp0203@test-domain.com:message:received:content_rp8erw0205 :: true

2022-11-13 21:33:12 |


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


2022-11-13 21:33:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-13 21:33:12 | command: <data><node>node_bbgqpq0204</node><expire-at>2022-11-14T05:33:07Z</expire-at><entry><content>content_yysg1t0206</content></entry></data>

2022-11-13 21:33:12 | target: http://localhost:8088

2022-11-13 21:33:12 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-11-13 21:33:12 | entity: <data><node>node_bbgqpq0204</node><expire-at>2022-11-14T05:33:07Z</expire-at><entry><content>content_yysg1t0206</content></entry></data>

2022-11-13 21:33:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Nov 2022 05:33:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-13 21:33:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>dbbc4030-8f8f-49e3-92cf-ab4c9eea5d03</value></item-id></result>

2022-11-13 21:33:12 | contains: true

2022-11-13 21:33:12 | [Mutex] waiting for: [user_regular9o1byp0203@test-domain.com:message:received:content_yysg1t0206]

2022-11-13 21:33:27 | [Mutex] timeout. Not received [user_regular9o1byp0203@test-domain.com:message:received:content_yysg1t0206]

2022-11-13 21:33:27 | [Mutex] isItemNotified: user_regular9o1byp0203@test-domain.com:message:received:content_yysg1t0206 :: false

2022-11-13 21:33:27 |


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


2022-11-13 21:33:27 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-13 21:33:27 | command: <data><node>node_bbgqpq0204</node><entry><content>content_l7az5h0207</content></entry></data>

2022-11-13 21:33:27 | target: http://localhost:8088

2022-11-13 21:33:27 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-11-13 21:33:27 | entity: <data><node>node_bbgqpq0204</node><entry><content>content_l7az5h0207</content></entry></data>

2022-11-13 21:33:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Nov 2022 05:33:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-13 21:33:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6f45ee0c-9445-4d37-a6d2-4517c2c3ad68</value></item-id></result>

2022-11-13 21:33:27 | contains: true

2022-11-13 21:33:32 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-11-13 21:33:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-11-13 21:33:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-11-13 21:33:32 | [Mutex] waiting for: [user_regular9o1byp0203@test-domain.com:message:received:content_l7az5h0207]

2022-11-13 21:33:32 | [Mutex] received everything.

2022-11-13 21:33:32 | [Mutex] isItemNotified: user_regular9o1byp0203@test-domain.com:message:received:content_l7az5h0207 :: true

2022-11-13 21:33:32 |


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


2022-11-13 21:33:32 | [Mutex] received everything.

2022-11-13 21:33:32 | [Mutex] isItemNotified: node_bbgqpq0204:subscribe_node:success :: true

2022-11-13 21:33:32 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-11-13 21:33:32 | command: <data><node>node_bbgqpq0204</node><expire-at>2022-11-14T05:33:37Z</expire-at><entry><content>content_mbez3x0208</content></entry></data>

2022-11-13 21:33:32 | target: http://localhost:8088

2022-11-13 21:33:32 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-11-13 21:33:32 | entity: <data><node>node_bbgqpq0204</node><expire-at>2022-11-14T05:33:37Z</expire-at><entry><content>content_mbez3x0208</content></entry></data>

2022-11-13 21:33:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Nov 2022 05:33:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-11-13 21:33:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3a3c4de1-5d13-47d4-a7d4-18c11b9fca66</value></item-id></result>

2022-11-13 21:33:32 | contains: true

2022-11-13 21:33:40 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-11-13 21:33:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-11-13 21:33:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-11-13 21:33:41 | [Mutex] waiting for: [user_regular9o1byp0203@test-domain.com:message:received:content_mbez3x0208]

2022-11-13 21:33:56 | [Mutex] timeout. Not received [user_regular9o1byp0203@test-domain.com:message:received:content_mbez3x0208]

2022-11-13 21:33:56 | [Mutex] received everything.

2022-11-13 21:33:56 | [Mutex] isItemNotified: user_regular9o1byp0203@test-domain.com:message:received:content_mbez3x0208 :: false

2022-11-13 21:33:56 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_mbez3x0208 :: true