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

Test duration: 45.251s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.604s
2020-05-25 23:04:59 |

2020-05-25 23:04:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-05-25 23:04:59 | ------------------------------------

2020-05-25 23:04:59 | [Mutex] isItemNotified: node_e6x5yz0206:exists :: false

2020-05-25 23:04:59 | [Mutex] waiting for: [node_e6x5yz0206:create_node]

2020-05-25 23:04:59 | [Mutex] waiting for: [node_e6x5yz0206:create_node]

2020-05-25 23:04:59 | [Mutex] received everything.

2020-05-25 23:04:59 | [Mutex] isItemNotified: node_e6x5yz0206:create_node:success :: true

2020-05-25 23:04:59 | [Mutex] waiting for: [node_e6x5yz0206:subscribe_node]

2020-05-25 23:04:59 | [Mutex] waiting for: [node_e6x5yz0206:subscribe_node]

2020-05-25 23:04:59 | [Mutex] received everything.

2020-05-25 23:04:59 | [Mutex] isItemNotified: node_e6x5yz0206:subscribe_node:success :: true

2020-05-25 23:04:59 |


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


2020-05-25 23:04:59 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-25 23:04:59 | command: <data><node>node_e6x5yz0206</node><entry><content>content_7v07vc0207</content></entry></data>

2020-05-25 23:04:59 | target: http://localhost:8088

2020-05-25 23:04:59 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-25 23:04:59 | entity: <data><node>node_e6x5yz0206</node><entry><content>content_7v07vc0207</content></entry></data>

2020-05-25 23:04:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:04:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-25 23:04:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e0d2ee66-1442-4216-a78f-b491ec170228</value></item-id></result>

2020-05-25 23:04:59 | contains: true

2020-05-25 23:04:59 | [Mutex] received everything.

2020-05-25 23:04:59 | [Mutex] isItemNotified: user_regular4nobuv0205@localhost:message:received:content_7v07vc0207 :: true

2020-05-25 23:04:59 |


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


2020-05-25 23:04:59 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-25 23:04:59 | command: <data><node>node_e6x5yz0206</node><expire-at>2020-05-26T06:04:54Z</expire-at><entry><content>content_gh70140208</content></entry></data>

2020-05-25 23:04:59 | target: http://localhost:8088

2020-05-25 23:04:59 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-25 23:04:59 | entity: <data><node>node_e6x5yz0206</node><expire-at>2020-05-26T06:04:54Z</expire-at><entry><content>content_gh70140208</content></entry></data>

2020-05-25 23:04:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:04:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-25 23:04:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1b0e3fec-cc10-4f1c-ab0c-6e32d9fde30b</value></item-id></result>

2020-05-25 23:04:59 | contains: true

2020-05-25 23:04:59 | [Mutex] waiting for: [user_regular4nobuv0205@localhost:message:received:content_gh70140208]

2020-05-25 23:05:14 | [Mutex] timeout. Not received [user_regular4nobuv0205@localhost:message:received:content_gh70140208]

2020-05-25 23:05:14 | [Mutex] isItemNotified: user_regular4nobuv0205@localhost:message:received:content_gh70140208 :: false

2020-05-25 23:05:14 |


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


2020-05-25 23:05:14 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-25 23:05:14 | command: <data><node>node_e6x5yz0206</node><entry><content>content_sj7xkt0209</content></entry></data>

2020-05-25 23:05:14 | target: http://localhost:8088

2020-05-25 23:05:14 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-25 23:05:14 | entity: <data><node>node_e6x5yz0206</node><entry><content>content_sj7xkt0209</content></entry></data>

2020-05-25 23:05:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:05:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-25 23:05:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>0d7f766a-d3d7-44dc-b821-f2003906c9fc</value></item-id></result>

2020-05-25 23:05:15 | contains: true

2020-05-25 23:05:20 | [Mutex] waiting for: [user_regular4nobuv0205@localhost:message:received:content_sj7xkt0209]

2020-05-25 23:05:20 | [Mutex] waiting for: [user_regular4nobuv0205@localhost:message:received:content_sj7xkt0209]

2020-05-25 23:05:20 | [Mutex] received everything.

2020-05-25 23:05:20 | [Mutex] isItemNotified: user_regular4nobuv0205@localhost:message:received:content_sj7xkt0209 :: true

2020-05-25 23:05:20 |


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


2020-05-25 23:05:20 | [Mutex] received everything.

2020-05-25 23:05:20 | [Mutex] isItemNotified: node_e6x5yz0206:subscribe_node:success :: true

2020-05-25 23:05:20 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-25 23:05:20 | command: <data><node>node_e6x5yz0206</node><expire-at>2020-05-26T06:05:25Z</expire-at><entry><content>content_umdh0a0210</content></entry></data>

2020-05-25 23:05:20 | target: http://localhost:8088

2020-05-25 23:05:20 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-25 23:05:20 | entity: <data><node>node_e6x5yz0206</node><expire-at>2020-05-26T06:05:25Z</expire-at><entry><content>content_umdh0a0210</content></entry></data>

2020-05-25 23:05:20 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:05:20 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-25 23:05:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>eb83fce9-1acd-40e3-b5a2-977553d57706</value></item-id></result>

2020-05-25 23:05:20 | contains: true

2020-05-25 23:05:28 | [Mutex] waiting for: [user_regular4nobuv0205@localhost:message:received:content_umdh0a0210]

2020-05-25 23:05:28 | [Mutex] waiting for: [user_regular4nobuv0205@localhost:message:received:content_umdh0a0210]

2020-05-25 23:05:43 | [Mutex] timeout. Not received [user_regular4nobuv0205@localhost:message:received:content_umdh0a0210]

2020-05-25 23:05:43 | [Mutex] received everything.

2020-05-25 23:05:43 | [Mutex] isItemNotified: user_regular4nobuv0205@localhost:message:received:content_umdh0a0210 :: false

2020-05-25 23:05:43 | [Mutex] isItemNotified: admin@localhost:message:received:content_umdh0a0210 :: true