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

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.577s
2022-10-10 22:36:00 |

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

2022-10-10 22:36:00 | ------------------------------------

2022-10-10 22:36:00 | [Mutex] isItemNotified: node_6w68u20204:exists :: false

2022-10-10 22:36:00 | [Mutex] waiting for: [node_6w68u20204:create_node]

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

2022-10-10 22:36:00 | [Mutex] isItemNotified: node_6w68u20204:create_node:success :: true

2022-10-10 22:36:00 | [Mutex] waiting for: [node_6w68u20204:subscribe_node]

2022-10-10 22:36:00 | [Mutex] waiting for: [node_6w68u20204:subscribe_node]

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

2022-10-10 22:36:00 | [Mutex] isItemNotified: node_6w68u20204:subscribe_node:success :: true

2022-10-10 22:36:00 |


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


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

2022-10-10 22:36:00 | command: <data><node>node_6w68u20204</node><entry><content>content_umtp140205</content></entry></data>

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

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

2022-10-10 22:36:00 | entity: <data><node>node_6w68u20204</node><entry><content>content_umtp140205</content></entry></data>

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

2022-10-10 22:36:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>38712f9a-60ca-41c6-a8a4-a9238f239cd8</value></item-id></result>

2022-10-10 22:36:00 | contains: true

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

2022-10-10 22:36:00 | [Mutex] isItemNotified: user_regular3hl9mg0203@test-domain.com:message:received:content_umtp140205 :: true

2022-10-10 22:36:00 |


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


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

2022-10-10 22:36:00 | command: <data><node>node_6w68u20204</node><expire-at>2022-10-11T05:35:55Z</expire-at><entry><content>content_v330f10206</content></entry></data>

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

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

2022-10-10 22:36:00 | entity: <data><node>node_6w68u20204</node><expire-at>2022-10-11T05:35:55Z</expire-at><entry><content>content_v330f10206</content></entry></data>

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

2022-10-10 22:36:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f759a0f9-c4d5-4db5-b5b8-7e838d59c1ca</value></item-id></result>

2022-10-10 22:36:00 | contains: true

2022-10-10 22:36:00 | [Mutex] waiting for: [user_regular3hl9mg0203@test-domain.com:message:received:content_v330f10206]

2022-10-10 22:36:15 | [Mutex] timeout. Not received [user_regular3hl9mg0203@test-domain.com:message:received:content_v330f10206]

2022-10-10 22:36:15 | [Mutex] isItemNotified: user_regular3hl9mg0203@test-domain.com:message:received:content_v330f10206 :: false

2022-10-10 22:36:15 |


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


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

2022-10-10 22:36:15 | command: <data><node>node_6w68u20204</node><entry><content>content_5uljrw0207</content></entry></data>

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

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

2022-10-10 22:36:15 | entity: <data><node>node_6w68u20204</node><entry><content>content_5uljrw0207</content></entry></data>

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

2022-10-10 22:36:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>199e6a6b-5849-437e-84d2-fe2b6384225a</value></item-id></result>

2022-10-10 22:36:15 | contains: true

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

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

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

2022-10-10 22:36:20 | [Mutex] waiting for: [user_regular3hl9mg0203@test-domain.com:message:received:content_5uljrw0207]

2022-10-10 22:36:20 | [Mutex] waiting for: [user_regular3hl9mg0203@test-domain.com:message:received:content_5uljrw0207]

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

2022-10-10 22:36:20 | [Mutex] isItemNotified: user_regular3hl9mg0203@test-domain.com:message:received:content_5uljrw0207 :: true

2022-10-10 22:36:20 |


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


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

2022-10-10 22:36:20 | [Mutex] isItemNotified: node_6w68u20204:subscribe_node:success :: true

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

2022-10-10 22:36:20 | command: <data><node>node_6w68u20204</node><expire-at>2022-10-11T05:36:25Z</expire-at><entry><content>content_eigfnd0208</content></entry></data>

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

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

2022-10-10 22:36:20 | entity: <data><node>node_6w68u20204</node><expire-at>2022-10-11T05:36:25Z</expire-at><entry><content>content_eigfnd0208</content></entry></data>

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

2022-10-10 22:36:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e22262ab-3031-4b1d-a09f-655512142cbf</value></item-id></result>

2022-10-10 22:36:20 | contains: true

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

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

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

2022-10-10 22:36:28 | [Mutex] waiting for: [user_regular3hl9mg0203@test-domain.com:message:received:content_eigfnd0208]

2022-10-10 22:36:28 | [Mutex] waiting for: [user_regular3hl9mg0203@test-domain.com:message:received:content_eigfnd0208]

2022-10-10 22:36:43 | [Mutex] timeout. Not received [user_regular3hl9mg0203@test-domain.com:message:received:content_eigfnd0208]

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

2022-10-10 22:36:43 | [Mutex] isItemNotified: user_regular3hl9mg0203@test-domain.com:message:received:content_eigfnd0208 :: false

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