Generated by TestNG with ReportNG at 04:41 PST on Friday 16 December 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.696s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.533s
2022-12-16 04:58:57 |

2022-12-16 04:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-16 04:58:57 | ------------------------------------

2022-12-16 04:58:57 | [Mutex] isItemNotified: node_2mmbzx0204:exists :: false

2022-12-16 04:58:57 | [Mutex] waiting for: [node_2mmbzx0204:create_node]

2022-12-16 04:58:57 | [Mutex] received everything.

2022-12-16 04:58:57 | [Mutex] isItemNotified: node_2mmbzx0204:create_node:success :: true

2022-12-16 04:58:57 | [Mutex] waiting for: [node_2mmbzx0204:subscribe_node]

2022-12-16 04:58:57 | [Mutex] waiting for: [node_2mmbzx0204:subscribe_node]

2022-12-16 04:58:57 | [Mutex] received everything.

2022-12-16 04:58:57 | [Mutex] isItemNotified: node_2mmbzx0204:subscribe_node:success :: true

2022-12-16 04:58:57 |


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


2022-12-16 04:58:57 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 04:58:57 | command: <data><node>node_2mmbzx0204</node><entry><content>content_g6dzus0205</content></entry></data>

2022-12-16 04:58:57 | target: http://localhost:8088

2022-12-16 04:58:57 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-16 04:58:57 | entity: <data><node>node_2mmbzx0204</node><entry><content>content_g6dzus0205</content></entry></data>

2022-12-16 04:58:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 16 Dec 2022 12:58:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 04:58:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a17690ae-c036-4727-9ef2-fc73274ed285</value></item-id></result>

2022-12-16 04:58:57 | contains: true

2022-12-16 04:58:57 | [Mutex] waiting for: [user_regular5ndjw90203@test-domain.com:message:received:content_g6dzus0205]

2022-12-16 04:58:57 | [Mutex] received everything.

2022-12-16 04:58:57 | [Mutex] isItemNotified: user_regular5ndjw90203@test-domain.com:message:received:content_g6dzus0205 :: true

2022-12-16 04:58:57 |


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


2022-12-16 04:58:57 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 04:58:57 | command: <data><node>node_2mmbzx0204</node><expire-at>2022-12-16T12:58:52Z</expire-at><entry><content>content_2utdxh0206</content></entry></data>

2022-12-16 04:58:57 | target: http://localhost:8088

2022-12-16 04:58:57 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-16 04:58:57 | entity: <data><node>node_2mmbzx0204</node><expire-at>2022-12-16T12:58:52Z</expire-at><entry><content>content_2utdxh0206</content></entry></data>

2022-12-16 04:58:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 16 Dec 2022 12:58:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 04:58:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f602d9a9-9125-432e-8d5e-52adc829bf7b</value></item-id></result>

2022-12-16 04:58:57 | contains: true

2022-12-16 04:58:57 | [Mutex] waiting for: [user_regular5ndjw90203@test-domain.com:message:received:content_2utdxh0206]

2022-12-16 04:59:12 | [Mutex] timeout. Not received [user_regular5ndjw90203@test-domain.com:message:received:content_2utdxh0206]

2022-12-16 04:59:12 | [Mutex] isItemNotified: user_regular5ndjw90203@test-domain.com:message:received:content_2utdxh0206 :: false

2022-12-16 04:59:12 |


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


2022-12-16 04:59:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 04:59:12 | command: <data><node>node_2mmbzx0204</node><entry><content>content_gfh2jv0207</content></entry></data>

2022-12-16 04:59:12 | target: http://localhost:8088

2022-12-16 04:59:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-16 04:59:12 | entity: <data><node>node_2mmbzx0204</node><entry><content>content_gfh2jv0207</content></entry></data>

2022-12-16 04:59:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 16 Dec 2022 12:59:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 04:59:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>bb57902b-c5a2-4061-acdf-3a42049b0fb3</value></item-id></result>

2022-12-16 04:59:12 | contains: true

2022-12-16 04:59:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-16 04:59:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-12-16 04:59:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-16 04:59:17 | [Mutex] waiting for: [user_regular5ndjw90203@test-domain.com:message:received:content_gfh2jv0207]

2022-12-16 04:59:17 | [Mutex] waiting for: [user_regular5ndjw90203@test-domain.com:message:received:content_gfh2jv0207]

2022-12-16 04:59:17 | [Mutex] received everything.

2022-12-16 04:59:17 | [Mutex] isItemNotified: user_regular5ndjw90203@test-domain.com:message:received:content_gfh2jv0207 :: true

2022-12-16 04:59:17 |


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


2022-12-16 04:59:17 | [Mutex] received everything.

2022-12-16 04:59:17 | [Mutex] isItemNotified: node_2mmbzx0204:subscribe_node:success :: true

2022-12-16 04:59:17 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-16 04:59:17 | command: <data><node>node_2mmbzx0204</node><expire-at>2022-12-16T12:59:22Z</expire-at><entry><content>content_e3juzi0208</content></entry></data>

2022-12-16 04:59:17 | target: http://localhost:8088

2022-12-16 04:59:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-16 04:59:17 | entity: <data><node>node_2mmbzx0204</node><expire-at>2022-12-16T12:59:22Z</expire-at><entry><content>content_e3juzi0208</content></entry></data>

2022-12-16 04:59:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 16 Dec 2022 12:59:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-16 04:59:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f081e08b-52a9-41b9-9a01-f45d6f1069b2</value></item-id></result>

2022-12-16 04:59:17 | contains: true

2022-12-16 04:59:25 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-16 04:59:25 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-12-16 04:59:25 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-16 04:59:25 | [Mutex] waiting for: [user_regular5ndjw90203@test-domain.com:message:received:content_e3juzi0208]

2022-12-16 04:59:40 | [Mutex] timeout. Not received [user_regular5ndjw90203@test-domain.com:message:received:content_e3juzi0208]

2022-12-16 04:59:40 | [Mutex] received everything.

2022-12-16 04:59:40 | [Mutex] isItemNotified: user_regular5ndjw90203@test-domain.com:message:received:content_e3juzi0208 :: false

2022-12-16 04:59:40 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_e3juzi0208 :: true