Generated by TestNG with ReportNG at 22:32 PDT on Friday 25 August 2023
root@3a0debf50d0d / Java 17.0.8 (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.777s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.647s
2023-08-25 22:47:03 |

2023-08-25 22:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2023-08-25 22:47:03 | ------------------------------------

2023-08-25 22:47:03 | [Mutex] isItemNotified: node_3uwkqu0208:exists :: false

2023-08-25 22:47:03 | [Mutex] waiting for: [node_3uwkqu0208:create_node]

2023-08-25 22:47:03 | [Mutex] received everything.

2023-08-25 22:47:03 | [Mutex] isItemNotified: node_3uwkqu0208:create_node:success :: true

2023-08-25 22:47:03 | [Mutex] waiting for: [node_3uwkqu0208:subscribe_node]

2023-08-25 22:47:03 | [Mutex] waiting for: [node_3uwkqu0208:subscribe_node]

2023-08-25 22:47:03 | [Mutex] received everything.

2023-08-25 22:47:03 | [Mutex] isItemNotified: node_3uwkqu0208:subscribe_node:success :: true

2023-08-25 22:47:03 |


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


2023-08-25 22:47:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-25 22:47:03 | command: <data><node>node_3uwkqu0208</node><entry><content>content_3o98m0209</content></entry></data>

2023-08-25 22:47:03 | target: http://localhost:8088

2023-08-25 22:47:03 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2023-08-25 22:47:03 | entity: <data><node>node_3uwkqu0208</node><entry><content>content_3o98m0209</content></entry></data>

2023-08-25 22:47:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 26 Aug 2023 05:47:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-25 22:47:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4ad69d11-1f14-4cc7-8e3e-564517cdaad6</value></item-id></result>

2023-08-25 22:47:03 | contains: true

2023-08-25 22:47:03 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_3o98m0209]

2023-08-25 22:47:03 | [Mutex] received everything.

2023-08-25 22:47:03 | [Mutex] isItemNotified: user_regularxy0x8j0207@test-domain.com:message:received:content_3o98m0209 :: true

2023-08-25 22:47:03 |


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


2023-08-25 22:47:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-25 22:47:03 | command: <data><node>node_3uwkqu0208</node><expire-at>2023-08-26T05:46:58Z</expire-at><entry><content>content_3sx1bc0210</content></entry></data>

2023-08-25 22:47:03 | target: http://localhost:8088

2023-08-25 22:47:03 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-08-25 22:47:03 | entity: <data><node>node_3uwkqu0208</node><expire-at>2023-08-26T05:46:58Z</expire-at><entry><content>content_3sx1bc0210</content></entry></data>

2023-08-25 22:47:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 26 Aug 2023 05:47:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-25 22:47:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3ffe5787-f191-4bd2-85fd-38e4423bb21d</value></item-id></result>

2023-08-25 22:47:03 | contains: true

2023-08-25 22:47:03 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_3sx1bc0210]

2023-08-25 22:47:18 | [Mutex] timeout. Not received [user_regularxy0x8j0207@test-domain.com:message:received:content_3sx1bc0210]

2023-08-25 22:47:18 | [Mutex] isItemNotified: user_regularxy0x8j0207@test-domain.com:message:received:content_3sx1bc0210 :: false

2023-08-25 22:47:18 |


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


2023-08-25 22:47:18 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-25 22:47:18 | command: <data><node>node_3uwkqu0208</node><entry><content>content_w1fn1t0211</content></entry></data>

2023-08-25 22:47:18 | target: http://localhost:8088

2023-08-25 22:47:18 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2023-08-25 22:47:18 | entity: <data><node>node_3uwkqu0208</node><entry><content>content_w1fn1t0211</content></entry></data>

2023-08-25 22:47:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 26 Aug 2023 05:47:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-25 22:47:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2f257bce-ae77-44ed-b14a-edbfe45b121c</value></item-id></result>

2023-08-25 22:47:18 | contains: true

2023-08-25 22:47:23 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-08-25 22:47:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] DNS entry stored in session object: localhost:5222

2023-08-25 22:47:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=485 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-08-25 22:47:24 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_w1fn1t0211]

2023-08-25 22:47:24 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_w1fn1t0211]

2023-08-25 22:47:24 | [Mutex] received everything.

2023-08-25 22:47:24 | [Mutex] isItemNotified: user_regularxy0x8j0207@test-domain.com:message:received:content_w1fn1t0211 :: true

2023-08-25 22:47:24 |


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


2023-08-25 22:47:24 | [Mutex] received everything.

2023-08-25 22:47:24 | [Mutex] isItemNotified: node_3uwkqu0208:subscribe_node:success :: true

2023-08-25 22:47:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2023-08-25 22:47:24 | command: <data><node>node_3uwkqu0208</node><expire-at>2023-08-26T05:47:29Z</expire-at><entry><content>content_dl5peo0212</content></entry></data>

2023-08-25 22:47:24 | target: http://localhost:8088

2023-08-25 22:47:24 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2023-08-25 22:47:24 | entity: <data><node>node_3uwkqu0208</node><expire-at>2023-08-26T05:47:29Z</expire-at><entry><content>content_dl5peo0212</content></entry></data>

2023-08-25 22:47:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 26 Aug 2023 05:47:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2023-08-25 22:47:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>502bb62b-a475-43c8-8bf7-b1674aeae973</value></item-id></result>

2023-08-25 22:47:24 | contains: true

2023-08-25 22:47:32 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2023-08-25 22:47:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] DNS entry stored in session object: localhost:5222

2023-08-25 22:47:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=486 thread=1] Opening connection to localhost/127.0.0.1:5222

2023-08-25 22:47:32 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_dl5peo0212]

2023-08-25 22:47:32 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_dl5peo0212]

2023-08-25 22:47:32 | [Mutex] waiting for: [user_regularxy0x8j0207@test-domain.com:message:received:content_dl5peo0212]

2023-08-25 22:47:47 | [Mutex] timeout. Not received [user_regularxy0x8j0207@test-domain.com:message:received:content_dl5peo0212]

2023-08-25 22:47:47 | [Mutex] received everything.

2023-08-25 22:47:47 | [Mutex] isItemNotified: user_regularxy0x8j0207@test-domain.com:message:received:content_dl5peo0212 :: false

2023-08-25 22:47:47 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_dl5peo0212 :: true