Generated by TestNG with ReportNG at 22:17 PDT on Monday 27 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.625s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.659s
2022-06-27 22:32:15 |

2022-06-27 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-06-27 22:32:15 | ------------------------------------

2022-06-27 22:32:15 | [Mutex] isItemNotified: node_bwj98k0204:exists :: false

2022-06-27 22:32:15 | [Mutex] waiting for: [node_bwj98k0204:create_node]

2022-06-27 22:32:15 | [Mutex] received everything.

2022-06-27 22:32:15 | [Mutex] isItemNotified: node_bwj98k0204:create_node:success :: true

2022-06-27 22:32:15 | [Mutex] waiting for: [node_bwj98k0204:subscribe_node]

2022-06-27 22:32:15 | [Mutex] received everything.

2022-06-27 22:32:15 | [Mutex] isItemNotified: node_bwj98k0204:subscribe_node:success :: true

2022-06-27 22:32:15 |


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


2022-06-27 22:32:15 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-27 22:32:15 | command: <data><node>node_bwj98k0204</node><entry><content>content_4p71kt0205</content></entry></data>

2022-06-27 22:32:15 | target: http://localhost:8088

2022-06-27 22:32:15 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-27 22:32:15 | entity: <data><node>node_bwj98k0204</node><entry><content>content_4p71kt0205</content></entry></data>

2022-06-27 22:32:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Jun 2022 05:32:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-27 22:32:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>eda9ea42-cd8d-4b9a-abc3-442070880dfb</value></item-id></result>

2022-06-27 22:32:15 | contains: true

2022-06-27 22:32:15 | [Mutex] received everything.

2022-06-27 22:32:15 | [Mutex] isItemNotified: user_regular2a4v9i0203@test-domain.com:message:received:content_4p71kt0205 :: true

2022-06-27 22:32:15 |


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


2022-06-27 22:32:15 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-27 22:32:15 | command: <data><node>node_bwj98k0204</node><expire-at>2022-06-28T05:32:10Z</expire-at><entry><content>content_b19p2l0206</content></entry></data>

2022-06-27 22:32:15 | target: http://localhost:8088

2022-06-27 22:32:15 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-27 22:32:15 | entity: <data><node>node_bwj98k0204</node><expire-at>2022-06-28T05:32:10Z</expire-at><entry><content>content_b19p2l0206</content></entry></data>

2022-06-27 22:32:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Jun 2022 05:32:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-27 22:32:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>47e9fb1e-fc19-4881-8448-509fadf32919</value></item-id></result>

2022-06-27 22:32:15 | contains: true

2022-06-27 22:32:15 | [Mutex] waiting for: [user_regular2a4v9i0203@test-domain.com:message:received:content_b19p2l0206]

2022-06-27 22:32:30 | [Mutex] timeout. Not received [user_regular2a4v9i0203@test-domain.com:message:received:content_b19p2l0206]

2022-06-27 22:32:30 | [Mutex] isItemNotified: user_regular2a4v9i0203@test-domain.com:message:received:content_b19p2l0206 :: false

2022-06-27 22:32:30 |


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


2022-06-27 22:32:31 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-27 22:32:31 | command: <data><node>node_bwj98k0204</node><entry><content>content_ly6s4a0207</content></entry></data>

2022-06-27 22:32:31 | target: http://localhost:8088

2022-06-27 22:32:31 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-27 22:32:31 | entity: <data><node>node_bwj98k0204</node><entry><content>content_ly6s4a0207</content></entry></data>

2022-06-27 22:32:31 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Jun 2022 05:32:31 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-27 22:32:31 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d02219db-e2ef-4790-a3e3-5f44d0cd6ce0</value></item-id></result>

2022-06-27 22:32:31 | contains: true

2022-06-27 22:32:36 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-27 22:32:36 | [Mutex] waiting for: [user_regular2a4v9i0203@test-domain.com:message:received:content_ly6s4a0207]

2022-06-27 22:32:36 | [Mutex] waiting for: [user_regular2a4v9i0203@test-domain.com:message:received:content_ly6s4a0207]

2022-06-27 22:32:36 | [Mutex] received everything.

2022-06-27 22:32:36 | [Mutex] isItemNotified: user_regular2a4v9i0203@test-domain.com:message:received:content_ly6s4a0207 :: true

2022-06-27 22:32:36 |


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


2022-06-27 22:32:36 | [Mutex] received everything.

2022-06-27 22:32:36 | [Mutex] isItemNotified: node_bwj98k0204:subscribe_node:success :: true

2022-06-27 22:32:36 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-27 22:32:36 | command: <data><node>node_bwj98k0204</node><expire-at>2022-06-28T05:32:41Z</expire-at><entry><content>content_aa085p0208</content></entry></data>

2022-06-27 22:32:36 | target: http://localhost:8088

2022-06-27 22:32:36 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-27 22:32:36 | entity: <data><node>node_bwj98k0204</node><expire-at>2022-06-28T05:32:41Z</expire-at><entry><content>content_aa085p0208</content></entry></data>

2022-06-27 22:32:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Jun 2022 05:32:36 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-27 22:32:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>755034b5-7fb3-46ef-b9ba-6bb625975c87</value></item-id></result>

2022-06-27 22:32:36 | contains: true

2022-06-27 22:32:44 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-27 22:32:44 | [Mutex] waiting for: [user_regular2a4v9i0203@test-domain.com:message:received:content_aa085p0208]

2022-06-27 22:32:44 | [Mutex] waiting for: [user_regular2a4v9i0203@test-domain.com:message:received:content_aa085p0208]

2022-06-27 22:32:59 | [Mutex] timeout. Not received [user_regular2a4v9i0203@test-domain.com:message:received:content_aa085p0208]

2022-06-27 22:32:59 | [Mutex] received everything.

2022-06-27 22:32:59 | [Mutex] isItemNotified: user_regular2a4v9i0203@test-domain.com:message:received:content_aa085p0208 :: false

2022-06-27 22:32:59 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_aa085p0208 :: true