Generated by TestNG with ReportNG at 22:48 PDT on Friday 17 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Item publication on PubSub node with message expiration using REST API - #2959

Suites · Log Output

Test duration : 44.821s

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

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

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

2022-06-17 23:10:13 | [Mutex] isItemNotified: node_79uwja0204:exists :: false

2022-06-17 23:10:13 | [Mutex] waiting for: [node_79uwja0204:create_node]

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

2022-06-17 23:10:13 | [Mutex] isItemNotified: node_79uwja0204:create_node:success :: true

2022-06-17 23:10:13 | [Mutex] waiting for: [node_79uwja0204:subscribe_node]

2022-06-17 23:10:13 | [Mutex] waiting for: [node_79uwja0204:subscribe_node]

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

2022-06-17 23:10:13 | [Mutex] isItemNotified: node_79uwja0204:subscribe_node:success :: true

2022-06-17 23:10:13 |


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


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

2022-06-17 23:10:13 | command: <data><node>node_79uwja0204</node><entry><content>content_jg6qu0205</content></entry></data>

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

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

2022-06-17 23:10:13 | entity: <data><node>node_79uwja0204</node><entry><content>content_jg6qu0205</content></entry></data>

2022-06-17 23:10:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 18 Jun 2022 06:10:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-17 23:10:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>05e8ea0e-2eb3-4833-9b6e-b23732165908</value></item-id></result>

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

2022-06-17 23:10:13 | [Mutex] waiting for: [user_regulartdkdu0203@test-domain.com:message:received:content_jg6qu0205]

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

2022-06-17 23:10:13 | [Mutex] isItemNotified: user_regulartdkdu0203@test-domain.com:message:received:content_jg6qu0205 :: true

2022-06-17 23:10:13 |


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


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

2022-06-17 23:10:13 | command: <data><node>node_79uwja0204</node><expire-at>2022-06-18T06:10:08Z</expire-at><entry><content>content_iuoti90206</content></entry></data>

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

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

2022-06-17 23:10:13 | entity: <data><node>node_79uwja0204</node><expire-at>2022-06-18T06:10:08Z</expire-at><entry><content>content_iuoti90206</content></entry></data>

2022-06-17 23:10:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 18 Jun 2022 06:10:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-17 23:10:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>eb69b990-35af-4289-9f81-de6b97d3c3a0</value></item-id></result>

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

2022-06-17 23:10:13 | [Mutex] waiting for: [user_regulartdkdu0203@test-domain.com:message:received:content_iuoti90206]

2022-06-17 23:10:28 | [Mutex] timeout. Not received [user_regulartdkdu0203@test-domain.com:message:received:content_iuoti90206]

2022-06-17 23:10:28 | [Mutex] isItemNotified: user_regulartdkdu0203@test-domain.com:message:received:content_iuoti90206 :: false

2022-06-17 23:10:28 |


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


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

2022-06-17 23:10:28 | command: <data><node>node_79uwja0204</node><entry><content>content_g5mznt0207</content></entry></data>

2022-06-17 23:10:28 | target: http://localhost:8088

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

2022-06-17 23:10:28 | entity: <data><node>node_79uwja0204</node><entry><content>content_g5mznt0207</content></entry></data>

2022-06-17 23:10:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 18 Jun 2022 06:10:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-17 23:10:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>b770f5d6-db25-4866-b632-fc4d255a6347</value></item-id></result>

2022-06-17 23:10:28 | contains: true

2022-06-17 23:10:33 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-17 23:10:33 | [Mutex] waiting for: [user_regulartdkdu0203@test-domain.com:message:received:content_g5mznt0207]

2022-06-17 23:10:33 | [Mutex] waiting for: [user_regulartdkdu0203@test-domain.com:message:received:content_g5mznt0207]

2022-06-17 23:10:33 | [Mutex] received everything.

2022-06-17 23:10:33 | [Mutex] isItemNotified: user_regulartdkdu0203@test-domain.com:message:received:content_g5mznt0207 :: true

2022-06-17 23:10:33 |


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


2022-06-17 23:10:33 | [Mutex] received everything.

2022-06-17 23:10:33 | [Mutex] isItemNotified: node_79uwja0204:subscribe_node:success :: true

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

2022-06-17 23:10:33 | command: <data><node>node_79uwja0204</node><expire-at>2022-06-18T06:10:38Z</expire-at><entry><content>content_jyd70o0208</content></entry></data>

2022-06-17 23:10:33 | target: http://localhost:8088

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

2022-06-17 23:10:33 | entity: <data><node>node_79uwja0204</node><expire-at>2022-06-18T06:10:38Z</expire-at><entry><content>content_jyd70o0208</content></entry></data>

2022-06-17 23:10:33 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 18 Jun 2022 06:10:33 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-06-17 23:10:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>fd25ef6d-5a5b-459f-8eba-aa20ddbce51e</value></item-id></result>

2022-06-17 23:10:33 | contains: true

2022-06-17 23:10:41 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-06-17 23:10:42 | [Mutex] waiting for: [user_regulartdkdu0203@test-domain.com:message:received:content_jyd70o0208]

2022-06-17 23:10:42 | [Mutex] waiting for: [user_regulartdkdu0203@test-domain.com:message:received:content_jyd70o0208]

2022-06-17 23:10:57 | [Mutex] timeout. Not received [user_regulartdkdu0203@test-domain.com:message:received:content_jyd70o0208]

2022-06-17 23:10:57 | [Mutex] received everything.

2022-06-17 23:10:57 | [Mutex] isItemNotified: user_regulartdkdu0203@test-domain.com:message:received:content_jyd70o0208 :: false

2022-06-17 23:10:57 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_jyd70o0208 :: true