Generated by TestNG with ReportNG at 23:04 PDT on Sunday 12 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.811s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.602s
2022-06-12 23:18:52 |

2022-06-12 23:18:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-06-12 23:18:52 | ------------------------------------

2022-06-12 23:18:52 | [Mutex] isItemNotified: node_6wv4iu0204:exists :: false

2022-06-12 23:18:52 | [Mutex] waiting for: [node_6wv4iu0204:create_node]

2022-06-12 23:18:52 | [Mutex] waiting for: [node_6wv4iu0204:create_node]

2022-06-12 23:18:52 | [Mutex] received everything.

2022-06-12 23:18:52 | [Mutex] isItemNotified: node_6wv4iu0204:create_node:success :: true

2022-06-12 23:18:52 | [Mutex] waiting for: [node_6wv4iu0204:subscribe_node]

2022-06-12 23:18:52 | [Mutex] received everything.

2022-06-12 23:18:52 | [Mutex] isItemNotified: node_6wv4iu0204:subscribe_node:success :: true

2022-06-12 23:18:52 |


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


2022-06-12 23:18:52 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-12 23:18:52 | command: <data><node>node_6wv4iu0204</node><entry><content>content_a7trqv0205</content></entry></data>

2022-06-12 23:18:52 | target: http://localhost:8088

2022-06-12 23:18:52 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-12 23:18:52 | entity: <data><node>node_6wv4iu0204</node><entry><content>content_a7trqv0205</content></entry></data>

2022-06-12 23:18:52 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 13 Jun 2022 06:18:52 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-12 23:18:52 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c43ec40a-d47f-4f2e-bdc9-a1daab28bd82</value></item-id></result>

2022-06-12 23:18:52 | contains: true

2022-06-12 23:18:52 | [Mutex] waiting for: [user_regular39wv8q0203@test-domain.com:message:received:content_a7trqv0205]

2022-06-12 23:18:52 | [Mutex] received everything.

2022-06-12 23:18:52 | [Mutex] isItemNotified: user_regular39wv8q0203@test-domain.com:message:received:content_a7trqv0205 :: true

2022-06-12 23:18:52 |


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


2022-06-12 23:18:52 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-12 23:18:52 | command: <data><node>node_6wv4iu0204</node><expire-at>2022-06-13T06:18:47Z</expire-at><entry><content>content_7aj7630206</content></entry></data>

2022-06-12 23:18:52 | target: http://localhost:8088

2022-06-12 23:18:52 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-12 23:18:52 | entity: <data><node>node_6wv4iu0204</node><expire-at>2022-06-13T06:18:47Z</expire-at><entry><content>content_7aj7630206</content></entry></data>

2022-06-12 23:18:52 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 13 Jun 2022 06:18:52 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-12 23:18:52 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c0811979-44fe-4b2d-91ad-5fffcde24aaf</value></item-id></result>

2022-06-12 23:18:52 | contains: true

2022-06-12 23:18:52 | [Mutex] waiting for: [user_regular39wv8q0203@test-domain.com:message:received:content_7aj7630206]

2022-06-12 23:19:07 | [Mutex] timeout. Not received [user_regular39wv8q0203@test-domain.com:message:received:content_7aj7630206]

2022-06-12 23:19:07 | [Mutex] isItemNotified: user_regular39wv8q0203@test-domain.com:message:received:content_7aj7630206 :: false

2022-06-12 23:19:07 |


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


2022-06-12 23:19:07 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-12 23:19:07 | command: <data><node>node_6wv4iu0204</node><entry><content>content_z1efzj0207</content></entry></data>

2022-06-12 23:19:07 | target: http://localhost:8088

2022-06-12 23:19:07 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-06-12 23:19:07 | entity: <data><node>node_6wv4iu0204</node><entry><content>content_z1efzj0207</content></entry></data>

2022-06-12 23:19:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 13 Jun 2022 06:19:07 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-12 23:19:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>764abe23-a163-4b7b-8852-91a69a5f30b1</value></item-id></result>

2022-06-12 23:19:07 | contains: true

2022-06-12 23:19:12 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-06-12 23:19:12 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-06-12 23:19:12 | [Mutex] waiting for: [user_regular39wv8q0203@test-domain.com:message:received:content_z1efzj0207]

2022-06-12 23:19:12 | [Mutex] waiting for: [user_regular39wv8q0203@test-domain.com:message:received:content_z1efzj0207]

2022-06-12 23:19:12 | [Mutex] received everything.

2022-06-12 23:19:12 | [Mutex] isItemNotified: user_regular39wv8q0203@test-domain.com:message:received:content_z1efzj0207 :: true

2022-06-12 23:19:12 |


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


2022-06-12 23:19:12 | [Mutex] received everything.

2022-06-12 23:19:12 | [Mutex] isItemNotified: node_6wv4iu0204:subscribe_node:success :: true

2022-06-12 23:19:13 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-06-12 23:19:13 | command: <data><node>node_6wv4iu0204</node><expire-at>2022-06-13T06:19:18Z</expire-at><entry><content>content_31xgsl0208</content></entry></data>

2022-06-12 23:19:13 | target: http://localhost:8088

2022-06-12 23:19:13 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-06-12 23:19:13 | entity: <data><node>node_6wv4iu0204</node><expire-at>2022-06-13T06:19:18Z</expire-at><entry><content>content_31xgsl0208</content></entry></data>

2022-06-12 23:19:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 13 Jun 2022 06:19:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-12 23:19:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a00e4ba1-15b0-46a1-9549-855257db4a49</value></item-id></result>

2022-06-12 23:19:13 | contains: true

2022-06-12 23:19:21 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-06-12 23:19:21 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-06-12 23:19:21 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-06-12 23:19:21 | [Mutex] waiting for: [user_regular39wv8q0203@test-domain.com:message:received:content_31xgsl0208]

2022-06-12 23:19:21 | [Mutex] waiting for: [user_regular39wv8q0203@test-domain.com:message:received:content_31xgsl0208]

2022-06-12 23:19:36 | [Mutex] timeout. Not received [user_regular39wv8q0203@test-domain.com:message:received:content_31xgsl0208]

2022-06-12 23:19:36 | [Mutex] received everything.

2022-06-12 23:19:36 | [Mutex] isItemNotified: user_regular39wv8q0203@test-domain.com:message:received:content_31xgsl0208 :: false

2022-06-12 23:19:36 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_31xgsl0208 :: true