Generated by TestNG with ReportNG at 22:18 PDT on Wednesday 20 July 2022
root@f9c07ffec79b / 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.382s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.511s
2022-07-20 22:33:21 |

2022-07-20 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-20 22:33:21 | ------------------------------------

2022-07-20 22:33:21 | [Mutex] isItemNotified: node_5o3nog0204:exists :: false

2022-07-20 22:33:21 | [Mutex] waiting for: [node_5o3nog0204:create_node]

2022-07-20 22:33:21 | [Mutex] received everything.

2022-07-20 22:33:21 | [Mutex] isItemNotified: node_5o3nog0204:create_node:success :: true

2022-07-20 22:33:21 | [Mutex] waiting for: [node_5o3nog0204:subscribe_node]

2022-07-20 22:33:21 | [Mutex] received everything.

2022-07-20 22:33:21 | [Mutex] isItemNotified: node_5o3nog0204:subscribe_node:success :: true

2022-07-20 22:33:21 |


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


2022-07-20 22:33:21 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 22:33:21 | command: <data><node>node_5o3nog0204</node><entry><content>content_v90b0c0205</content></entry></data>

2022-07-20 22:33:21 | target: http://localhost:8088

2022-07-20 22:33:21 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-20 22:33:21 | entity: <data><node>node_5o3nog0204</node><entry><content>content_v90b0c0205</content></entry></data>

2022-07-20 22:33:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 05:33:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 22:33:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>84342b09-006c-497e-a57c-cc2d49c6bc5e</value></item-id></result>

2022-07-20 22:33:21 | contains: true

2022-07-20 22:33:21 | [Mutex] received everything.

2022-07-20 22:33:21 | [Mutex] isItemNotified: user_regularos8a9u0203@test-domain.com:message:received:content_v90b0c0205 :: true

2022-07-20 22:33:21 |


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


2022-07-20 22:33:21 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 22:33:21 | command: <data><node>node_5o3nog0204</node><expire-at>2022-07-21T05:33:16Z</expire-at><entry><content>content_mjx7ue0206</content></entry></data>

2022-07-20 22:33:21 | target: http://localhost:8088

2022-07-20 22:33:21 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-20 22:33:21 | entity: <data><node>node_5o3nog0204</node><expire-at>2022-07-21T05:33:16Z</expire-at><entry><content>content_mjx7ue0206</content></entry></data>

2022-07-20 22:33:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 05:33:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 22:33:22 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>92e161c8-169a-4c86-9c2b-8d6cad7e3e5a</value></item-id></result>

2022-07-20 22:33:22 | contains: true

2022-07-20 22:33:22 | [Mutex] waiting for: [user_regularos8a9u0203@test-domain.com:message:received:content_mjx7ue0206]

2022-07-20 22:33:37 | [Mutex] timeout. Not received [user_regularos8a9u0203@test-domain.com:message:received:content_mjx7ue0206]

2022-07-20 22:33:37 | [Mutex] isItemNotified: user_regularos8a9u0203@test-domain.com:message:received:content_mjx7ue0206 :: false

2022-07-20 22:33:37 |


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


2022-07-20 22:33:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 22:33:37 | command: <data><node>node_5o3nog0204</node><entry><content>content_o2jvxp0207</content></entry></data>

2022-07-20 22:33:37 | target: http://localhost:8088

2022-07-20 22:33:37 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-20 22:33:37 | entity: <data><node>node_5o3nog0204</node><entry><content>content_o2jvxp0207</content></entry></data>

2022-07-20 22:33:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 05:33:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 22:33:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>64ba4188-450e-436a-a6bc-86055b19ecb1</value></item-id></result>

2022-07-20 22:33:37 | contains: true

2022-07-20 22:33:42 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-07-20 22:33:42 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-20 22:33:42 | [Mutex] waiting for: [user_regularos8a9u0203@test-domain.com:message:received:content_o2jvxp0207]

2022-07-20 22:33:42 | [Mutex] waiting for: [user_regularos8a9u0203@test-domain.com:message:received:content_o2jvxp0207]

2022-07-20 22:33:42 | [Mutex] received everything.

2022-07-20 22:33:42 | [Mutex] isItemNotified: user_regularos8a9u0203@test-domain.com:message:received:content_o2jvxp0207 :: true

2022-07-20 22:33:42 |


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


2022-07-20 22:33:42 | [Mutex] received everything.

2022-07-20 22:33:42 | [Mutex] isItemNotified: node_5o3nog0204:subscribe_node:success :: true

2022-07-20 22:33:42 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 22:33:42 | command: <data><node>node_5o3nog0204</node><expire-at>2022-07-21T05:33:47Z</expire-at><entry><content>content_4h21hr0208</content></entry></data>

2022-07-20 22:33:42 | target: http://localhost:8088

2022-07-20 22:33:42 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-20 22:33:42 | entity: <data><node>node_5o3nog0204</node><expire-at>2022-07-21T05:33:47Z</expire-at><entry><content>content_4h21hr0208</content></entry></data>

2022-07-20 22:33:42 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 05:33:42 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 22:33:42 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>898c7b4c-c735-479b-9321-20ac4ba69d2e</value></item-id></result>

2022-07-20 22:33:42 | contains: true

2022-07-20 22:33:50 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-07-20 22:33:50 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-20 22:33:50 | [Mutex] waiting for: [user_regularos8a9u0203@test-domain.com:message:received:content_4h21hr0208]

2022-07-20 22:33:50 | [Mutex] waiting for: [user_regularos8a9u0203@test-domain.com:message:received:content_4h21hr0208]

2022-07-20 22:33:50 | [Mutex] waiting for: [user_regularos8a9u0203@test-domain.com:message:received:content_4h21hr0208]

2022-07-20 22:34:05 | [Mutex] timeout. Not received [user_regularos8a9u0203@test-domain.com:message:received:content_4h21hr0208]

2022-07-20 22:34:05 | [Mutex] received everything.

2022-07-20 22:34:05 | [Mutex] isItemNotified: user_regularos8a9u0203@test-domain.com:message:received:content_4h21hr0208 :: false

2022-07-20 22:34:05 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_4h21hr0208 :: true