REST: Item publication on PubSub node with message expiration using REST API - #2959

Test duration: 45.245s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.667s
2020-06-02 14:13:57 |

2020-06-02 14:13:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-02 14:13:57 | ------------------------------------

2020-06-02 14:13:57 | [Mutex] isItemNotified: node_440br00206:exists :: false

2020-06-02 14:13:57 | [Mutex] waiting for: [node_440br00206:create_node]

2020-06-02 14:13:57 | [Mutex] received everything.

2020-06-02 14:13:57 | [Mutex] isItemNotified: node_440br00206:create_node:success :: true

2020-06-02 14:13:57 | [Mutex] waiting for: [node_440br00206:subscribe_node]

2020-06-02 14:13:57 | [Mutex] received everything.

2020-06-02 14:13:57 | [Mutex] isItemNotified: node_440br00206:subscribe_node:success :: true

2020-06-02 14:13:57 |


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


2020-06-02 14:13:57 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-02 14:13:57 | command: <data><node>node_440br00206</node><entry><content>content_mm8bo00207</content></entry></data>

2020-06-02 14:13:57 | target: http://localhost:8088

2020-06-02 14:13:57 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-02 14:13:57 | entity: <data><node>node_440br00206</node><entry><content>content_mm8bo00207</content></entry></data>

2020-06-02 14:13:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:13:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-02 14:13:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d484beca-ae9c-4756-bb01-d59420855915</value></item-id></result>

2020-06-02 14:13:57 | contains: true

2020-06-02 14:13:57 | [Mutex] received everything.

2020-06-02 14:13:57 | [Mutex] isItemNotified: user_regularpw8ipd0205@localhost:message:received:content_mm8bo00207 :: true

2020-06-02 14:13:57 |


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


2020-06-02 14:13:57 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-02 14:13:57 | command: <data><node>node_440br00206</node><expire-at>2020-06-02T21:13:52Z</expire-at><entry><content>content_2jedrg0208</content></entry></data>

2020-06-02 14:13:57 | target: http://localhost:8088

2020-06-02 14:13:57 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-02 14:13:57 | entity: <data><node>node_440br00206</node><expire-at>2020-06-02T21:13:52Z</expire-at><entry><content>content_2jedrg0208</content></entry></data>

2020-06-02 14:13:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:13:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-02 14:13:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>bb2a5920-3603-4238-aa15-ca8e589331e2</value></item-id></result>

2020-06-02 14:13:57 | contains: true

2020-06-02 14:13:57 | [Mutex] waiting for: [user_regularpw8ipd0205@localhost:message:received:content_2jedrg0208]

2020-06-02 14:14:12 | [Mutex] timeout. Not received [user_regularpw8ipd0205@localhost:message:received:content_2jedrg0208]

2020-06-02 14:14:12 | [Mutex] isItemNotified: user_regularpw8ipd0205@localhost:message:received:content_2jedrg0208 :: false

2020-06-02 14:14:12 |


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


2020-06-02 14:14:12 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-02 14:14:12 | command: <data><node>node_440br00206</node><entry><content>content_9uva7k0209</content></entry></data>

2020-06-02 14:14:12 | target: http://localhost:8088

2020-06-02 14:14:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-02 14:14:12 | entity: <data><node>node_440br00206</node><entry><content>content_9uva7k0209</content></entry></data>

2020-06-02 14:14:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:14:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-02 14:14:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a006cdd6-96dd-4093-8583-e00b78080399</value></item-id></result>

2020-06-02 14:14:12 | contains: true

2020-06-02 14:14:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-02 14:14:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] DNS entry stored in session object: localhost:5222

2020-06-02 14:14:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-02 14:14:17 | [Mutex] waiting for: [user_regularpw8ipd0205@localhost:message:received:content_9uva7k0209]

2020-06-02 14:14:17 | [Mutex] waiting for: [user_regularpw8ipd0205@localhost:message:received:content_9uva7k0209]

2020-06-02 14:14:17 | [Mutex] received everything.

2020-06-02 14:14:17 | [Mutex] isItemNotified: user_regularpw8ipd0205@localhost:message:received:content_9uva7k0209 :: true

2020-06-02 14:14:17 |


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


2020-06-02 14:14:17 | [Mutex] received everything.

2020-06-02 14:14:17 | [Mutex] isItemNotified: node_440br00206:subscribe_node:success :: true

2020-06-02 14:14:17 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-02 14:14:17 | command: <data><node>node_440br00206</node><expire-at>2020-06-02T21:14:22Z</expire-at><entry><content>content_dsqnao0210</content></entry></data>

2020-06-02 14:14:17 | target: http://localhost:8088

2020-06-02 14:14:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-02 14:14:17 | entity: <data><node>node_440br00206</node><expire-at>2020-06-02T21:14:22Z</expire-at><entry><content>content_dsqnao0210</content></entry></data>

2020-06-02 14:14:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:14:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-02 14:14:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>2a27275d-bf26-46cb-8a18-6730480eb4fd</value></item-id></result>

2020-06-02 14:14:17 | contains: true

2020-06-02 14:14:25 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-02 14:14:25 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] DNS entry stored in session object: localhost:5222

2020-06-02 14:14:25 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-02 14:14:25 | [Mutex] waiting for: [user_regularpw8ipd0205@localhost:message:received:content_dsqnao0210]

2020-06-02 14:14:25 | [Mutex] waiting for: [user_regularpw8ipd0205@localhost:message:received:content_dsqnao0210]

2020-06-02 14:14:25 | [Mutex] waiting for: [user_regularpw8ipd0205@localhost:message:received:content_dsqnao0210]

2020-06-02 14:14:40 | [Mutex] timeout. Not received [user_regularpw8ipd0205@localhost:message:received:content_dsqnao0210]

2020-06-02 14:14:40 | [Mutex] received everything.

2020-06-02 14:14:40 | [Mutex] isItemNotified: user_regularpw8ipd0205@localhost:message:received:content_dsqnao0210 :: false

2020-06-02 14:14:40 | [Mutex] isItemNotified: admin@localhost:message:received:content_dsqnao0210 :: true