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

Test duration: 45.224s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.638s
2019-11-24 18:43:32 |

2019-11-24 18:43:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-24 18:43:32 | ------------------------------------

2019-11-24 18:43:32 | [Mutex] isItemNotified: node_141pm60182:exists :: false

2019-11-24 18:43:32 | [Mutex] waiting for: [node_141pm60182:create_node]

2019-11-24 18:43:32 | [Mutex] received everything.

2019-11-24 18:43:32 | [Mutex] isItemNotified: node_141pm60182:create_node:success :: true

2019-11-24 18:43:32 | [Mutex] waiting for: [node_141pm60182:subscribe_node]

2019-11-24 18:43:32 | [Mutex] received everything.

2019-11-24 18:43:32 | [Mutex] isItemNotified: node_141pm60182:subscribe_node:success :: true

2019-11-24 18:43:32 |


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


2019-11-24 18:43:32 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 18:43:32 | command: <data><node>node_141pm60182</node><entry><content>content_1es7bp0183</content></entry></data>

2019-11-24 18:43:32 | target: http://localhost:8088

2019-11-24 18:43:32 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-24 18:43:32 | entity: <data><node>node_141pm60182</node><entry><content>content_1es7bp0183</content></entry></data>

2019-11-24 18:43:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 02:43:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 18:43:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>fb1e2942-2992-4d18-a7c7-7dc28b445ff5</value></item-id></result>

2019-11-24 18:43:32 | contains: true

2019-11-24 18:43:32 | [Mutex] received everything.

2019-11-24 18:43:32 | [Mutex] isItemNotified: user_regularnz00gz0181@localhost:message:received:content_1es7bp0183 :: true

2019-11-24 18:43:32 |


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


2019-11-24 18:43:32 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 18:43:32 | command: <data><node>node_141pm60182</node><expire-at>2019-11-25T02:43:27Z</expire-at><entry><content>content_bigvqw0184</content></entry></data>

2019-11-24 18:43:32 | target: http://localhost:8088

2019-11-24 18:43:32 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-24 18:43:32 | entity: <data><node>node_141pm60182</node><expire-at>2019-11-25T02:43:27Z</expire-at><entry><content>content_bigvqw0184</content></entry></data>

2019-11-24 18:43:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 02:43:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 18:43:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b46831ad-909a-4384-b115-b3719aadea7e</value></item-id></result>

2019-11-24 18:43:32 | contains: true

2019-11-24 18:43:32 | [Mutex] waiting for: [user_regularnz00gz0181@localhost:message:received:content_bigvqw0184]

2019-11-24 18:43:47 | [Mutex] timeout. Not received [user_regularnz00gz0181@localhost:message:received:content_bigvqw0184]

2019-11-24 18:43:47 | [Mutex] isItemNotified: user_regularnz00gz0181@localhost:message:received:content_bigvqw0184 :: false

2019-11-24 18:43:47 |


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


2019-11-24 18:43:47 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 18:43:47 | command: <data><node>node_141pm60182</node><entry><content>content_h12c500185</content></entry></data>

2019-11-24 18:43:47 | target: http://localhost:8088

2019-11-24 18:43:47 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-24 18:43:47 | entity: <data><node>node_141pm60182</node><entry><content>content_h12c500185</content></entry></data>

2019-11-24 18:43:47 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 02:43:47 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 18:43:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>89c0bc8e-28ec-4134-854c-f934638c6135</value></item-id></result>

2019-11-24 18:43:47 | contains: true

2019-11-24 18:43:52 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-24 18:43:52 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=456 thread=1] DNS entry stored in session object: localhost:5222

2019-11-24 18:43:52 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=456 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-24 18:43:52 | [Mutex] waiting for: [user_regularnz00gz0181@localhost:message:received:content_h12c500185]

2019-11-24 18:43:52 | [Mutex] received everything.

2019-11-24 18:43:52 | [Mutex] isItemNotified: user_regularnz00gz0181@localhost:message:received:content_h12c500185 :: true

2019-11-24 18:43:52 |


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


2019-11-24 18:43:52 | [Mutex] received everything.

2019-11-24 18:43:52 | [Mutex] isItemNotified: node_141pm60182:subscribe_node:success :: true

2019-11-24 18:43:52 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 18:43:52 | command: <data><node>node_141pm60182</node><expire-at>2019-11-25T02:43:57Z</expire-at><entry><content>content_3chavy0186</content></entry></data>

2019-11-24 18:43:52 | target: http://localhost:8088

2019-11-24 18:43:52 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-24 18:43:52 | entity: <data><node>node_141pm60182</node><expire-at>2019-11-25T02:43:57Z</expire-at><entry><content>content_3chavy0186</content></entry></data>

2019-11-24 18:43:52 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 02:43:52 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 18:43:52 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>480dd057-90d5-4044-9bc4-79d7d126fb64</value></item-id></result>

2019-11-24 18:43:52 | contains: true

2019-11-24 18:44:00 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-24 18:44:00 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] DNS entry stored in session object: localhost:5222

2019-11-24 18:44:00 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-24 18:44:00 | [Mutex] waiting for: [user_regularnz00gz0181@localhost:message:received:content_3chavy0186]

2019-11-24 18:44:00 | [Mutex] waiting for: [user_regularnz00gz0181@localhost:message:received:content_3chavy0186]

2019-11-24 18:44:15 | [Mutex] timeout. Not received [user_regularnz00gz0181@localhost:message:received:content_3chavy0186]

2019-11-24 18:44:15 | [Mutex] received everything.

2019-11-24 18:44:15 | [Mutex] isItemNotified: user_regularnz00gz0181@localhost:message:received:content_3chavy0186 :: false

2019-11-24 18:44:15 | [Mutex] isItemNotified: admin@localhost:message:received:content_3chavy0186 :: true