Generated by TestNG with ReportNG at 22:28 PDT on Thursday 13 October 2022
root@7c41cec37518 / 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.865s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.617s
2022-10-13 22:43:08 |

2022-10-13 22:43:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-10-13 22:43:08 | ------------------------------------

2022-10-13 22:43:08 | [Mutex] isItemNotified: node_401p0y0204:exists :: false

2022-10-13 22:43:08 | [Mutex] waiting for: [node_401p0y0204:create_node]

2022-10-13 22:43:08 | [Mutex] received everything.

2022-10-13 22:43:08 | [Mutex] isItemNotified: node_401p0y0204:create_node:success :: true

2022-10-13 22:43:08 | [Mutex] waiting for: [node_401p0y0204:subscribe_node]

2022-10-13 22:43:08 | [Mutex] waiting for: [node_401p0y0204:subscribe_node]

2022-10-13 22:43:08 | [Mutex] received everything.

2022-10-13 22:43:08 | [Mutex] isItemNotified: node_401p0y0204:subscribe_node:success :: true

2022-10-13 22:43:08 |


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


2022-10-13 22:43:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-13 22:43:08 | command: <data><node>node_401p0y0204</node><entry><content>content_bk8h1a0205</content></entry></data>

2022-10-13 22:43:08 | target: http://localhost:8088

2022-10-13 22:43:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-10-13 22:43:08 | entity: <data><node>node_401p0y0204</node><entry><content>content_bk8h1a0205</content></entry></data>

2022-10-13 22:43:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 14 Oct 2022 05:43:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-10-13 22:43:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c2c0807d-3c87-428c-b390-70a571fdc5ee</value></item-id></result>

2022-10-13 22:43:08 | contains: true

2022-10-13 22:43:08 | [Mutex] received everything.

2022-10-13 22:43:08 | [Mutex] isItemNotified: user_regularjoh9n0203@test-domain.com:message:received:content_bk8h1a0205 :: true

2022-10-13 22:43:08 |


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


2022-10-13 22:43:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-13 22:43:08 | command: <data><node>node_401p0y0204</node><expire-at>2022-10-14T05:43:03Z</expire-at><entry><content>content_i3121s0206</content></entry></data>

2022-10-13 22:43:08 | target: http://localhost:8088

2022-10-13 22:43:08 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-10-13 22:43:08 | entity: <data><node>node_401p0y0204</node><expire-at>2022-10-14T05:43:03Z</expire-at><entry><content>content_i3121s0206</content></entry></data>

2022-10-13 22:43:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 14 Oct 2022 05:43:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-10-13 22:43:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>0fbb2850-eaed-46be-b6e6-bb50a7c9df57</value></item-id></result>

2022-10-13 22:43:08 | contains: true

2022-10-13 22:43:08 | [Mutex] waiting for: [user_regularjoh9n0203@test-domain.com:message:received:content_i3121s0206]

2022-10-13 22:43:23 | [Mutex] timeout. Not received [user_regularjoh9n0203@test-domain.com:message:received:content_i3121s0206]

2022-10-13 22:43:23 | [Mutex] isItemNotified: user_regularjoh9n0203@test-domain.com:message:received:content_i3121s0206 :: false

2022-10-13 22:43:23 |


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


2022-10-13 22:43:23 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-13 22:43:23 | command: <data><node>node_401p0y0204</node><entry><content>content_9k0cj60207</content></entry></data>

2022-10-13 22:43:23 | target: http://localhost:8088

2022-10-13 22:43:23 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-10-13 22:43:23 | entity: <data><node>node_401p0y0204</node><entry><content>content_9k0cj60207</content></entry></data>

2022-10-13 22:43:23 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 14 Oct 2022 05:43:23 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-10-13 22:43:23 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3bcad290-2c9c-41d0-80f4-fc093824a179</value></item-id></result>

2022-10-13 22:43:23 | contains: true

2022-10-13 22:43:28 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-10-13 22:43:28 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-10-13 22:43:28 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-10-13 22:43:28 | [Mutex] waiting for: [user_regularjoh9n0203@test-domain.com:message:received:content_9k0cj60207]

2022-10-13 22:43:28 | [Mutex] waiting for: [user_regularjoh9n0203@test-domain.com:message:received:content_9k0cj60207]

2022-10-13 22:43:28 | [Mutex] received everything.

2022-10-13 22:43:28 | [Mutex] isItemNotified: user_regularjoh9n0203@test-domain.com:message:received:content_9k0cj60207 :: true

2022-10-13 22:43:28 |


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


2022-10-13 22:43:28 | [Mutex] received everything.

2022-10-13 22:43:28 | [Mutex] isItemNotified: node_401p0y0204:subscribe_node:success :: true

2022-10-13 22:43:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-13 22:43:28 | command: <data><node>node_401p0y0204</node><expire-at>2022-10-14T05:43:33Z</expire-at><entry><content>content_rh9tn60208</content></entry></data>

2022-10-13 22:43:28 | target: http://localhost:8088

2022-10-13 22:43:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-10-13 22:43:28 | entity: <data><node>node_401p0y0204</node><expire-at>2022-10-14T05:43:33Z</expire-at><entry><content>content_rh9tn60208</content></entry></data>

2022-10-13 22:43:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 14 Oct 2022 05:43:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-10-13 22:43:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3e5ee9bd-3157-4a87-90c9-4b78fadb9d82</value></item-id></result>

2022-10-13 22:43:28 | contains: true

2022-10-13 22:43:36 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-10-13 22:43:36 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-10-13 22:43:36 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-10-13 22:43:37 | [Mutex] waiting for: [user_regularjoh9n0203@test-domain.com:message:received:content_rh9tn60208]

2022-10-13 22:43:52 | [Mutex] timeout. Not received [user_regularjoh9n0203@test-domain.com:message:received:content_rh9tn60208]

2022-10-13 22:43:52 | [Mutex] received everything.

2022-10-13 22:43:52 | [Mutex] isItemNotified: user_regularjoh9n0203@test-domain.com:message:received:content_rh9tn60208 :: false

2022-10-13 22:43:52 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_rh9tn60208 :: true