Generated by TestNG with ReportNG at 22:58 PDT on Thursday 06 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.909s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.577s
2022-10-06 23:13:46 |

2022-10-06 23:13:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-10-06 23:13:46 | ------------------------------------

2022-10-06 23:13:46 | [Mutex] isItemNotified: node_divssw0204:exists :: false

2022-10-06 23:13:46 | [Mutex] waiting for: [node_divssw0204:create_node]

2022-10-06 23:13:46 | [Mutex] received everything.

2022-10-06 23:13:46 | [Mutex] isItemNotified: node_divssw0204:create_node:success :: true

2022-10-06 23:13:46 | [Mutex] waiting for: [node_divssw0204:subscribe_node]

2022-10-06 23:13:46 | [Mutex] waiting for: [node_divssw0204:subscribe_node]

2022-10-06 23:13:46 | [Mutex] received everything.

2022-10-06 23:13:46 | [Mutex] isItemNotified: node_divssw0204:subscribe_node:success :: true

2022-10-06 23:13:46 |


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


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

2022-10-06 23:13:46 | command: <data><node>node_divssw0204</node><entry><content>content_9zvspb0205</content></entry></data>

2022-10-06 23:13:46 | target: http://localhost:8088

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

2022-10-06 23:13:46 | entity: <data><node>node_divssw0204</node><entry><content>content_9zvspb0205</content></entry></data>

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

2022-10-06 23:13:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f83303c7-4f8e-46d2-9aaa-d36ccae53892</value></item-id></result>

2022-10-06 23:13:46 | contains: true

2022-10-06 23:13:46 | [Mutex] received everything.

2022-10-06 23:13:46 | [Mutex] isItemNotified: user_regularjnfrn60203@test-domain.com:message:received:content_9zvspb0205 :: true

2022-10-06 23:13:46 |


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


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

2022-10-06 23:13:46 | command: <data><node>node_divssw0204</node><expire-at>2022-10-07T06:13:41Z</expire-at><entry><content>content_6w0m8z0206</content></entry></data>

2022-10-06 23:13:46 | target: http://localhost:8088

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

2022-10-06 23:13:46 | entity: <data><node>node_divssw0204</node><expire-at>2022-10-07T06:13:41Z</expire-at><entry><content>content_6w0m8z0206</content></entry></data>

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

2022-10-06 23:13:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>360917e6-ea6c-4d68-adfd-420a6e902b98</value></item-id></result>

2022-10-06 23:13:47 | contains: true

2022-10-06 23:13:47 | [Mutex] waiting for: [user_regularjnfrn60203@test-domain.com:message:received:content_6w0m8z0206]

2022-10-06 23:14:02 | [Mutex] timeout. Not received [user_regularjnfrn60203@test-domain.com:message:received:content_6w0m8z0206]

2022-10-06 23:14:02 | [Mutex] isItemNotified: user_regularjnfrn60203@test-domain.com:message:received:content_6w0m8z0206 :: false

2022-10-06 23:14:02 |


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


2022-10-06 23:14:02 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-06 23:14:02 | command: <data><node>node_divssw0204</node><entry><content>content_9z2pr90207</content></entry></data>

2022-10-06 23:14:02 | target: http://localhost:8088

2022-10-06 23:14:02 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-10-06 23:14:02 | entity: <data><node>node_divssw0204</node><entry><content>content_9z2pr90207</content></entry></data>

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

2022-10-06 23:14:02 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>df179e35-7816-4c4e-aa9b-9cdc40cb9b51</value></item-id></result>

2022-10-06 23:14:02 | contains: true

2022-10-06 23:14:07 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-10-06 23:14:07 | [Mutex] waiting for: [user_regularjnfrn60203@test-domain.com:message:received:content_9z2pr90207]

2022-10-06 23:14:07 | [Mutex] received everything.

2022-10-06 23:14:07 | [Mutex] isItemNotified: user_regularjnfrn60203@test-domain.com:message:received:content_9z2pr90207 :: true

2022-10-06 23:14:07 |


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


2022-10-06 23:14:07 | [Mutex] received everything.

2022-10-06 23:14:07 | [Mutex] isItemNotified: node_divssw0204:subscribe_node:success :: true

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

2022-10-06 23:14:07 | command: <data><node>node_divssw0204</node><expire-at>2022-10-07T06:14:12Z</expire-at><entry><content>content_cwbmv90208</content></entry></data>

2022-10-06 23:14:07 | target: http://localhost:8088

2022-10-06 23:14:07 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-10-06 23:14:07 | entity: <data><node>node_divssw0204</node><expire-at>2022-10-07T06:14:12Z</expire-at><entry><content>content_cwbmv90208</content></entry></data>

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

2022-10-06 23:14:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>827373e2-4fd3-4f42-8eb8-f30dd5b82bc2</value></item-id></result>

2022-10-06 23:14:07 | contains: true

2022-10-06 23:14:15 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-10-06 23:14:15 | [Mutex] waiting for: [user_regularjnfrn60203@test-domain.com:message:received:content_cwbmv90208]

2022-10-06 23:14:15 | [Mutex] waiting for: [user_regularjnfrn60203@test-domain.com:message:received:content_cwbmv90208]

2022-10-06 23:14:30 | [Mutex] timeout. Not received [user_regularjnfrn60203@test-domain.com:message:received:content_cwbmv90208]

2022-10-06 23:14:30 | [Mutex] received everything.

2022-10-06 23:14:30 | [Mutex] isItemNotified: user_regularjnfrn60203@test-domain.com:message:received:content_cwbmv90208 :: false

2022-10-06 23:14:30 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_cwbmv90208 :: true