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

Test duration: 44.832s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.666s
2019-11-26 20:16:44 |

2019-11-26 20:16:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-26 20:16:44 | ------------------------------------

2019-11-26 20:16:44 | [Mutex] isItemNotified: node_hfb6ya0181:exists :: false

2019-11-26 20:16:44 | [Mutex] waiting for: [node_hfb6ya0181:create_node]

2019-11-26 20:16:44 | [Mutex] received everything.

2019-11-26 20:16:44 | [Mutex] isItemNotified: node_hfb6ya0181:create_node:success :: true

2019-11-26 20:16:44 | [Mutex] waiting for: [node_hfb6ya0181:subscribe_node]

2019-11-26 20:16:44 | [Mutex] received everything.

2019-11-26 20:16:44 | [Mutex] isItemNotified: node_hfb6ya0181:subscribe_node:success :: true

2019-11-26 20:16:44 |


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


2019-11-26 20:16:44 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:16:44 | command: <data><node>node_hfb6ya0181</node><entry><content>content_757sj50182</content></entry></data>

2019-11-26 20:16:44 | target: http://localhost:8088

2019-11-26 20:16:44 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-26 20:16:44 | entity: <data><node>node_hfb6ya0181</node><entry><content>content_757sj50182</content></entry></data>

2019-11-26 20:16:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:16:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:16:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3beb20de-7d17-420c-94f4-2adae7f21599</value></item-id></result>

2019-11-26 20:16:44 | contains: true

2019-11-26 20:16:44 | [Mutex] received everything.

2019-11-26 20:16:44 | [Mutex] isItemNotified: user_regular6ydpjp0180@localhost:message:received:content_757sj50182 :: true

2019-11-26 20:16:44 |


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


2019-11-26 20:16:44 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:16:44 | command: <data><node>node_hfb6ya0181</node><expire-at>2019-11-27T04:16:39Z</expire-at><entry><content>content_wy9opr0183</content></entry></data>

2019-11-26 20:16:44 | target: http://localhost:8088

2019-11-26 20:16:44 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-26 20:16:44 | entity: <data><node>node_hfb6ya0181</node><expire-at>2019-11-27T04:16:39Z</expire-at><entry><content>content_wy9opr0183</content></entry></data>

2019-11-26 20:16:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:16:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:16:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8535c598-ae5e-4086-bb23-c9d67e182782</value></item-id></result>

2019-11-26 20:16:44 | contains: true

2019-11-26 20:16:44 | [Mutex] waiting for: [user_regular6ydpjp0180@localhost:message:received:content_wy9opr0183]

2019-11-26 20:16:59 | [Mutex] timeout. Not received [user_regular6ydpjp0180@localhost:message:received:content_wy9opr0183]

2019-11-26 20:16:59 | [Mutex] isItemNotified: user_regular6ydpjp0180@localhost:message:received:content_wy9opr0183 :: false

2019-11-26 20:16:59 |


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


2019-11-26 20:16:59 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:16:59 | command: <data><node>node_hfb6ya0181</node><entry><content>content_f3bg5f0184</content></entry></data>

2019-11-26 20:16:59 | target: http://localhost:8088

2019-11-26 20:16:59 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-26 20:16:59 | entity: <data><node>node_hfb6ya0181</node><entry><content>content_f3bg5f0184</content></entry></data>

2019-11-26 20:16:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:16:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:16:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>916b526c-fddc-4346-bbd7-772a9b8bc263</value></item-id></result>

2019-11-26 20:16:59 | contains: true

2019-11-26 20:17:04 | [Mutex] waiting for: [user_regular6ydpjp0180@localhost:message:received:content_f3bg5f0184]

2019-11-26 20:17:04 | [Mutex] received everything.

2019-11-26 20:17:04 | [Mutex] isItemNotified: user_regular6ydpjp0180@localhost:message:received:content_f3bg5f0184 :: true

2019-11-26 20:17:04 |


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


2019-11-26 20:17:04 | [Mutex] received everything.

2019-11-26 20:17:04 | [Mutex] isItemNotified: node_hfb6ya0181:subscribe_node:success :: true

2019-11-26 20:17:04 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:17:04 | command: <data><node>node_hfb6ya0181</node><expire-at>2019-11-27T04:17:09Z</expire-at><entry><content>content_rztym0185</content></entry></data>

2019-11-26 20:17:04 | target: http://localhost:8088

2019-11-26 20:17:04 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2019-11-26 20:17:04 | entity: <data><node>node_hfb6ya0181</node><expire-at>2019-11-27T04:17:09Z</expire-at><entry><content>content_rztym0185</content></entry></data>

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

2019-11-26 20:17:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ae8a94e2-bc71-4620-a6a3-51b54be8b2eb</value></item-id></result>

2019-11-26 20:17:04 | contains: true

2019-11-26 20:17:12 | [Mutex] waiting for: [user_regular6ydpjp0180@localhost:message:received:content_rztym0185]

2019-11-26 20:17:12 | [Mutex] waiting for: [user_regular6ydpjp0180@localhost:message:received:content_rztym0185]

2019-11-26 20:17:27 | [Mutex] timeout. Not received [user_regular6ydpjp0180@localhost:message:received:content_rztym0185]

2019-11-26 20:17:27 | [Mutex] received everything.

2019-11-26 20:17:27 | [Mutex] isItemNotified: user_regular6ydpjp0180@localhost:message:received:content_rztym0185 :: false

2019-11-26 20:17:27 | [Mutex] isItemNotified: admin@localhost:message:received:content_rztym0185 :: true