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

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.652s
2022-10-10 22:43:58 |

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

2022-10-10 22:43:58 | ------------------------------------

2022-10-10 22:43:58 | [Mutex] isItemNotified: node_7yn5ay0204:exists :: false

2022-10-10 22:43:58 | [Mutex] waiting for: [node_7yn5ay0204:create_node]

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

2022-10-10 22:43:58 | [Mutex] isItemNotified: node_7yn5ay0204:create_node:success :: true

2022-10-10 22:43:58 | [Mutex] waiting for: [node_7yn5ay0204:subscribe_node]

2022-10-10 22:43:58 | [Mutex] waiting for: [node_7yn5ay0204:subscribe_node]

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

2022-10-10 22:43:58 | [Mutex] isItemNotified: node_7yn5ay0204:subscribe_node:success :: true

2022-10-10 22:43:58 |


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


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

2022-10-10 22:43:58 | command: <data><node>node_7yn5ay0204</node><entry><content>content_jri2vq0205</content></entry></data>

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

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

2022-10-10 22:43:58 | entity: <data><node>node_7yn5ay0204</node><entry><content>content_jri2vq0205</content></entry></data>

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

2022-10-10 22:43:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>aa64ff93-6399-46e7-93a5-afdfc6fe4ab6</value></item-id></result>

2022-10-10 22:43:58 | contains: true

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

2022-10-10 22:43:58 | [Mutex] isItemNotified: user_regularg2s1k30203@test-domain.com:message:received:content_jri2vq0205 :: true

2022-10-10 22:43:58 |


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


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

2022-10-10 22:43:58 | command: <data><node>node_7yn5ay0204</node><expire-at>2022-10-11T05:43:53Z</expire-at><entry><content>content_tiz2820206</content></entry></data>

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

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

2022-10-10 22:43:58 | entity: <data><node>node_7yn5ay0204</node><expire-at>2022-10-11T05:43:53Z</expire-at><entry><content>content_tiz2820206</content></entry></data>

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

2022-10-10 22:43:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c1ceb041-9b96-480a-95a0-17ef6fe0dbd4</value></item-id></result>

2022-10-10 22:43:58 | contains: true

2022-10-10 22:43:58 | [Mutex] waiting for: [user_regularg2s1k30203@test-domain.com:message:received:content_tiz2820206]

2022-10-10 22:44:13 | [Mutex] timeout. Not received [user_regularg2s1k30203@test-domain.com:message:received:content_tiz2820206]

2022-10-10 22:44:13 | [Mutex] isItemNotified: user_regularg2s1k30203@test-domain.com:message:received:content_tiz2820206 :: false

2022-10-10 22:44:13 |


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


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

2022-10-10 22:44:13 | command: <data><node>node_7yn5ay0204</node><entry><content>content_e5nawa0207</content></entry></data>

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

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

2022-10-10 22:44:13 | entity: <data><node>node_7yn5ay0204</node><entry><content>content_e5nawa0207</content></entry></data>

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

2022-10-10 22:44:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>63a05cc4-6952-47bd-97f8-db016cdf4692</value></item-id></result>

2022-10-10 22:44:13 | contains: true

2022-10-10 22:44:18 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-10-10 22:44:18 | [Mutex] received everything.

2022-10-10 22:44:18 | [Mutex] isItemNotified: user_regularg2s1k30203@test-domain.com:message:received:content_e5nawa0207 :: true

2022-10-10 22:44:18 |


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


2022-10-10 22:44:18 | [Mutex] received everything.

2022-10-10 22:44:18 | [Mutex] isItemNotified: node_7yn5ay0204:subscribe_node:success :: true

2022-10-10 22:44:18 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-10 22:44:18 | command: <data><node>node_7yn5ay0204</node><expire-at>2022-10-11T05:44:23Z</expire-at><entry><content>content_j3gvco0208</content></entry></data>

2022-10-10 22:44:18 | target: http://localhost:8088

2022-10-10 22:44:18 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-10-10 22:44:18 | entity: <data><node>node_7yn5ay0204</node><expire-at>2022-10-11T05:44:23Z</expire-at><entry><content>content_j3gvco0208</content></entry></data>

2022-10-10 22:44:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 11 Oct 2022 05:44:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-10-10 22:44:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7b3265b2-9876-4924-b3ad-b91c361bad69</value></item-id></result>

2022-10-10 22:44:18 | contains: true

2022-10-10 22:44:26 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-10-10 22:44:26 | [Mutex] waiting for: [user_regularg2s1k30203@test-domain.com:message:received:content_j3gvco0208]

2022-10-10 22:44:26 | [Mutex] waiting for: [user_regularg2s1k30203@test-domain.com:message:received:content_j3gvco0208]

2022-10-10 22:44:41 | [Mutex] timeout. Not received [user_regularg2s1k30203@test-domain.com:message:received:content_j3gvco0208]

2022-10-10 22:44:41 | [Mutex] received everything.

2022-10-10 22:44:41 | [Mutex] isItemNotified: user_regularg2s1k30203@test-domain.com:message:received:content_j3gvco0208 :: false

2022-10-10 22:44:41 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_j3gvco0208 :: true