Generated by TestNG with ReportNG at 22:46 PDT on Monday 27 March 2023
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.496s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.646s
2023-03-27 23:01:17 |

2023-03-27 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-03-27 23:01:17 | ------------------------------------

2023-03-27 23:01:17 | [Mutex] isItemNotified: node_39mcsj0208:exists :: false

2023-03-27 23:01:17 | [Mutex] waiting for: [node_39mcsj0208:create_node]

2023-03-27 23:01:17 | [Mutex] waiting for: [node_39mcsj0208:create_node]

2023-03-27 23:01:17 | [Mutex] received everything.

2023-03-27 23:01:17 | [Mutex] isItemNotified: node_39mcsj0208:create_node:success :: true

2023-03-27 23:01:17 | [Mutex] waiting for: [node_39mcsj0208:subscribe_node]

2023-03-27 23:01:17 | [Mutex] waiting for: [node_39mcsj0208:subscribe_node]

2023-03-27 23:01:17 | [Mutex] received everything.

2023-03-27 23:01:17 | [Mutex] isItemNotified: node_39mcsj0208:subscribe_node:success :: true

2023-03-27 23:01:17 |


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


2023-03-27 23:01:17 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-27 23:01:17 | command: <data><node>node_39mcsj0208</node><entry><content>content_e1wrn50209</content></entry></data>

2023-03-27 23:01:17 | target: http://localhost:8088

2023-03-27 23:01:17 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-03-27 23:01:17 | entity: <data><node>node_39mcsj0208</node><entry><content>content_e1wrn50209</content></entry></data>

2023-03-27 23:01:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Mar 2023 06:01:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-27 23:01:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>9cc15f7e-6bdf-464e-99f6-89cc5566ec08</value></item-id></result>

2023-03-27 23:01:17 | contains: true

2023-03-27 23:01:17 | [Mutex] waiting for: [user_regularajbhd30207@test-domain.com:message:received:content_e1wrn50209]

2023-03-27 23:01:17 | [Mutex] received everything.

2023-03-27 23:01:17 | [Mutex] isItemNotified: user_regularajbhd30207@test-domain.com:message:received:content_e1wrn50209 :: true

2023-03-27 23:01:17 |


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


2023-03-27 23:01:17 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-27 23:01:17 | command: <data><node>node_39mcsj0208</node><expire-at>2023-03-28T06:01:12Z</expire-at><entry><content>content_xbohxu0210</content></entry></data>

2023-03-27 23:01:17 | target: http://localhost:8088

2023-03-27 23:01:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-03-27 23:01:17 | entity: <data><node>node_39mcsj0208</node><expire-at>2023-03-28T06:01:12Z</expire-at><entry><content>content_xbohxu0210</content></entry></data>

2023-03-27 23:01:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Mar 2023 06:01:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-27 23:01:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>680d6d6e-d59c-4fb1-811e-f00e4763d54c</value></item-id></result>

2023-03-27 23:01:17 | contains: true

2023-03-27 23:01:17 | [Mutex] waiting for: [user_regularajbhd30207@test-domain.com:message:received:content_xbohxu0210]

2023-03-27 23:01:32 | [Mutex] timeout. Not received [user_regularajbhd30207@test-domain.com:message:received:content_xbohxu0210]

2023-03-27 23:01:32 | [Mutex] isItemNotified: user_regularajbhd30207@test-domain.com:message:received:content_xbohxu0210 :: false

2023-03-27 23:01:32 |


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


2023-03-27 23:01:32 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-27 23:01:32 | command: <data><node>node_39mcsj0208</node><entry><content>content_o7l7aq0211</content></entry></data>

2023-03-27 23:01:32 | target: http://localhost:8088

2023-03-27 23:01:32 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-03-27 23:01:32 | entity: <data><node>node_39mcsj0208</node><entry><content>content_o7l7aq0211</content></entry></data>

2023-03-27 23:01:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Mar 2023 06:01:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-27 23:01:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>bab81895-69b1-49c3-a440-bc635a2e4fe6</value></item-id></result>

2023-03-27 23:01:32 | contains: true

2023-03-27 23:01:37 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-03-27 23:01:37 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] DNS entry stored in session object: localhost:5222

2023-03-27 23:01:37 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-03-27 23:01:37 | [Mutex] waiting for: [user_regularajbhd30207@test-domain.com:message:received:content_o7l7aq0211]

2023-03-27 23:01:37 | [Mutex] waiting for: [user_regularajbhd30207@test-domain.com:message:received:content_o7l7aq0211]

2023-03-27 23:01:37 | [Mutex] received everything.

2023-03-27 23:01:37 | [Mutex] isItemNotified: user_regularajbhd30207@test-domain.com:message:received:content_o7l7aq0211 :: true

2023-03-27 23:01:37 |


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


2023-03-27 23:01:37 | [Mutex] received everything.

2023-03-27 23:01:37 | [Mutex] isItemNotified: node_39mcsj0208:subscribe_node:success :: true

2023-03-27 23:01:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-03-27 23:01:37 | command: <data><node>node_39mcsj0208</node><expire-at>2023-03-28T06:01:42Z</expire-at><entry><content>content_9ghvkt0212</content></entry></data>

2023-03-27 23:01:37 | target: http://localhost:8088

2023-03-27 23:01:37 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-03-27 23:01:37 | entity: <data><node>node_39mcsj0208</node><expire-at>2023-03-28T06:01:42Z</expire-at><entry><content>content_9ghvkt0212</content></entry></data>

2023-03-27 23:01:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 28 Mar 2023 06:01:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-03-27 23:01:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>cfe621a8-56cc-4db2-af5f-53d1c9b6b657</value></item-id></result>

2023-03-27 23:01:37 | contains: true

2023-03-27 23:01:45 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-03-27 23:01:45 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] DNS entry stored in session object: localhost:5222

2023-03-27 23:01:45 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-03-27 23:01:45 | [Mutex] waiting for: [user_regularajbhd30207@test-domain.com:message:received:content_9ghvkt0212]

2023-03-27 23:01:46 | [Mutex] waiting for: [user_regularajbhd30207@test-domain.com:message:received:content_9ghvkt0212]

2023-03-27 23:02:00 | [Mutex] timeout. Not received [user_regularajbhd30207@test-domain.com:message:received:content_9ghvkt0212]

2023-03-27 23:02:00 | [Mutex] received everything.

2023-03-27 23:02:00 | [Mutex] isItemNotified: user_regularajbhd30207@test-domain.com:message:received:content_9ghvkt0212 :: false

2023-03-27 23:02:00 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_9ghvkt0212 :: true