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

Test duration: 45.106s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.653s
2019-11-25 20:18:37 |

2019-11-25 20:18:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-25 20:18:37 | ------------------------------------

2019-11-25 20:18:37 | [Mutex] isItemNotified: node_kcpa950181:exists :: false

2019-11-25 20:18:37 | [Mutex] waiting for: [node_kcpa950181:create_node]

2019-11-25 20:18:37 | [Mutex] received everything.

2019-11-25 20:18:37 | [Mutex] isItemNotified: node_kcpa950181:create_node:success :: true

2019-11-25 20:18:37 | [Mutex] waiting for: [node_kcpa950181:subscribe_node]

2019-11-25 20:18:37 | [Mutex] received everything.

2019-11-25 20:18:37 | [Mutex] isItemNotified: node_kcpa950181:subscribe_node:success :: true

2019-11-25 20:18:37 |


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


2019-11-25 20:18:37 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 20:18:37 | command: <data><node>node_kcpa950181</node><entry><content>content_casygn0182</content></entry></data>

2019-11-25 20:18:37 | target: http://localhost:8088

2019-11-25 20:18:37 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-25 20:18:37 | entity: <data><node>node_kcpa950181</node><entry><content>content_casygn0182</content></entry></data>

2019-11-25 20:18:38 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 04:18:38 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 20:18:38 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a5355825-68b3-435c-8f2c-d06f789d0ccc</value></item-id></result>

2019-11-25 20:18:38 | contains: true

2019-11-25 20:18:38 | [Mutex] received everything.

2019-11-25 20:18:38 | [Mutex] isItemNotified: user_regularjy0bz70180@localhost:message:received:content_casygn0182 :: true

2019-11-25 20:18:38 |


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


2019-11-25 20:18:38 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 20:18:38 | command: <data><node>node_kcpa950181</node><expire-at>2019-11-26T04:18:33Z</expire-at><entry><content>content_wii5ic0183</content></entry></data>

2019-11-25 20:18:38 | target: http://localhost:8088

2019-11-25 20:18:38 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-25 20:18:38 | entity: <data><node>node_kcpa950181</node><expire-at>2019-11-26T04:18:33Z</expire-at><entry><content>content_wii5ic0183</content></entry></data>

2019-11-25 20:18:38 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 04:18:38 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 20:18:38 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>315fd731-f285-4bf7-84f8-2f018dce6b96</value></item-id></result>

2019-11-25 20:18:38 | contains: true

2019-11-25 20:18:38 | [Mutex] waiting for: [user_regularjy0bz70180@localhost:message:received:content_wii5ic0183]

2019-11-25 20:18:53 | [Mutex] timeout. Not received [user_regularjy0bz70180@localhost:message:received:content_wii5ic0183]

2019-11-25 20:18:53 | [Mutex] isItemNotified: user_regularjy0bz70180@localhost:message:received:content_wii5ic0183 :: false

2019-11-25 20:18:53 |


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


2019-11-25 20:18:53 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 20:18:53 | command: <data><node>node_kcpa950181</node><entry><content>content_e8w7ad0184</content></entry></data>

2019-11-25 20:18:53 | target: http://localhost:8088

2019-11-25 20:18:53 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-25 20:18:53 | entity: <data><node>node_kcpa950181</node><entry><content>content_e8w7ad0184</content></entry></data>

2019-11-25 20:18:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 04:18:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 20:18:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>fa5651d6-48f1-4422-845a-e9c4decd191d</value></item-id></result>

2019-11-25 20:18:53 | contains: true

2019-11-25 20:18:58 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-25 20:18:58 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=454 thread=1] DNS entry stored in session object: localhost:5222

2019-11-25 20:18:58 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=454 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-25 20:18:58 | [Mutex] waiting for: [user_regularjy0bz70180@localhost:message:received:content_e8w7ad0184]

2019-11-25 20:18:58 | [Mutex] waiting for: [user_regularjy0bz70180@localhost:message:received:content_e8w7ad0184]

2019-11-25 20:18:58 | [Mutex] received everything.

2019-11-25 20:18:58 | [Mutex] isItemNotified: user_regularjy0bz70180@localhost:message:received:content_e8w7ad0184 :: true

2019-11-25 20:18:58 |


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


2019-11-25 20:18:58 | [Mutex] received everything.

2019-11-25 20:18:58 | [Mutex] isItemNotified: node_kcpa950181:subscribe_node:success :: true

2019-11-25 20:18:58 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 20:18:58 | command: <data><node>node_kcpa950181</node><expire-at>2019-11-26T04:19:03Z</expire-at><entry><content>content_uofv00185</content></entry></data>

2019-11-25 20:18:58 | target: http://localhost:8088

2019-11-25 20:18:58 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2019-11-25 20:18:58 | entity: <data><node>node_kcpa950181</node><expire-at>2019-11-26T04:19:03Z</expire-at><entry><content>content_uofv00185</content></entry></data>

2019-11-25 20:18:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 04:18:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 20:18:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>07aff719-0233-4185-bcf8-ae0df4d3667d</value></item-id></result>

2019-11-25 20:18:58 | contains: true

2019-11-25 20:19:06 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-25 20:19:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=455 thread=1] DNS entry stored in session object: localhost:5222

2019-11-25 20:19:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=455 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-25 20:19:06 | [Mutex] waiting for: [user_regularjy0bz70180@localhost:message:received:content_uofv00185]

2019-11-25 20:19:06 | [Mutex] waiting for: [user_regularjy0bz70180@localhost:message:received:content_uofv00185]

2019-11-25 20:19:06 | [Mutex] waiting for: [user_regularjy0bz70180@localhost:message:received:content_uofv00185]

2019-11-25 20:19:21 | [Mutex] timeout. Not received [user_regularjy0bz70180@localhost:message:received:content_uofv00185]

2019-11-25 20:19:21 | [Mutex] received everything.

2019-11-25 20:19:21 | [Mutex] isItemNotified: user_regularjy0bz70180@localhost:message:received:content_uofv00185 :: false

2019-11-25 20:19:21 | [Mutex] isItemNotified: admin@localhost:message:received:content_uofv00185 :: true