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

Test duration: 45.179s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.583s
2019-12-03 19:13:15 |

2019-12-03 19:13:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-12-03 19:13:15 | ------------------------------------

2019-12-03 19:13:15 | [Mutex] isItemNotified: node_7pl49q0184:exists :: false

2019-12-03 19:13:15 | [Mutex] waiting for: [node_7pl49q0184:create_node]

2019-12-03 19:13:15 | [Mutex] received everything.

2019-12-03 19:13:15 | [Mutex] isItemNotified: node_7pl49q0184:create_node:success :: true

2019-12-03 19:13:15 | [Mutex] waiting for: [node_7pl49q0184:subscribe_node]

2019-12-03 19:13:15 | [Mutex] received everything.

2019-12-03 19:13:15 | [Mutex] isItemNotified: node_7pl49q0184:subscribe_node:success :: true

2019-12-03 19:13:15 |


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


2019-12-03 19:13:15 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:13:15 | command: <data><node>node_7pl49q0184</node><entry><content>content_1zxkob0185</content></entry></data>

2019-12-03 19:13:15 | target: http://localhost:8088

2019-12-03 19:13:15 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-12-03 19:13:15 | entity: <data><node>node_7pl49q0184</node><entry><content>content_1zxkob0185</content></entry></data>

2019-12-03 19:13:16 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:13:16 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:13:16 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>43432296-285a-4350-9191-88083d9f66b2</value></item-id></result>

2019-12-03 19:13:16 | contains: true

2019-12-03 19:13:16 | [Mutex] waiting for: [user_regularcefpu50183@localhost:message:received:content_1zxkob0185]

2019-12-03 19:13:16 | [Mutex] received everything.

2019-12-03 19:13:16 | [Mutex] isItemNotified: user_regularcefpu50183@localhost:message:received:content_1zxkob0185 :: true

2019-12-03 19:13:16 |


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


2019-12-03 19:13:16 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:13:16 | command: <data><node>node_7pl49q0184</node><expire-at>2019-12-04T03:13:11Z</expire-at><entry><content>content_46c1q80186</content></entry></data>

2019-12-03 19:13:16 | target: http://localhost:8088

2019-12-03 19:13:16 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-12-03 19:13:16 | entity: <data><node>node_7pl49q0184</node><expire-at>2019-12-04T03:13:11Z</expire-at><entry><content>content_46c1q80186</content></entry></data>

2019-12-03 19:13:16 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:13:16 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:13:16 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>2ec74d2c-82bc-421e-b07a-e845143f3e89</value></item-id></result>

2019-12-03 19:13:16 | contains: true

2019-12-03 19:13:16 | [Mutex] waiting for: [user_regularcefpu50183@localhost:message:received:content_46c1q80186]

2019-12-03 19:13:31 | [Mutex] timeout. Not received [user_regularcefpu50183@localhost:message:received:content_46c1q80186]

2019-12-03 19:13:31 | [Mutex] isItemNotified: user_regularcefpu50183@localhost:message:received:content_46c1q80186 :: false

2019-12-03 19:13:31 |


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


2019-12-03 19:13:31 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:13:31 | command: <data><node>node_7pl49q0184</node><entry><content>content_f7593v0187</content></entry></data>

2019-12-03 19:13:31 | target: http://localhost:8088

2019-12-03 19:13:31 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-12-03 19:13:31 | entity: <data><node>node_7pl49q0184</node><entry><content>content_f7593v0187</content></entry></data>

2019-12-03 19:13:31 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:13:31 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:13:31 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>9ce76941-acd2-4522-9a5c-f786be3d6c47</value></item-id></result>

2019-12-03 19:13:31 | contains: true

2019-12-03 19:13:36 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-12-03 19:13:36 | [Mutex] waiting for: [user_regularcefpu50183@localhost:message:received:content_f7593v0187]

2019-12-03 19:13:36 | [Mutex] waiting for: [user_regularcefpu50183@localhost:message:received:content_f7593v0187]

2019-12-03 19:13:36 | [Mutex] received everything.

2019-12-03 19:13:36 | [Mutex] isItemNotified: user_regularcefpu50183@localhost:message:received:content_f7593v0187 :: true

2019-12-03 19:13:36 |


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


2019-12-03 19:13:36 | [Mutex] received everything.

2019-12-03 19:13:36 | [Mutex] isItemNotified: node_7pl49q0184:subscribe_node:success :: true

2019-12-03 19:13:36 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:13:36 | command: <data><node>node_7pl49q0184</node><expire-at>2019-12-04T03:13:41Z</expire-at><entry><content>content_cfb25b0188</content></entry></data>

2019-12-03 19:13:36 | target: http://localhost:8088

2019-12-03 19:13:36 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-12-03 19:13:36 | entity: <data><node>node_7pl49q0184</node><expire-at>2019-12-04T03:13:41Z</expire-at><entry><content>content_cfb25b0188</content></entry></data>

2019-12-03 19:13:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:13:36 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:13:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4fb4a796-b51c-4d13-9059-a3cc293144bc</value></item-id></result>

2019-12-03 19:13:36 | contains: true

2019-12-03 19:13:44 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2019-12-03 19:13:44 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-12-03 19:13:44 | [Mutex] waiting for: [user_regularcefpu50183@localhost:message:received:content_cfb25b0188]

2019-12-03 19:13:44 | [Mutex] waiting for: [user_regularcefpu50183@localhost:message:received:content_cfb25b0188]

2019-12-03 19:13:59 | [Mutex] timeout. Not received [user_regularcefpu50183@localhost:message:received:content_cfb25b0188]

2019-12-03 19:13:59 | [Mutex] received everything.

2019-12-03 19:13:59 | [Mutex] isItemNotified: user_regularcefpu50183@localhost:message:received:content_cfb25b0188 :: false

2019-12-03 19:13:59 | [Mutex] isItemNotified: admin@localhost:message:received:content_cfb25b0188 :: true