Generated by TestNG with ReportNG at 03:30 PST on Monday 26 December 2022
root@ed1b7dd8a1b3 / 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.882s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.568s
2022-12-26 03:45:30 |

2022-12-26 03:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-26 03:45:30 | ------------------------------------

2022-12-26 03:45:30 | [Mutex] isItemNotified: node_somc4e0204:exists :: false

2022-12-26 03:45:30 | [Mutex] waiting for: [node_somc4e0204:create_node]

2022-12-26 03:45:30 | [Mutex] waiting for: [node_somc4e0204:create_node]

2022-12-26 03:45:30 | [Mutex] received everything.

2022-12-26 03:45:30 | [Mutex] isItemNotified: node_somc4e0204:create_node:success :: true

2022-12-26 03:45:30 | [Mutex] waiting for: [node_somc4e0204:subscribe_node]

2022-12-26 03:45:30 | [Mutex] waiting for: [node_somc4e0204:subscribe_node]

2022-12-26 03:45:30 | [Mutex] received everything.

2022-12-26 03:45:30 | [Mutex] isItemNotified: node_somc4e0204:subscribe_node:success :: true

2022-12-26 03:45:30 |


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


2022-12-26 03:45:30 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-26 03:45:30 | command: <data><node>node_somc4e0204</node><entry><content>content_g8852u0205</content></entry></data>

2022-12-26 03:45:30 | target: http://localhost:8088

2022-12-26 03:45:30 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-26 03:45:30 | entity: <data><node>node_somc4e0204</node><entry><content>content_g8852u0205</content></entry></data>

2022-12-26 03:45:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 26 Dec 2022 11:45:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-26 03:45:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>aea2b233-f396-428e-885a-2a45421387ac</value></item-id></result>

2022-12-26 03:45:30 | contains: true

2022-12-26 03:45:30 | [Mutex] waiting for: [user_regular3hq5cq0203@test-domain.com:message:received:content_g8852u0205]

2022-12-26 03:45:30 | [Mutex] received everything.

2022-12-26 03:45:30 | [Mutex] isItemNotified: user_regular3hq5cq0203@test-domain.com:message:received:content_g8852u0205 :: true

2022-12-26 03:45:30 |


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


2022-12-26 03:45:30 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-26 03:45:30 | command: <data><node>node_somc4e0204</node><expire-at>2022-12-26T11:45:25Z</expire-at><entry><content>content_64y2rb0206</content></entry></data>

2022-12-26 03:45:30 | target: http://localhost:8088

2022-12-26 03:45:30 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-26 03:45:30 | entity: <data><node>node_somc4e0204</node><expire-at>2022-12-26T11:45:25Z</expire-at><entry><content>content_64y2rb0206</content></entry></data>

2022-12-26 03:45:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 26 Dec 2022 11:45:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-26 03:45:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c6f23a4c-8ece-4397-bd15-a339f837f29d</value></item-id></result>

2022-12-26 03:45:30 | contains: true

2022-12-26 03:45:30 | [Mutex] waiting for: [user_regular3hq5cq0203@test-domain.com:message:received:content_64y2rb0206]

2022-12-26 03:45:45 | [Mutex] timeout. Not received [user_regular3hq5cq0203@test-domain.com:message:received:content_64y2rb0206]

2022-12-26 03:45:45 | [Mutex] isItemNotified: user_regular3hq5cq0203@test-domain.com:message:received:content_64y2rb0206 :: false

2022-12-26 03:45:45 |


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


2022-12-26 03:45:45 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-26 03:45:45 | command: <data><node>node_somc4e0204</node><entry><content>content_frmaza0207</content></entry></data>

2022-12-26 03:45:45 | target: http://localhost:8088

2022-12-26 03:45:45 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-26 03:45:45 | entity: <data><node>node_somc4e0204</node><entry><content>content_frmaza0207</content></entry></data>

2022-12-26 03:45:45 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 26 Dec 2022 11:45:45 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-26 03:45:45 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>69e9ef2e-bb69-4c9e-a0e0-1e369a924b14</value></item-id></result>

2022-12-26 03:45:45 | contains: true

2022-12-26 03:45:50 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-26 03:45:50 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-12-26 03:45:50 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-26 03:45:51 | [Mutex] waiting for: [user_regular3hq5cq0203@test-domain.com:message:received:content_frmaza0207]

2022-12-26 03:45:51 | [Mutex] received everything.

2022-12-26 03:45:51 | [Mutex] isItemNotified: user_regular3hq5cq0203@test-domain.com:message:received:content_frmaza0207 :: true

2022-12-26 03:45:51 |


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


2022-12-26 03:45:51 | [Mutex] received everything.

2022-12-26 03:45:51 | [Mutex] isItemNotified: node_somc4e0204:subscribe_node:success :: true

2022-12-26 03:45:51 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-26 03:45:51 | command: <data><node>node_somc4e0204</node><expire-at>2022-12-26T11:45:56Z</expire-at><entry><content>content_eyww100208</content></entry></data>

2022-12-26 03:45:51 | target: http://localhost:8088

2022-12-26 03:45:51 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-26 03:45:51 | entity: <data><node>node_somc4e0204</node><expire-at>2022-12-26T11:45:56Z</expire-at><entry><content>content_eyww100208</content></entry></data>

2022-12-26 03:45:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 26 Dec 2022 11:45:51 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-26 03:45:51 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a286bf10-6f18-49b8-9d23-86e077728aed</value></item-id></result>

2022-12-26 03:45:51 | contains: true

2022-12-26 03:45:59 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-26 03:45:59 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-12-26 03:45:59 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-26 03:45:59 | [Mutex] waiting for: [user_regular3hq5cq0203@test-domain.com:message:received:content_eyww100208]

2022-12-26 03:45:59 | [Mutex] waiting for: [user_regular3hq5cq0203@test-domain.com:message:received:content_eyww100208]

2022-12-26 03:45:59 | [Mutex] waiting for: [user_regular3hq5cq0203@test-domain.com:message:received:content_eyww100208]

2022-12-26 03:46:14 | [Mutex] timeout. Not received [user_regular3hq5cq0203@test-domain.com:message:received:content_eyww100208]

2022-12-26 03:46:14 | [Mutex] received everything.

2022-12-26 03:46:14 | [Mutex] isItemNotified: user_regular3hq5cq0203@test-domain.com:message:received:content_eyww100208 :: false

2022-12-26 03:46:14 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_eyww100208 :: true