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

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.626s
2022-10-06 22:36:04 |

2022-10-06 22:36:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-10-06 22:36:04 | ------------------------------------

2022-10-06 22:36:04 | [Mutex] isItemNotified: node_jrp7x00204:exists :: false

2022-10-06 22:36:04 | [Mutex] waiting for: [node_jrp7x00204:create_node]

2022-10-06 22:36:04 | [Mutex] received everything.

2022-10-06 22:36:04 | [Mutex] isItemNotified: node_jrp7x00204:create_node:success :: true

2022-10-06 22:36:04 | [Mutex] waiting for: [node_jrp7x00204:subscribe_node]

2022-10-06 22:36:04 | [Mutex] waiting for: [node_jrp7x00204:subscribe_node]

2022-10-06 22:36:04 | [Mutex] received everything.

2022-10-06 22:36:04 | [Mutex] isItemNotified: node_jrp7x00204:subscribe_node:success :: true

2022-10-06 22:36:04 |


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


2022-10-06 22:36:04 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-06 22:36:04 | command: <data><node>node_jrp7x00204</node><entry><content>content_40jxyg0205</content></entry></data>

2022-10-06 22:36:04 | target: http://localhost:8088

2022-10-06 22:36:04 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-10-06 22:36:04 | entity: <data><node>node_jrp7x00204</node><entry><content>content_40jxyg0205</content></entry></data>

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

2022-10-06 22:36:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>410c72a4-5c9e-47d5-abf1-f2593eb2c386</value></item-id></result>

2022-10-06 22:36:04 | contains: true

2022-10-06 22:36:04 | [Mutex] waiting for: [user_regular95e5gj0203@test-domain.com:message:received:content_40jxyg0205]

2022-10-06 22:36:04 | [Mutex] received everything.

2022-10-06 22:36:04 | [Mutex] isItemNotified: user_regular95e5gj0203@test-domain.com:message:received:content_40jxyg0205 :: true

2022-10-06 22:36:04 |


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


2022-10-06 22:36:04 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-06 22:36:04 | command: <data><node>node_jrp7x00204</node><expire-at>2022-10-07T05:35:59Z</expire-at><entry><content>content_p7qs2b0206</content></entry></data>

2022-10-06 22:36:04 | target: http://localhost:8088

2022-10-06 22:36:04 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-10-06 22:36:04 | entity: <data><node>node_jrp7x00204</node><expire-at>2022-10-07T05:35:59Z</expire-at><entry><content>content_p7qs2b0206</content></entry></data>

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

2022-10-06 22:36:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6f1ca63b-048d-48e0-92a8-8cc1aa2ebe28</value></item-id></result>

2022-10-06 22:36:04 | contains: true

2022-10-06 22:36:04 | [Mutex] waiting for: [user_regular95e5gj0203@test-domain.com:message:received:content_p7qs2b0206]

2022-10-06 22:36:19 | [Mutex] timeout. Not received [user_regular95e5gj0203@test-domain.com:message:received:content_p7qs2b0206]

2022-10-06 22:36:19 | [Mutex] isItemNotified: user_regular95e5gj0203@test-domain.com:message:received:content_p7qs2b0206 :: false

2022-10-06 22:36:19 |


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


2022-10-06 22:36:19 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-06 22:36:19 | command: <data><node>node_jrp7x00204</node><entry><content>content_5otstt0207</content></entry></data>

2022-10-06 22:36:19 | target: http://localhost:8088

2022-10-06 22:36:19 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-10-06 22:36:19 | entity: <data><node>node_jrp7x00204</node><entry><content>content_5otstt0207</content></entry></data>

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

2022-10-06 22:36:19 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2d650047-e022-4d38-b0c4-add57e2be65c</value></item-id></result>

2022-10-06 22:36:19 | contains: true

2022-10-06 22:36:24 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-10-06 22:36:24 | [Mutex] waiting for: [user_regular95e5gj0203@test-domain.com:message:received:content_5otstt0207]

2022-10-06 22:36:24 | [Mutex] waiting for: [user_regular95e5gj0203@test-domain.com:message:received:content_5otstt0207]

2022-10-06 22:36:24 | [Mutex] received everything.

2022-10-06 22:36:24 | [Mutex] isItemNotified: user_regular95e5gj0203@test-domain.com:message:received:content_5otstt0207 :: true

2022-10-06 22:36:24 |


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


2022-10-06 22:36:24 | [Mutex] received everything.

2022-10-06 22:36:24 | [Mutex] isItemNotified: node_jrp7x00204:subscribe_node:success :: true

2022-10-06 22:36:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-10-06 22:36:24 | command: <data><node>node_jrp7x00204</node><expire-at>2022-10-07T05:36:29Z</expire-at><entry><content>content_lkcqnp0208</content></entry></data>

2022-10-06 22:36:24 | target: http://localhost:8088

2022-10-06 22:36:24 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-10-06 22:36:24 | entity: <data><node>node_jrp7x00204</node><expire-at>2022-10-07T05:36:29Z</expire-at><entry><content>content_lkcqnp0208</content></entry></data>

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

2022-10-06 22:36:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>833ee00f-81b8-409b-9744-9f5037f75a47</value></item-id></result>

2022-10-06 22:36:24 | contains: true

2022-10-06 22:36:32 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-10-06 22:36:32 | [Mutex] waiting for: [user_regular95e5gj0203@test-domain.com:message:received:content_lkcqnp0208]

2022-10-06 22:36:47 | [Mutex] timeout. Not received [user_regular95e5gj0203@test-domain.com:message:received:content_lkcqnp0208]

2022-10-06 22:36:47 | [Mutex] received everything.

2022-10-06 22:36:47 | [Mutex] isItemNotified: user_regular95e5gj0203@test-domain.com:message:received:content_lkcqnp0208 :: false

2022-10-06 22:36:47 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_lkcqnp0208 :: true