Generated by TestNG with ReportNG at 22:48 PDT on Monday 26 September 2022
root@7c41cec37518 / 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.853s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.621s
2022-09-26 23:03:46 |

2022-09-26 23:03:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-09-26 23:03:46 | ------------------------------------

2022-09-26 23:03:46 | [Mutex] isItemNotified: node_stonjd0204:exists :: false

2022-09-26 23:03:46 | [Mutex] waiting for: [node_stonjd0204:create_node]

2022-09-26 23:03:46 | [Mutex] received everything.

2022-09-26 23:03:46 | [Mutex] isItemNotified: node_stonjd0204:create_node:success :: true

2022-09-26 23:03:46 | [Mutex] waiting for: [node_stonjd0204:subscribe_node]

2022-09-26 23:03:46 | [Mutex] received everything.

2022-09-26 23:03:46 | [Mutex] isItemNotified: node_stonjd0204:subscribe_node:success :: true

2022-09-26 23:03:46 |


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


2022-09-26 23:03:46 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-26 23:03:46 | command: <data><node>node_stonjd0204</node><entry><content>content_18yfvv0205</content></entry></data>

2022-09-26 23:03:46 | target: http://localhost:8088

2022-09-26 23:03:46 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-09-26 23:03:46 | entity: <data><node>node_stonjd0204</node><entry><content>content_18yfvv0205</content></entry></data>

2022-09-26 23:03:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 27 Sep 2022 06:03:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-26 23:03:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>78ba0dc1-23fe-43de-9117-ff75fac7a192</value></item-id></result>

2022-09-26 23:03:46 | contains: true

2022-09-26 23:03:46 | [Mutex] received everything.

2022-09-26 23:03:46 | [Mutex] isItemNotified: user_regularxnsrkg0203@test-domain.com:message:received:content_18yfvv0205 :: true

2022-09-26 23:03:46 |


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


2022-09-26 23:03:46 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-26 23:03:46 | command: <data><node>node_stonjd0204</node><expire-at>2022-09-27T06:03:41Z</expire-at><entry><content>content_7er3bw0206</content></entry></data>

2022-09-26 23:03:46 | target: http://localhost:8088

2022-09-26 23:03:46 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-26 23:03:46 | entity: <data><node>node_stonjd0204</node><expire-at>2022-09-27T06:03:41Z</expire-at><entry><content>content_7er3bw0206</content></entry></data>

2022-09-26 23:03:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 27 Sep 2022 06:03:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-26 23:03:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b9898513-c8e0-48c5-b1d3-05bbfe27c97b</value></item-id></result>

2022-09-26 23:03:46 | contains: true

2022-09-26 23:03:46 | [Mutex] waiting for: [user_regularxnsrkg0203@test-domain.com:message:received:content_7er3bw0206]

2022-09-26 23:04:01 | [Mutex] timeout. Not received [user_regularxnsrkg0203@test-domain.com:message:received:content_7er3bw0206]

2022-09-26 23:04:01 | [Mutex] isItemNotified: user_regularxnsrkg0203@test-domain.com:message:received:content_7er3bw0206 :: false

2022-09-26 23:04:01 |


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


2022-09-26 23:04:01 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-26 23:04:01 | command: <data><node>node_stonjd0204</node><entry><content>content_cg69lo0207</content></entry></data>

2022-09-26 23:04:01 | target: http://localhost:8088

2022-09-26 23:04:01 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-09-26 23:04:01 | entity: <data><node>node_stonjd0204</node><entry><content>content_cg69lo0207</content></entry></data>

2022-09-26 23:04:01 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 27 Sep 2022 06:04:01 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-26 23:04:01 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>f6d8cfef-6507-4b3d-94ad-082905686a88</value></item-id></result>

2022-09-26 23:04:01 | contains: true

2022-09-26 23:04:06 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-09-26 23:04:06 | [Mutex] waiting for: [user_regularxnsrkg0203@test-domain.com:message:received:content_cg69lo0207]

2022-09-26 23:04:06 | [Mutex] received everything.

2022-09-26 23:04:06 | [Mutex] isItemNotified: user_regularxnsrkg0203@test-domain.com:message:received:content_cg69lo0207 :: true

2022-09-26 23:04:06 |


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


2022-09-26 23:04:06 | [Mutex] received everything.

2022-09-26 23:04:06 | [Mutex] isItemNotified: node_stonjd0204:subscribe_node:success :: true

2022-09-26 23:04:06 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-09-26 23:04:06 | command: <data><node>node_stonjd0204</node><expire-at>2022-09-27T06:04:11Z</expire-at><entry><content>content_wkdzv40208</content></entry></data>

2022-09-26 23:04:06 | target: http://localhost:8088

2022-09-26 23:04:06 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-09-26 23:04:06 | entity: <data><node>node_stonjd0204</node><expire-at>2022-09-27T06:04:11Z</expire-at><entry><content>content_wkdzv40208</content></entry></data>

2022-09-26 23:04:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 27 Sep 2022 06:04:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-09-26 23:04:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>02c777f4-bc8d-4e89-ad3f-b281406c904d</value></item-id></result>

2022-09-26 23:04:06 | contains: true

2022-09-26 23:04:14 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-09-26 23:04:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-09-26 23:04:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-09-26 23:04:14 | [Mutex] waiting for: [user_regularxnsrkg0203@test-domain.com:message:received:content_wkdzv40208]

2022-09-26 23:04:29 | [Mutex] timeout. Not received [user_regularxnsrkg0203@test-domain.com:message:received:content_wkdzv40208]

2022-09-26 23:04:29 | [Mutex] received everything.

2022-09-26 23:04:29 | [Mutex] isItemNotified: user_regularxnsrkg0203@test-domain.com:message:received:content_wkdzv40208 :: false

2022-09-26 23:04:29 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_wkdzv40208 :: true