Generated by TestNG with ReportNG at 22:17 PDT on Friday 22 July 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.864s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.608s
2022-07-22 22:32:18 |

2022-07-22 22:32:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-22 22:32:18 | ------------------------------------

2022-07-22 22:32:18 | [Mutex] isItemNotified: node_e23o820204:exists :: false

2022-07-22 22:32:18 | [Mutex] waiting for: [node_e23o820204:create_node]

2022-07-22 22:32:18 | [Mutex] received everything.

2022-07-22 22:32:18 | [Mutex] isItemNotified: node_e23o820204:create_node:success :: true

2022-07-22 22:32:18 | [Mutex] waiting for: [node_e23o820204:subscribe_node]

2022-07-22 22:32:18 | [Mutex] received everything.

2022-07-22 22:32:18 | [Mutex] isItemNotified: node_e23o820204:subscribe_node:success :: true

2022-07-22 22:32:18 |


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


2022-07-22 22:32:18 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-22 22:32:18 | command: <data><node>node_e23o820204</node><entry><content>content_r5bvsf0205</content></entry></data>

2022-07-22 22:32:18 | target: http://localhost:8088

2022-07-22 22:32:18 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-22 22:32:18 | entity: <data><node>node_e23o820204</node><entry><content>content_r5bvsf0205</content></entry></data>

2022-07-22 22:32:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Jul 2022 05:32:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-22 22:32:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a138daeb-bd00-4ab6-be16-4c95184a3454</value></item-id></result>

2022-07-22 22:32:18 | contains: true

2022-07-22 22:32:18 | [Mutex] received everything.

2022-07-22 22:32:18 | [Mutex] isItemNotified: user_regularx2b6av0203@test-domain.com:message:received:content_r5bvsf0205 :: true

2022-07-22 22:32:18 |


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


2022-07-22 22:32:18 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-22 22:32:18 | command: <data><node>node_e23o820204</node><expire-at>2022-07-23T05:32:13Z</expire-at><entry><content>content_iwqxvw0206</content></entry></data>

2022-07-22 22:32:18 | target: http://localhost:8088

2022-07-22 22:32:18 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-22 22:32:18 | entity: <data><node>node_e23o820204</node><expire-at>2022-07-23T05:32:13Z</expire-at><entry><content>content_iwqxvw0206</content></entry></data>

2022-07-22 22:32:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Jul 2022 05:32:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-22 22:32:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>19bd468a-099c-4883-b8c0-d1be93bddba7</value></item-id></result>

2022-07-22 22:32:18 | contains: true

2022-07-22 22:32:18 | [Mutex] waiting for: [user_regularx2b6av0203@test-domain.com:message:received:content_iwqxvw0206]

2022-07-22 22:32:33 | [Mutex] timeout. Not received [user_regularx2b6av0203@test-domain.com:message:received:content_iwqxvw0206]

2022-07-22 22:32:33 | [Mutex] isItemNotified: user_regularx2b6av0203@test-domain.com:message:received:content_iwqxvw0206 :: false

2022-07-22 22:32:33 |


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


2022-07-22 22:32:33 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-22 22:32:33 | command: <data><node>node_e23o820204</node><entry><content>content_nmbgfu0207</content></entry></data>

2022-07-22 22:32:33 | target: http://localhost:8088

2022-07-22 22:32:33 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-22 22:32:33 | entity: <data><node>node_e23o820204</node><entry><content>content_nmbgfu0207</content></entry></data>

2022-07-22 22:32:33 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Jul 2022 05:32:33 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-22 22:32:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6682db1b-b083-4554-81b2-4c7f0edf1e3b</value></item-id></result>

2022-07-22 22:32:33 | contains: true

2022-07-22 22:32:38 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-22 22:32:39 | [Mutex] waiting for: [user_regularx2b6av0203@test-domain.com:message:received:content_nmbgfu0207]

2022-07-22 22:32:39 | [Mutex] received everything.

2022-07-22 22:32:39 | [Mutex] isItemNotified: user_regularx2b6av0203@test-domain.com:message:received:content_nmbgfu0207 :: true

2022-07-22 22:32:39 |


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


2022-07-22 22:32:39 | [Mutex] received everything.

2022-07-22 22:32:39 | [Mutex] isItemNotified: node_e23o820204:subscribe_node:success :: true

2022-07-22 22:32:39 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-22 22:32:39 | command: <data><node>node_e23o820204</node><expire-at>2022-07-23T05:32:44Z</expire-at><entry><content>content_cenfez0208</content></entry></data>

2022-07-22 22:32:39 | target: http://localhost:8088

2022-07-22 22:32:39 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-22 22:32:39 | entity: <data><node>node_e23o820204</node><expire-at>2022-07-23T05:32:44Z</expire-at><entry><content>content_cenfez0208</content></entry></data>

2022-07-22 22:32:39 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Jul 2022 05:32:39 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-22 22:32:39 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>22821fa3-fadc-4a41-9860-33ea5f05020b</value></item-id></result>

2022-07-22 22:32:39 | contains: true

2022-07-22 22:32:47 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-22 22:32:47 | [Mutex] waiting for: [user_regularx2b6av0203@test-domain.com:message:received:content_cenfez0208]

2022-07-22 22:32:47 | [Mutex] waiting for: [user_regularx2b6av0203@test-domain.com:message:received:content_cenfez0208]

2022-07-22 22:32:47 | [Mutex] waiting for: [user_regularx2b6av0203@test-domain.com:message:received:content_cenfez0208]

2022-07-22 22:33:02 | [Mutex] timeout. Not received [user_regularx2b6av0203@test-domain.com:message:received:content_cenfez0208]

2022-07-22 22:33:02 | [Mutex] received everything.

2022-07-22 22:33:02 | [Mutex] isItemNotified: user_regularx2b6av0203@test-domain.com:message:received:content_cenfez0208 :: false

2022-07-22 22:33:02 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_cenfez0208 :: true