Generated by TestNG with ReportNG at 22:33 PDT on Thursday 02 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.610s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.645s
2022-06-02 22:47:38 |

2022-06-02 22:47:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-06-02 22:47:38 | ------------------------------------

2022-06-02 22:47:38 | [Mutex] isItemNotified: node_811yte0204:exists :: false

2022-06-02 22:47:38 | [Mutex] waiting for: [node_811yte0204:create_node]

2022-06-02 22:47:38 | [Mutex] received everything.

2022-06-02 22:47:38 | [Mutex] isItemNotified: node_811yte0204:create_node:success :: true

2022-06-02 22:47:38 | [Mutex] waiting for: [node_811yte0204:subscribe_node]

2022-06-02 22:47:39 | [Mutex] waiting for: [node_811yte0204:subscribe_node]

2022-06-02 22:47:39 | [Mutex] received everything.

2022-06-02 22:47:39 | [Mutex] isItemNotified: node_811yte0204:subscribe_node:success :: true

2022-06-02 22:47:39 |


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


2022-06-02 22:47:39 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-02 22:47:39 | command: <data><node>node_811yte0204</node><entry><content>content_rz50fl0205</content></entry></data>

2022-06-02 22:47:39 | target: http://localhost:8088

2022-06-02 22:47:39 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-02 22:47:39 | entity: <data><node>node_811yte0204</node><entry><content>content_rz50fl0205</content></entry></data>

2022-06-02 22:47:39 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jun 2022 05:47:39 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-02 22:47:39 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d2586a1b-bf17-4537-ad1c-7d9d55f432ba</value></item-id></result>

2022-06-02 22:47:39 | contains: true

2022-06-02 22:47:39 | [Mutex] received everything.

2022-06-02 22:47:39 | [Mutex] isItemNotified: user_regulary8uujt0203@test-domain.com:message:received:content_rz50fl0205 :: true

2022-06-02 22:47:39 |


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


2022-06-02 22:47:39 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-02 22:47:39 | command: <data><node>node_811yte0204</node><expire-at>2022-06-03T05:47:34Z</expire-at><entry><content>content_981a880206</content></entry></data>

2022-06-02 22:47:39 | target: http://localhost:8088

2022-06-02 22:47:39 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-02 22:47:39 | entity: <data><node>node_811yte0204</node><expire-at>2022-06-03T05:47:34Z</expire-at><entry><content>content_981a880206</content></entry></data>

2022-06-02 22:47:39 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jun 2022 05:47:39 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-02 22:47:39 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f4916b9d-5d35-4dcb-b127-6c781873b6f7</value></item-id></result>

2022-06-02 22:47:39 | contains: true

2022-06-02 22:47:39 | [Mutex] waiting for: [user_regulary8uujt0203@test-domain.com:message:received:content_981a880206]

2022-06-02 22:47:54 | [Mutex] timeout. Not received [user_regulary8uujt0203@test-domain.com:message:received:content_981a880206]

2022-06-02 22:47:54 | [Mutex] isItemNotified: user_regulary8uujt0203@test-domain.com:message:received:content_981a880206 :: false

2022-06-02 22:47:54 |


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


2022-06-02 22:47:54 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-02 22:47:54 | command: <data><node>node_811yte0204</node><entry><content>content_8opr0a0207</content></entry></data>

2022-06-02 22:47:54 | target: http://localhost:8088

2022-06-02 22:47:54 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-02 22:47:54 | entity: <data><node>node_811yte0204</node><entry><content>content_8opr0a0207</content></entry></data>

2022-06-02 22:47:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jun 2022 05:47:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-02 22:47:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c251ea88-f0de-4efa-9da3-42bd0ea86902</value></item-id></result>

2022-06-02 22:47:54 | contains: true

2022-06-02 22:47:59 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-02 22:47:59 | [Mutex] waiting for: [user_regulary8uujt0203@test-domain.com:message:received:content_8opr0a0207]

2022-06-02 22:47:59 | [Mutex] received everything.

2022-06-02 22:47:59 | [Mutex] isItemNotified: user_regulary8uujt0203@test-domain.com:message:received:content_8opr0a0207 :: true

2022-06-02 22:47:59 |


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


2022-06-02 22:47:59 | [Mutex] received everything.

2022-06-02 22:47:59 | [Mutex] isItemNotified: node_811yte0204:subscribe_node:success :: true

2022-06-02 22:47:59 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-02 22:47:59 | command: <data><node>node_811yte0204</node><expire-at>2022-06-03T05:48:04Z</expire-at><entry><content>content_d8298a0208</content></entry></data>

2022-06-02 22:47:59 | target: http://localhost:8088

2022-06-02 22:47:59 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-02 22:47:59 | entity: <data><node>node_811yte0204</node><expire-at>2022-06-03T05:48:04Z</expire-at><entry><content>content_d8298a0208</content></entry></data>

2022-06-02 22:47:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jun 2022 05:47:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-02 22:47:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>57752438-04a9-4750-aa1e-dddaf64aa819</value></item-id></result>

2022-06-02 22:47:59 | contains: true

2022-06-02 22:48:07 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-02 22:48:07 | [Mutex] waiting for: [user_regulary8uujt0203@test-domain.com:message:received:content_d8298a0208]

2022-06-02 22:48:07 | [Mutex] waiting for: [user_regulary8uujt0203@test-domain.com:message:received:content_d8298a0208]

2022-06-02 22:48:22 | [Mutex] timeout. Not received [user_regulary8uujt0203@test-domain.com:message:received:content_d8298a0208]

2022-06-02 22:48:22 | [Mutex] received everything.

2022-06-02 22:48:22 | [Mutex] isItemNotified: user_regulary8uujt0203@test-domain.com:message:received:content_d8298a0208 :: false

2022-06-02 22:48:22 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_d8298a0208 :: true