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.721s
2019-11-21 03:34:13 |

2019-11-21 03:34:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-21 03:34:13 | ------------------------------------

2019-11-21 03:34:13 | [Mutex] isItemNotified: node_du3dfy0184:exists :: false

2019-11-21 03:34:13 | [Mutex] waiting for: [node_du3dfy0184:create_node]

2019-11-21 03:34:13 | [Mutex] received everything.

2019-11-21 03:34:13 | [Mutex] isItemNotified: node_du3dfy0184:create_node:success :: true

2019-11-21 03:34:13 | [Mutex] waiting for: [node_du3dfy0184:subscribe_node]

2019-11-21 03:34:13 | [Mutex] received everything.

2019-11-21 03:34:13 | [Mutex] isItemNotified: node_du3dfy0184:subscribe_node:success :: true

2019-11-21 03:34:13 |


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


2019-11-21 03:34:13 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 03:34:13 | command: <data><node>node_du3dfy0184</node><entry><content>content_u1akh00185</content></entry></data>

2019-11-21 03:34:13 | target: http://localhost:8088

2019-11-21 03:34:13 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-21 03:34:13 | entity: <data><node>node_du3dfy0184</node><entry><content>content_u1akh00185</content></entry></data>

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

2019-11-21 03:34:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>0df7aed2-7f78-4421-9524-7a2b07476893</value></item-id></result>

2019-11-21 03:34:13 | contains: true

2019-11-21 03:34:13 | [Mutex] received everything.

2019-11-21 03:34:13 | [Mutex] isItemNotified: user_regular14m29g0183@localhost:message:received:content_u1akh00185 :: true

2019-11-21 03:34:13 |


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


2019-11-21 03:34:13 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 03:34:13 | command: <data><node>node_du3dfy0184</node><expire-at>2019-11-21T11:34:08Z</expire-at><entry><content>content_xbb1kj0186</content></entry></data>

2019-11-21 03:34:13 | target: http://localhost:8088

2019-11-21 03:34:13 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 03:34:13 | entity: <data><node>node_du3dfy0184</node><expire-at>2019-11-21T11:34:08Z</expire-at><entry><content>content_xbb1kj0186</content></entry></data>

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

2019-11-21 03:34:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>417c3aec-73d3-4a0f-9560-85374bb6c1f4</value></item-id></result>

2019-11-21 03:34:13 | contains: true

2019-11-21 03:34:13 | [Mutex] waiting for: [user_regular14m29g0183@localhost:message:received:content_xbb1kj0186]

2019-11-21 03:34:28 | [Mutex] timeout. Not received [user_regular14m29g0183@localhost:message:received:content_xbb1kj0186]

2019-11-21 03:34:28 | [Mutex] isItemNotified: user_regular14m29g0183@localhost:message:received:content_xbb1kj0186 :: false

2019-11-21 03:34:28 |


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


2019-11-21 03:34:28 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 03:34:28 | command: <data><node>node_du3dfy0184</node><entry><content>content_4jqlkg0187</content></entry></data>

2019-11-21 03:34:28 | target: http://localhost:8088

2019-11-21 03:34:28 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-21 03:34:28 | entity: <data><node>node_du3dfy0184</node><entry><content>content_4jqlkg0187</content></entry></data>

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

2019-11-21 03:34:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e4537250-94fc-49ce-aae1-b2592b10c129</value></item-id></result>

2019-11-21 03:34:28 | contains: true

2019-11-21 03:34:34 | [Mutex] waiting for: [user_regular14m29g0183@localhost:message:received:content_4jqlkg0187]

2019-11-21 03:34:34 | [Mutex] received everything.

2019-11-21 03:34:34 | [Mutex] isItemNotified: user_regular14m29g0183@localhost:message:received:content_4jqlkg0187 :: true

2019-11-21 03:34:34 |


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


2019-11-21 03:34:34 | [Mutex] received everything.

2019-11-21 03:34:34 | [Mutex] isItemNotified: node_du3dfy0184:subscribe_node:success :: true

2019-11-21 03:34:34 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 03:34:34 | command: <data><node>node_du3dfy0184</node><expire-at>2019-11-21T11:34:39Z</expire-at><entry><content>content_pqjjkx0188</content></entry></data>

2019-11-21 03:34:34 | target: http://localhost:8088

2019-11-21 03:34:34 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 03:34:34 | entity: <data><node>node_du3dfy0184</node><expire-at>2019-11-21T11:34:39Z</expire-at><entry><content>content_pqjjkx0188</content></entry></data>

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

2019-11-21 03:34:34 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d0cdc08b-93de-4967-8a37-63000a50abb9</value></item-id></result>

2019-11-21 03:34:34 | contains: true

2019-11-21 03:34:42 | [Mutex] waiting for: [user_regular14m29g0183@localhost:message:received:content_pqjjkx0188]

2019-11-21 03:34:42 | [Mutex] waiting for: [user_regular14m29g0183@localhost:message:received:content_pqjjkx0188]

2019-11-21 03:34:57 | [Mutex] timeout. Not received [user_regular14m29g0183@localhost:message:received:content_pqjjkx0188]

2019-11-21 03:34:57 | [Mutex] received everything.

2019-11-21 03:34:57 | [Mutex] isItemNotified: user_regular14m29g0183@localhost:message:received:content_pqjjkx0188 :: false

2019-11-21 03:34:57 | [Mutex] isItemNotified: admin@localhost:message:received:content_pqjjkx0188 :: true