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

Test duration: 45.244s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.690s
2019-11-24 19:43:00 |

2019-11-24 19:43:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-24 19:43:00 | ------------------------------------

2019-11-24 19:43:00 | [Mutex] isItemNotified: node_e9l3430184:exists :: false

2019-11-24 19:43:00 | [Mutex] waiting for: [node_e9l3430184:create_node]

2019-11-24 19:43:00 | [Mutex] received everything.

2019-11-24 19:43:00 | [Mutex] isItemNotified: node_e9l3430184:create_node:success :: true

2019-11-24 19:43:00 | [Mutex] waiting for: [node_e9l3430184:subscribe_node]

2019-11-24 19:43:00 | [Mutex] received everything.

2019-11-24 19:43:00 | [Mutex] isItemNotified: node_e9l3430184:subscribe_node:success :: true

2019-11-24 19:43:00 |


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


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

2019-11-24 19:43:00 | command: <data><node>node_e9l3430184</node><entry><content>content_fkgd630185</content></entry></data>

2019-11-24 19:43:00 | target: http://localhost:8088

2019-11-24 19:43:00 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-24 19:43:00 | entity: <data><node>node_e9l3430184</node><entry><content>content_fkgd630185</content></entry></data>

2019-11-24 19:43:00 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 03:43:00 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 19:43:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f7f109ec-594e-4185-b33a-76c2f8c310ca</value></item-id></result>

2019-11-24 19:43:00 | contains: true

2019-11-24 19:43:00 | [Mutex] received everything.

2019-11-24 19:43:00 | [Mutex] isItemNotified: user_regular80pkbh0183@localhost:message:received:content_fkgd630185 :: true

2019-11-24 19:43:00 |


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


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

2019-11-24 19:43:00 | command: <data><node>node_e9l3430184</node><expire-at>2019-11-25T03:42:55Z</expire-at><entry><content>content_kcgx4l0186</content></entry></data>

2019-11-24 19:43:00 | target: http://localhost:8088

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

2019-11-24 19:43:00 | entity: <data><node>node_e9l3430184</node><expire-at>2019-11-25T03:42:55Z</expire-at><entry><content>content_kcgx4l0186</content></entry></data>

2019-11-24 19:43:00 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 03:43:00 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 19:43:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>0beb2b65-5f61-45f2-a048-8a34ba51401f</value></item-id></result>

2019-11-24 19:43:00 | contains: true

2019-11-24 19:43:00 | [Mutex] waiting for: [user_regular80pkbh0183@localhost:message:received:content_kcgx4l0186]

2019-11-24 19:43:15 | [Mutex] timeout. Not received [user_regular80pkbh0183@localhost:message:received:content_kcgx4l0186]

2019-11-24 19:43:15 | [Mutex] isItemNotified: user_regular80pkbh0183@localhost:message:received:content_kcgx4l0186 :: false

2019-11-24 19:43:15 |


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


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

2019-11-24 19:43:15 | command: <data><node>node_e9l3430184</node><entry><content>content_50vk0n0187</content></entry></data>

2019-11-24 19:43:15 | target: http://localhost:8088

2019-11-24 19:43:15 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-24 19:43:15 | entity: <data><node>node_e9l3430184</node><entry><content>content_50vk0n0187</content></entry></data>

2019-11-24 19:43:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 03:43:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 19:43:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>cc06b44f-035f-4abf-a0c1-03413b18be44</value></item-id></result>

2019-11-24 19:43:15 | contains: true

2019-11-24 19:43:20 | [Mutex] waiting for: [user_regular80pkbh0183@localhost:message:received:content_50vk0n0187]

2019-11-24 19:43:20 | [Mutex] waiting for: [user_regular80pkbh0183@localhost:message:received:content_50vk0n0187]

2019-11-24 19:43:20 | [Mutex] received everything.

2019-11-24 19:43:20 | [Mutex] isItemNotified: user_regular80pkbh0183@localhost:message:received:content_50vk0n0187 :: true

2019-11-24 19:43:20 |


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


2019-11-24 19:43:20 | [Mutex] received everything.

2019-11-24 19:43:20 | [Mutex] isItemNotified: node_e9l3430184:subscribe_node:success :: true

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

2019-11-24 19:43:20 | command: <data><node>node_e9l3430184</node><expire-at>2019-11-25T03:43:25Z</expire-at><entry><content>content_aj8mgn0188</content></entry></data>

2019-11-24 19:43:20 | target: http://localhost:8088

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

2019-11-24 19:43:20 | entity: <data><node>node_e9l3430184</node><expire-at>2019-11-25T03:43:25Z</expire-at><entry><content>content_aj8mgn0188</content></entry></data>

2019-11-24 19:43:20 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 03:43:20 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 19:43:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1a67fc19-4846-4c9b-8312-a5addaf15286</value></item-id></result>

2019-11-24 19:43:20 | contains: true

2019-11-24 19:43:29 | [Mutex] waiting for: [user_regular80pkbh0183@localhost:message:received:content_aj8mgn0188]

2019-11-24 19:43:29 | [Mutex] waiting for: [user_regular80pkbh0183@localhost:message:received:content_aj8mgn0188]

2019-11-24 19:43:44 | [Mutex] timeout. Not received [user_regular80pkbh0183@localhost:message:received:content_aj8mgn0188]

2019-11-24 19:43:44 | [Mutex] received everything.

2019-11-24 19:43:44 | [Mutex] isItemNotified: user_regular80pkbh0183@localhost:message:received:content_aj8mgn0188 :: false

2019-11-24 19:43:44 | [Mutex] isItemNotified: admin@localhost:message:received:content_aj8mgn0188 :: true