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

Test duration: 45.077s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.590s
2019-11-27 19:19:07 |

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

2019-11-27 19:19:07 | ------------------------------------

2019-11-27 19:19:07 | [Mutex] isItemNotified: node_a9d2sp0184:exists :: false

2019-11-27 19:19:07 | [Mutex] waiting for: [node_a9d2sp0184:create_node]

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

2019-11-27 19:19:07 | [Mutex] isItemNotified: node_a9d2sp0184:create_node:success :: true

2019-11-27 19:19:07 | [Mutex] waiting for: [node_a9d2sp0184:subscribe_node]

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

2019-11-27 19:19:07 | [Mutex] isItemNotified: node_a9d2sp0184:subscribe_node:success :: true

2019-11-27 19:19:07 |


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


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

2019-11-27 19:19:07 | command: <data><node>node_a9d2sp0184</node><entry><content>content_gx838w0185</content></entry></data>

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

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

2019-11-27 19:19:07 | entity: <data><node>node_a9d2sp0184</node><entry><content>content_gx838w0185</content></entry></data>

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

2019-11-27 19:19:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>438869dc-e570-4d28-9942-73c229311591</value></item-id></result>

2019-11-27 19:19:07 | contains: true

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

2019-11-27 19:19:07 | [Mutex] isItemNotified: user_regular9uutsf0183@localhost:message:received:content_gx838w0185 :: true

2019-11-27 19:19:07 |


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


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

2019-11-27 19:19:07 | command: <data><node>node_a9d2sp0184</node><expire-at>2019-11-28T03:19:02Z</expire-at><entry><content>content_ucy9sf0186</content></entry></data>

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

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

2019-11-27 19:19:07 | entity: <data><node>node_a9d2sp0184</node><expire-at>2019-11-28T03:19:02Z</expire-at><entry><content>content_ucy9sf0186</content></entry></data>

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

2019-11-27 19:19:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3f53bf3f-de22-46ee-9cdd-2fe85ce8b476</value></item-id></result>

2019-11-27 19:19:07 | contains: true

2019-11-27 19:19:07 | [Mutex] waiting for: [user_regular9uutsf0183@localhost:message:received:content_ucy9sf0186]

2019-11-27 19:19:22 | [Mutex] timeout. Not received [user_regular9uutsf0183@localhost:message:received:content_ucy9sf0186]

2019-11-27 19:19:22 | [Mutex] isItemNotified: user_regular9uutsf0183@localhost:message:received:content_ucy9sf0186 :: false

2019-11-27 19:19:22 |


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


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

2019-11-27 19:19:22 | command: <data><node>node_a9d2sp0184</node><entry><content>content_osghq90187</content></entry></data>

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

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

2019-11-27 19:19:22 | entity: <data><node>node_a9d2sp0184</node><entry><content>content_osghq90187</content></entry></data>

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

2019-11-27 19:19:22 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d16c215d-f8f1-4525-a98f-05e22db775a9</value></item-id></result>

2019-11-27 19:19:22 | contains: true

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

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

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

2019-11-27 19:19:27 | [Mutex] waiting for: [user_regular9uutsf0183@localhost:message:received:content_osghq90187]

2019-11-27 19:19:27 | [Mutex] waiting for: [user_regular9uutsf0183@localhost:message:received:content_osghq90187]

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

2019-11-27 19:19:27 | [Mutex] isItemNotified: user_regular9uutsf0183@localhost:message:received:content_osghq90187 :: true

2019-11-27 19:19:27 |


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


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

2019-11-27 19:19:27 | [Mutex] isItemNotified: node_a9d2sp0184:subscribe_node:success :: true

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

2019-11-27 19:19:27 | command: <data><node>node_a9d2sp0184</node><expire-at>2019-11-28T03:19:32Z</expire-at><entry><content>content_cw2l4w0188</content></entry></data>

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

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

2019-11-27 19:19:27 | entity: <data><node>node_a9d2sp0184</node><expire-at>2019-11-28T03:19:32Z</expire-at><entry><content>content_cw2l4w0188</content></entry></data>

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

2019-11-27 19:19:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>25719a1d-3f35-4a0e-8eb7-951b87c59659</value></item-id></result>

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

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

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

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

2019-11-27 19:19:36 | [Mutex] waiting for: [user_regular9uutsf0183@localhost:message:received:content_cw2l4w0188]

2019-11-27 19:19:36 | [Mutex] waiting for: [user_regular9uutsf0183@localhost:message:received:content_cw2l4w0188]

2019-11-27 19:19:36 | [Mutex] waiting for: [user_regular9uutsf0183@localhost:message:received:content_cw2l4w0188]

2019-11-27 19:19:51 | [Mutex] timeout. Not received [user_regular9uutsf0183@localhost:message:received:content_cw2l4w0188]

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

2019-11-27 19:19:51 | [Mutex] isItemNotified: user_regular9uutsf0183@localhost:message:received:content_cw2l4w0188 :: false

2019-11-27 19:19:51 | [Mutex] isItemNotified: admin@localhost:message:received:content_cw2l4w0188 :: true