Generated by TestNG with ReportNG at 22:46 PDT on Tuesday 23 August 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.514s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.605s
2022-08-23 23:01:59 |

2022-08-23 23:01:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-08-23 23:01:59 | ------------------------------------

2022-08-23 23:01:59 | [Mutex] isItemNotified: node_n0xn1u0204:exists :: false

2022-08-23 23:01:59 | [Mutex] waiting for: [node_n0xn1u0204:create_node]

2022-08-23 23:01:59 | [Mutex] received everything.

2022-08-23 23:01:59 | [Mutex] isItemNotified: node_n0xn1u0204:create_node:success :: true

2022-08-23 23:01:59 | [Mutex] waiting for: [node_n0xn1u0204:subscribe_node]

2022-08-23 23:01:59 | [Mutex] waiting for: [node_n0xn1u0204:subscribe_node]

2022-08-23 23:01:59 | [Mutex] received everything.

2022-08-23 23:01:59 | [Mutex] isItemNotified: node_n0xn1u0204:subscribe_node:success :: true

2022-08-23 23:01:59 |


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


2022-08-23 23:01:59 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-23 23:01:59 | command: <data><node>node_n0xn1u0204</node><entry><content>content_eite5z0205</content></entry></data>

2022-08-23 23:01:59 | target: http://localhost:8088

2022-08-23 23:01:59 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-08-23 23:01:59 | entity: <data><node>node_n0xn1u0204</node><entry><content>content_eite5z0205</content></entry></data>

2022-08-23 23:01:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 24 Aug 2022 06:01:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-23 23:01:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4e4340c9-0fb9-47c4-a1ac-52d747f5d8d4</value></item-id></result>

2022-08-23 23:01:59 | contains: true

2022-08-23 23:01:59 | [Mutex] waiting for: [user_regularfg4xtt0203@test-domain.com:message:received:content_eite5z0205]

2022-08-23 23:01:59 | [Mutex] received everything.

2022-08-23 23:01:59 | [Mutex] isItemNotified: user_regularfg4xtt0203@test-domain.com:message:received:content_eite5z0205 :: true

2022-08-23 23:01:59 |


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


2022-08-23 23:01:59 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-23 23:01:59 | command: <data><node>node_n0xn1u0204</node><expire-at>2022-08-24T06:01:54Z</expire-at><entry><content>content_f3w1o00206</content></entry></data>

2022-08-23 23:01:59 | target: http://localhost:8088

2022-08-23 23:01:59 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-08-23 23:01:59 | entity: <data><node>node_n0xn1u0204</node><expire-at>2022-08-24T06:01:54Z</expire-at><entry><content>content_f3w1o00206</content></entry></data>

2022-08-23 23:01:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 24 Aug 2022 06:01:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-23 23:01:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>88c62f48-e92f-4b6a-9bf2-8abe30bc9f1f</value></item-id></result>

2022-08-23 23:01:59 | contains: true

2022-08-23 23:01:59 | [Mutex] waiting for: [user_regularfg4xtt0203@test-domain.com:message:received:content_f3w1o00206]

2022-08-23 23:02:14 | [Mutex] timeout. Not received [user_regularfg4xtt0203@test-domain.com:message:received:content_f3w1o00206]

2022-08-23 23:02:14 | [Mutex] isItemNotified: user_regularfg4xtt0203@test-domain.com:message:received:content_f3w1o00206 :: false

2022-08-23 23:02:14 |


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


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

2022-08-23 23:02:14 | command: <data><node>node_n0xn1u0204</node><entry><content>content_i02hvg0207</content></entry></data>

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

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

2022-08-23 23:02:14 | entity: <data><node>node_n0xn1u0204</node><entry><content>content_i02hvg0207</content></entry></data>

2022-08-23 23:02:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 24 Aug 2022 06:02:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-23 23:02:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>27b337c7-0212-4a9c-bf1f-400b36c4ef0f</value></item-id></result>

2022-08-23 23:02:14 | contains: true

2022-08-23 23:02:19 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-08-23 23:02:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-08-23 23:02:19 | [Mutex] waiting for: [user_regularfg4xtt0203@test-domain.com:message:received:content_i02hvg0207]

2022-08-23 23:02:19 | [Mutex] waiting for: [user_regularfg4xtt0203@test-domain.com:message:received:content_i02hvg0207]

2022-08-23 23:02:19 | [Mutex] received everything.

2022-08-23 23:02:19 | [Mutex] isItemNotified: user_regularfg4xtt0203@test-domain.com:message:received:content_i02hvg0207 :: true

2022-08-23 23:02:19 |


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


2022-08-23 23:02:19 | [Mutex] received everything.

2022-08-23 23:02:19 | [Mutex] isItemNotified: node_n0xn1u0204:subscribe_node:success :: true

2022-08-23 23:02:19 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-23 23:02:19 | command: <data><node>node_n0xn1u0204</node><expire-at>2022-08-24T06:02:24Z</expire-at><entry><content>content_s30dc80208</content></entry></data>

2022-08-23 23:02:19 | target: http://localhost:8088

2022-08-23 23:02:19 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-08-23 23:02:19 | entity: <data><node>node_n0xn1u0204</node><expire-at>2022-08-24T06:02:24Z</expire-at><entry><content>content_s30dc80208</content></entry></data>

2022-08-23 23:02:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 24 Aug 2022 06:02:19 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-23 23:02:19 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6dd85e81-a57d-4657-be02-291b59e415fc</value></item-id></result>

2022-08-23 23:02:19 | contains: true

2022-08-23 23:02:27 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-08-23 23:02:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-08-23 23:02:27 | [Mutex] waiting for: [user_regularfg4xtt0203@test-domain.com:message:received:content_s30dc80208]

2022-08-23 23:02:42 | [Mutex] timeout. Not received [user_regularfg4xtt0203@test-domain.com:message:received:content_s30dc80208]

2022-08-23 23:02:42 | [Mutex] received everything.

2022-08-23 23:02:42 | [Mutex] isItemNotified: user_regularfg4xtt0203@test-domain.com:message:received:content_s30dc80208 :: false

2022-08-23 23:02:42 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_s30dc80208 :: true