Generated by TestNG with ReportNG at 22:50 PDT on Sunday 07 August 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.795s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.576s
2022-08-07 23:05:12 |

2022-08-07 23:05:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-08-07 23:05:12 | ------------------------------------

2022-08-07 23:05:12 | [Mutex] isItemNotified: node_zg7igu0204:exists :: false

2022-08-07 23:05:12 | [Mutex] waiting for: [node_zg7igu0204:create_node]

2022-08-07 23:05:12 | [Mutex] received everything.

2022-08-07 23:05:12 | [Mutex] isItemNotified: node_zg7igu0204:create_node:success :: true

2022-08-07 23:05:12 | [Mutex] waiting for: [node_zg7igu0204:subscribe_node]

2022-08-07 23:05:12 | [Mutex] waiting for: [node_zg7igu0204:subscribe_node]

2022-08-07 23:05:12 | [Mutex] received everything.

2022-08-07 23:05:12 | [Mutex] isItemNotified: node_zg7igu0204:subscribe_node:success :: true

2022-08-07 23:05:12 |


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


2022-08-07 23:05:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-07 23:05:12 | command: <data><node>node_zg7igu0204</node><entry><content>content_ftr4oc0205</content></entry></data>

2022-08-07 23:05:12 | target: http://localhost:8088

2022-08-07 23:05:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-08-07 23:05:12 | entity: <data><node>node_zg7igu0204</node><entry><content>content_ftr4oc0205</content></entry></data>

2022-08-07 23:05:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 08 Aug 2022 06:05:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-07 23:05:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3c04fd0a-af19-4944-a8b0-3f9372af1c4f</value></item-id></result>

2022-08-07 23:05:12 | contains: true

2022-08-07 23:05:12 | [Mutex] received everything.

2022-08-07 23:05:12 | [Mutex] isItemNotified: user_regular8st7oy0203@test-domain.com:message:received:content_ftr4oc0205 :: true

2022-08-07 23:05:12 |


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


2022-08-07 23:05:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-07 23:05:12 | command: <data><node>node_zg7igu0204</node><expire-at>2022-08-08T06:05:07Z</expire-at><entry><content>content_n3grlp0206</content></entry></data>

2022-08-07 23:05:12 | target: http://localhost:8088

2022-08-07 23:05:12 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-08-07 23:05:12 | entity: <data><node>node_zg7igu0204</node><expire-at>2022-08-08T06:05:07Z</expire-at><entry><content>content_n3grlp0206</content></entry></data>

2022-08-07 23:05:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 08 Aug 2022 06:05:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-07 23:05:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>de276614-1b60-4101-92c6-33aaa2f3c8fd</value></item-id></result>

2022-08-07 23:05:12 | contains: true

2022-08-07 23:05:12 | [Mutex] waiting for: [user_regular8st7oy0203@test-domain.com:message:received:content_n3grlp0206]

2022-08-07 23:05:27 | [Mutex] timeout. Not received [user_regular8st7oy0203@test-domain.com:message:received:content_n3grlp0206]

2022-08-07 23:05:27 | [Mutex] isItemNotified: user_regular8st7oy0203@test-domain.com:message:received:content_n3grlp0206 :: false

2022-08-07 23:05:27 |


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


2022-08-07 23:05:27 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-07 23:05:27 | command: <data><node>node_zg7igu0204</node><entry><content>content_ubyf380207</content></entry></data>

2022-08-07 23:05:27 | target: http://localhost:8088

2022-08-07 23:05:27 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-08-07 23:05:27 | entity: <data><node>node_zg7igu0204</node><entry><content>content_ubyf380207</content></entry></data>

2022-08-07 23:05:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 08 Aug 2022 06:05:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-07 23:05:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3d935cde-5afa-4259-9db6-6e4cc398c2f5</value></item-id></result>

2022-08-07 23:05:27 | contains: true

2022-08-07 23:05:32 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-08-07 23:05:32 | [Mutex] waiting for: [user_regular8st7oy0203@test-domain.com:message:received:content_ubyf380207]

2022-08-07 23:05:32 | [Mutex] waiting for: [user_regular8st7oy0203@test-domain.com:message:received:content_ubyf380207]

2022-08-07 23:05:32 | [Mutex] received everything.

2022-08-07 23:05:32 | [Mutex] isItemNotified: user_regular8st7oy0203@test-domain.com:message:received:content_ubyf380207 :: true

2022-08-07 23:05:32 |


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


2022-08-07 23:05:32 | [Mutex] received everything.

2022-08-07 23:05:32 | [Mutex] isItemNotified: node_zg7igu0204:subscribe_node:success :: true

2022-08-07 23:05:32 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-08-07 23:05:32 | command: <data><node>node_zg7igu0204</node><expire-at>2022-08-08T06:05:37Z</expire-at><entry><content>content_u5dkq50208</content></entry></data>

2022-08-07 23:05:32 | target: http://localhost:8088

2022-08-07 23:05:32 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-08-07 23:05:32 | entity: <data><node>node_zg7igu0204</node><expire-at>2022-08-08T06:05:37Z</expire-at><entry><content>content_u5dkq50208</content></entry></data>

2022-08-07 23:05:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 08 Aug 2022 06:05:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-08-07 23:05:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>20808aa1-7dc1-4587-8302-703a150afe95</value></item-id></result>

2022-08-07 23:05:32 | contains: true

2022-08-07 23:05:40 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-08-07 23:05:40 | [Mutex] waiting for: [user_regular8st7oy0203@test-domain.com:message:received:content_u5dkq50208]

2022-08-07 23:05:55 | [Mutex] timeout. Not received [user_regular8st7oy0203@test-domain.com:message:received:content_u5dkq50208]

2022-08-07 23:05:55 | [Mutex] received everything.

2022-08-07 23:05:55 | [Mutex] isItemNotified: user_regular8st7oy0203@test-domain.com:message:received:content_u5dkq50208 :: false

2022-08-07 23:05:55 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_u5dkq50208 :: true