Generated by TestNG with ReportNG at 22:46 PDT on Sunday 17 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.860s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.631s
2022-07-17 23:01:40 |

2022-07-17 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-17 23:01:40 | ------------------------------------

2022-07-17 23:01:40 | [Mutex] isItemNotified: node_61cca60204:exists :: false

2022-07-17 23:01:40 | [Mutex] waiting for: [node_61cca60204:create_node]

2022-07-17 23:01:40 | [Mutex] received everything.

2022-07-17 23:01:40 | [Mutex] isItemNotified: node_61cca60204:create_node:success :: true

2022-07-17 23:01:40 | [Mutex] waiting for: [node_61cca60204:subscribe_node]

2022-07-17 23:01:40 | [Mutex] received everything.

2022-07-17 23:01:40 | [Mutex] isItemNotified: node_61cca60204:subscribe_node:success :: true

2022-07-17 23:01:40 |


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


2022-07-17 23:01:40 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-17 23:01:40 | command: <data><node>node_61cca60204</node><entry><content>content_ciu9io0205</content></entry></data>

2022-07-17 23:01:40 | target: http://localhost:8088

2022-07-17 23:01:40 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-17 23:01:40 | entity: <data><node>node_61cca60204</node><entry><content>content_ciu9io0205</content></entry></data>

2022-07-17 23:01:40 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 18 Jul 2022 06:01:40 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-17 23:01:40 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>f4d40850-014c-4e45-a422-dc061bd4ab4b</value></item-id></result>

2022-07-17 23:01:40 | contains: true

2022-07-17 23:01:40 | [Mutex] received everything.

2022-07-17 23:01:40 | [Mutex] isItemNotified: user_regular8pk3c60203@test-domain.com:message:received:content_ciu9io0205 :: true

2022-07-17 23:01:40 |


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


2022-07-17 23:01:40 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-17 23:01:40 | command: <data><node>node_61cca60204</node><expire-at>2022-07-18T06:01:35Z</expire-at><entry><content>content_g1vhty0206</content></entry></data>

2022-07-17 23:01:40 | target: http://localhost:8088

2022-07-17 23:01:40 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-17 23:01:40 | entity: <data><node>node_61cca60204</node><expire-at>2022-07-18T06:01:35Z</expire-at><entry><content>content_g1vhty0206</content></entry></data>

2022-07-17 23:01:40 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 18 Jul 2022 06:01:40 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-17 23:01:40 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5cf8e1b2-d351-4527-bbd7-31fddf91a428</value></item-id></result>

2022-07-17 23:01:40 | contains: true

2022-07-17 23:01:40 | [Mutex] waiting for: [user_regular8pk3c60203@test-domain.com:message:received:content_g1vhty0206]

2022-07-17 23:01:55 | [Mutex] timeout. Not received [user_regular8pk3c60203@test-domain.com:message:received:content_g1vhty0206]

2022-07-17 23:01:55 | [Mutex] isItemNotified: user_regular8pk3c60203@test-domain.com:message:received:content_g1vhty0206 :: false

2022-07-17 23:01:55 |


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


2022-07-17 23:01:55 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-17 23:01:55 | command: <data><node>node_61cca60204</node><entry><content>content_acshf90207</content></entry></data>

2022-07-17 23:01:55 | target: http://localhost:8088

2022-07-17 23:01:55 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-17 23:01:55 | entity: <data><node>node_61cca60204</node><entry><content>content_acshf90207</content></entry></data>

2022-07-17 23:01:56 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 18 Jul 2022 06:01:56 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-17 23:01:56 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>33d202f2-4727-4c44-9043-460e307122b6</value></item-id></result>

2022-07-17 23:01:56 | contains: true

2022-07-17 23:02:01 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-17 23:02:01 | [Mutex] waiting for: [user_regular8pk3c60203@test-domain.com:message:received:content_acshf90207]

2022-07-17 23:02:01 | [Mutex] received everything.

2022-07-17 23:02:01 | [Mutex] isItemNotified: user_regular8pk3c60203@test-domain.com:message:received:content_acshf90207 :: true

2022-07-17 23:02:01 |


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


2022-07-17 23:02:01 | [Mutex] received everything.

2022-07-17 23:02:01 | [Mutex] isItemNotified: node_61cca60204:subscribe_node:success :: true

2022-07-17 23:02:01 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-17 23:02:01 | command: <data><node>node_61cca60204</node><expire-at>2022-07-18T06:02:06Z</expire-at><entry><content>content_wz7zqm0208</content></entry></data>

2022-07-17 23:02:01 | target: http://localhost:8088

2022-07-17 23:02:01 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-17 23:02:01 | entity: <data><node>node_61cca60204</node><expire-at>2022-07-18T06:02:06Z</expire-at><entry><content>content_wz7zqm0208</content></entry></data>

2022-07-17 23:02:01 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 18 Jul 2022 06:02:01 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-17 23:02:01 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>38a0fe0f-16ba-459c-8e1c-fc9609dfbe6e</value></item-id></result>

2022-07-17 23:02:01 | contains: true

2022-07-17 23:02:09 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-17 23:02:09 | [Mutex] waiting for: [user_regular8pk3c60203@test-domain.com:message:received:content_wz7zqm0208]

2022-07-17 23:02:24 | [Mutex] timeout. Not received [user_regular8pk3c60203@test-domain.com:message:received:content_wz7zqm0208]

2022-07-17 23:02:24 | [Mutex] received everything.

2022-07-17 23:02:24 | [Mutex] isItemNotified: user_regular8pk3c60203@test-domain.com:message:received:content_wz7zqm0208 :: false

2022-07-17 23:02:24 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_wz7zqm0208 :: true