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

Test duration: 45.480s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.667s
2020-06-26 00:22:43 |

2020-06-26 00:22:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-26 00:22:43 | ------------------------------------

2020-06-26 00:22:43 | [Mutex] isItemNotified: node_su1bz90206:exists :: false

2020-06-26 00:22:43 | [Mutex] waiting for: [node_su1bz90206:create_node]

2020-06-26 00:22:43 | [Mutex] received everything.

2020-06-26 00:22:43 | [Mutex] isItemNotified: node_su1bz90206:create_node:success :: true

2020-06-26 00:22:43 | [Mutex] waiting for: [node_su1bz90206:subscribe_node]

2020-06-26 00:22:43 | [Mutex] received everything.

2020-06-26 00:22:43 | [Mutex] isItemNotified: node_su1bz90206:subscribe_node:success :: true

2020-06-26 00:22:43 |


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


2020-06-26 00:22:43 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-26 00:22:43 | command: <data><node>node_su1bz90206</node><entry><content>content_3hqeh20207</content></entry></data>

2020-06-26 00:22:43 | target: http://localhost:8088

2020-06-26 00:22:43 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-26 00:22:43 | entity: <data><node>node_su1bz90206</node><entry><content>content_3hqeh20207</content></entry></data>

2020-06-26 00:22:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 26 Jun 2020 07:22:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-26 00:22:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c1443131-bbd8-4350-b769-6ca6264eba3a</value></item-id></result>

2020-06-26 00:22:43 | contains: true

2020-06-26 00:22:43 | [Mutex] received everything.

2020-06-26 00:22:43 | [Mutex] isItemNotified: user_regularw01dpm0205@localhost:message:received:content_3hqeh20207 :: true

2020-06-26 00:22:43 |


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


2020-06-26 00:22:43 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-26 00:22:43 | command: <data><node>node_su1bz90206</node><expire-at>2020-06-26T07:22:38Z</expire-at><entry><content>content_484zjm0208</content></entry></data>

2020-06-26 00:22:43 | target: http://localhost:8088

2020-06-26 00:22:43 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-26 00:22:43 | entity: <data><node>node_su1bz90206</node><expire-at>2020-06-26T07:22:38Z</expire-at><entry><content>content_484zjm0208</content></entry></data>

2020-06-26 00:22:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 26 Jun 2020 07:22:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-26 00:22:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>25fb2c47-21af-4845-ba92-faec4c953231</value></item-id></result>

2020-06-26 00:22:43 | contains: true

2020-06-26 00:22:43 | [Mutex] waiting for: [user_regularw01dpm0205@localhost:message:received:content_484zjm0208]

2020-06-26 00:22:58 | [Mutex] timeout. Not received [user_regularw01dpm0205@localhost:message:received:content_484zjm0208]

2020-06-26 00:22:58 | [Mutex] isItemNotified: user_regularw01dpm0205@localhost:message:received:content_484zjm0208 :: false

2020-06-26 00:22:58 |


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


2020-06-26 00:22:58 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-26 00:22:58 | command: <data><node>node_su1bz90206</node><entry><content>content_5xm2uq0209</content></entry></data>

2020-06-26 00:22:58 | target: http://localhost:8088

2020-06-26 00:22:58 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-26 00:22:58 | entity: <data><node>node_su1bz90206</node><entry><content>content_5xm2uq0209</content></entry></data>

2020-06-26 00:22:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 26 Jun 2020 07:22:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-26 00:22:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e45e3712-313b-4fb0-9561-a738a907ebf7</value></item-id></result>

2020-06-26 00:22:58 | contains: true

2020-06-26 00:23:03 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2020-06-26 00:23:03 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-26 00:23:04 | [Mutex] waiting for: [user_regularw01dpm0205@localhost:message:received:content_5xm2uq0209]

2020-06-26 00:23:04 | [Mutex] waiting for: [user_regularw01dpm0205@localhost:message:received:content_5xm2uq0209]

2020-06-26 00:23:04 | [Mutex] received everything.

2020-06-26 00:23:04 | [Mutex] isItemNotified: user_regularw01dpm0205@localhost:message:received:content_5xm2uq0209 :: true

2020-06-26 00:23:04 |


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


2020-06-26 00:23:04 | [Mutex] received everything.

2020-06-26 00:23:04 | [Mutex] isItemNotified: node_su1bz90206:subscribe_node:success :: true

2020-06-26 00:23:04 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-26 00:23:04 | command: <data><node>node_su1bz90206</node><expire-at>2020-06-26T07:23:09Z</expire-at><entry><content>content_tvz8bb0210</content></entry></data>

2020-06-26 00:23:04 | target: http://localhost:8088

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

2020-06-26 00:23:04 | entity: <data><node>node_su1bz90206</node><expire-at>2020-06-26T07:23:09Z</expire-at><entry><content>content_tvz8bb0210</content></entry></data>

2020-06-26 00:23:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 26 Jun 2020 07:23:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-26 00:23:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>09538ccf-4e4c-4bef-a60d-1536d18e2116</value></item-id></result>

2020-06-26 00:23:04 | contains: true

2020-06-26 00:23:12 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2020-06-26 00:23:12 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-26 00:23:12 | [Mutex] waiting for: [user_regularw01dpm0205@localhost:message:received:content_tvz8bb0210]

2020-06-26 00:23:12 | [Mutex] waiting for: [user_regularw01dpm0205@localhost:message:received:content_tvz8bb0210]

2020-06-26 00:23:12 | [Mutex] waiting for: [user_regularw01dpm0205@localhost:message:received:content_tvz8bb0210]

2020-06-26 00:23:27 | [Mutex] timeout. Not received [user_regularw01dpm0205@localhost:message:received:content_tvz8bb0210]

2020-06-26 00:23:27 | [Mutex] received everything.

2020-06-26 00:23:27 | [Mutex] isItemNotified: user_regularw01dpm0205@localhost:message:received:content_tvz8bb0210 :: false

2020-06-26 00:23:27 | [Mutex] isItemNotified: admin@localhost:message:received:content_tvz8bb0210 :: true