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

Test duration: 45.182s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.571s
2019-11-27 19:57:20 |

2019-11-27 19:57:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-27 19:57:20 | ------------------------------------

2019-11-27 19:57:20 | [Mutex] isItemNotified: node_ul8pg40182:exists :: false

2019-11-27 19:57:20 | [Mutex] waiting for: [node_ul8pg40182:create_node]

2019-11-27 19:57:20 | [Mutex] received everything.

2019-11-27 19:57:20 | [Mutex] isItemNotified: node_ul8pg40182:create_node:success :: true

2019-11-27 19:57:20 | [Mutex] waiting for: [node_ul8pg40182:subscribe_node]

2019-11-27 19:57:20 | [Mutex] received everything.

2019-11-27 19:57:20 | [Mutex] isItemNotified: node_ul8pg40182:subscribe_node:success :: true

2019-11-27 19:57:20 |


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


2019-11-27 19:57:20 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 19:57:20 | command: <data><node>node_ul8pg40182</node><entry><content>content_ngfdum0183</content></entry></data>

2019-11-27 19:57:20 | target: http://localhost:8088

2019-11-27 19:57:20 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-27 19:57:20 | entity: <data><node>node_ul8pg40182</node><entry><content>content_ngfdum0183</content></entry></data>

2019-11-27 19:57:20 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 03:57:20 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 19:57:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d49e77c4-a792-4400-a8ff-d00e570b64a0</value></item-id></result>

2019-11-27 19:57:20 | contains: true

2019-11-27 19:57:20 | [Mutex] received everything.

2019-11-27 19:57:20 | [Mutex] isItemNotified: user_regularm6dp60181@localhost:message:received:content_ngfdum0183 :: true

2019-11-27 19:57:20 |


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


2019-11-27 19:57:20 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 19:57:20 | command: <data><node>node_ul8pg40182</node><expire-at>2019-11-28T03:57:15Z</expire-at><entry><content>content_vq5tsy0184</content></entry></data>

2019-11-27 19:57:20 | target: http://localhost:8088

2019-11-27 19:57:20 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-27 19:57:20 | entity: <data><node>node_ul8pg40182</node><expire-at>2019-11-28T03:57:15Z</expire-at><entry><content>content_vq5tsy0184</content></entry></data>

2019-11-27 19:57:20 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 03:57:20 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 19:57:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f41fb035-a88b-4d40-99d6-a6133e9332a6</value></item-id></result>

2019-11-27 19:57:20 | contains: true

2019-11-27 19:57:20 | [Mutex] waiting for: [user_regularm6dp60181@localhost:message:received:content_vq5tsy0184]

2019-11-27 19:57:35 | [Mutex] timeout. Not received [user_regularm6dp60181@localhost:message:received:content_vq5tsy0184]

2019-11-27 19:57:35 | [Mutex] isItemNotified: user_regularm6dp60181@localhost:message:received:content_vq5tsy0184 :: false

2019-11-27 19:57:35 |


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


2019-11-27 19:57:35 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 19:57:35 | command: <data><node>node_ul8pg40182</node><entry><content>content_dyi4vg0185</content></entry></data>

2019-11-27 19:57:35 | target: http://localhost:8088

2019-11-27 19:57:35 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-27 19:57:35 | entity: <data><node>node_ul8pg40182</node><entry><content>content_dyi4vg0185</content></entry></data>

2019-11-27 19:57:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 03:57:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 19:57:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5c513952-2811-4818-aab7-56d8d20f8199</value></item-id></result>

2019-11-27 19:57:35 | contains: true

2019-11-27 19:57:40 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-27 19:57:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=456 thread=1] DNS entry stored in session object: localhost:5222

2019-11-27 19:57:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=456 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-27 19:57:41 | [Mutex] waiting for: [user_regularm6dp60181@localhost:message:received:content_dyi4vg0185]

2019-11-27 19:57:41 | [Mutex] received everything.

2019-11-27 19:57:41 | [Mutex] isItemNotified: user_regularm6dp60181@localhost:message:received:content_dyi4vg0185 :: true

2019-11-27 19:57:41 |


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


2019-11-27 19:57:41 | [Mutex] received everything.

2019-11-27 19:57:41 | [Mutex] isItemNotified: node_ul8pg40182:subscribe_node:success :: true

2019-11-27 19:57:41 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 19:57:41 | command: <data><node>node_ul8pg40182</node><expire-at>2019-11-28T03:57:46Z</expire-at><entry><content>content_yzv2000186</content></entry></data>

2019-11-27 19:57:41 | target: http://localhost:8088

2019-11-27 19:57:41 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-27 19:57:41 | entity: <data><node>node_ul8pg40182</node><expire-at>2019-11-28T03:57:46Z</expire-at><entry><content>content_yzv2000186</content></entry></data>

2019-11-27 19:57:41 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 03:57:41 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 19:57:41 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>774e7459-76d1-44b3-aba9-d3e6c94edad8</value></item-id></result>

2019-11-27 19:57:41 | contains: true

2019-11-27 19:57:49 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-27 19:57:49 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] DNS entry stored in session object: localhost:5222

2019-11-27 19:57:49 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-27 19:57:49 | [Mutex] waiting for: [user_regularm6dp60181@localhost:message:received:content_yzv2000186]

2019-11-27 19:57:49 | [Mutex] waiting for: [user_regularm6dp60181@localhost:message:received:content_yzv2000186]

2019-11-27 19:57:49 | [Mutex] waiting for: [user_regularm6dp60181@localhost:message:received:content_yzv2000186]

2019-11-27 19:58:04 | [Mutex] timeout. Not received [user_regularm6dp60181@localhost:message:received:content_yzv2000186]

2019-11-27 19:58:04 | [Mutex] received everything.

2019-11-27 19:58:04 | [Mutex] isItemNotified: user_regularm6dp60181@localhost:message:received:content_yzv2000186 :: false

2019-11-27 19:58:04 | [Mutex] isItemNotified: admin@localhost:message:received:content_yzv2000186 :: true