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

Test duration: 45.463s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.600s
2019-11-21 05:57:18 |

2019-11-21 05:57:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-21 05:57:18 | ------------------------------------

2019-11-21 05:57:18 | [Mutex] isItemNotified: node_awfu550184:exists :: false

2019-11-21 05:57:18 | [Mutex] waiting for: [node_awfu550184:create_node]

2019-11-21 05:57:18 | [Mutex] received everything.

2019-11-21 05:57:18 | [Mutex] isItemNotified: node_awfu550184:create_node:success :: true

2019-11-21 05:57:18 | [Mutex] waiting for: [node_awfu550184:subscribe_node]

2019-11-21 05:57:18 | [Mutex] received everything.

2019-11-21 05:57:18 | [Mutex] isItemNotified: node_awfu550184:subscribe_node:success :: true

2019-11-21 05:57:18 |


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


2019-11-21 05:57:18 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 05:57:18 | command: <data><node>node_awfu550184</node><entry><content>content_i9yblp0185</content></entry></data>

2019-11-21 05:57:18 | target: http://localhost:8088

2019-11-21 05:57:18 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-21 05:57:18 | entity: <data><node>node_awfu550184</node><entry><content>content_i9yblp0185</content></entry></data>

2019-11-21 05:57:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 13:57:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 05:57:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4a3aff1c-a67b-42f7-923a-83776b94ef44</value></item-id></result>

2019-11-21 05:57:18 | contains: true

2019-11-21 05:57:18 | [Mutex] received everything.

2019-11-21 05:57:18 | [Mutex] isItemNotified: user_regulark5btyi0183@localhost:message:received:content_i9yblp0185 :: true

2019-11-21 05:57:18 |


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


2019-11-21 05:57:18 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 05:57:18 | command: <data><node>node_awfu550184</node><expire-at>2019-11-21T13:57:13Z</expire-at><entry><content>content_36iwlr0186</content></entry></data>

2019-11-21 05:57:18 | target: http://localhost:8088

2019-11-21 05:57:18 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 05:57:18 | entity: <data><node>node_awfu550184</node><expire-at>2019-11-21T13:57:13Z</expire-at><entry><content>content_36iwlr0186</content></entry></data>

2019-11-21 05:57:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 13:57:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 05:57:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>9c52a2aa-47bd-44cc-acc8-305533a3f548</value></item-id></result>

2019-11-21 05:57:18 | contains: true

2019-11-21 05:57:18 | [Mutex] waiting for: [user_regulark5btyi0183@localhost:message:received:content_36iwlr0186]

2019-11-21 05:57:33 | [Mutex] timeout. Not received [user_regulark5btyi0183@localhost:message:received:content_36iwlr0186]

2019-11-21 05:57:33 | [Mutex] isItemNotified: user_regulark5btyi0183@localhost:message:received:content_36iwlr0186 :: false

2019-11-21 05:57:33 |


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


2019-11-21 05:57:33 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 05:57:33 | command: <data><node>node_awfu550184</node><entry><content>content_yt4fyf0187</content></entry></data>

2019-11-21 05:57:33 | target: http://localhost:8088

2019-11-21 05:57:33 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-21 05:57:33 | entity: <data><node>node_awfu550184</node><entry><content>content_yt4fyf0187</content></entry></data>

2019-11-21 05:57:33 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 13:57:33 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 05:57:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>48a226c0-5907-489e-970a-c674b8683396</value></item-id></result>

2019-11-21 05:57:33 | contains: true

2019-11-21 05:57:38 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-11-21 05:57:38 | [Mutex] waiting for: [user_regulark5btyi0183@localhost:message:received:content_yt4fyf0187]

2019-11-21 05:57:38 | [Mutex] waiting for: [user_regulark5btyi0183@localhost:message:received:content_yt4fyf0187]

2019-11-21 05:57:38 | [Mutex] received everything.

2019-11-21 05:57:38 | [Mutex] isItemNotified: user_regulark5btyi0183@localhost:message:received:content_yt4fyf0187 :: true

2019-11-21 05:57:38 |


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


2019-11-21 05:57:38 | [Mutex] received everything.

2019-11-21 05:57:38 | [Mutex] isItemNotified: node_awfu550184:subscribe_node:success :: true

2019-11-21 05:57:38 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 05:57:38 | command: <data><node>node_awfu550184</node><expire-at>2019-11-21T13:57:43Z</expire-at><entry><content>content_ixld2k0188</content></entry></data>

2019-11-21 05:57:38 | target: http://localhost:8088

2019-11-21 05:57:38 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 05:57:38 | entity: <data><node>node_awfu550184</node><expire-at>2019-11-21T13:57:43Z</expire-at><entry><content>content_ixld2k0188</content></entry></data>

2019-11-21 05:57:38 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 13:57:38 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 05:57:38 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7302996b-fd42-4807-b4a6-986844074b37</value></item-id></result>

2019-11-21 05:57:38 | contains: true

2019-11-21 05:57:46 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-21 05:57:46 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] DNS entry stored in session object: localhost:5222

2019-11-21 05:57:46 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-21 05:57:46 | [Mutex] waiting for: [user_regulark5btyi0183@localhost:message:received:content_ixld2k0188]

2019-11-21 05:57:46 | [Mutex] waiting for: [user_regulark5btyi0183@localhost:message:received:content_ixld2k0188]

2019-11-21 05:58:01 | [Mutex] timeout. Not received [user_regulark5btyi0183@localhost:message:received:content_ixld2k0188]

2019-11-21 05:58:01 | [Mutex] received everything.

2019-11-21 05:58:01 | [Mutex] isItemNotified: user_regulark5btyi0183@localhost:message:received:content_ixld2k0188 :: false

2019-11-21 05:58:01 | [Mutex] isItemNotified: admin@localhost:message:received:content_ixld2k0188 :: true