Test duration : 8.945s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2021-10-03 23:16:02 |
2021-10-03 23:16:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:02 | ------------------------------------ 2021-10-03 23:16:02 | [Mutex] waiting for: [configured:node:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:node-8fe04e87-a287-4283-8bd9-800654f68977] 2021-10-03 23:16:02 | [Mutex] received everything. 2021-10-03 23:16:02 | [Mutex] isItemNotified: configured:node:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:node-8fe04e87-a287-4283-8bd9-800654f68977 :: true 2021-10-03 23:16:03 | [Mutex] waiting for: [received:nodes:25b188f7-6a9a-4df5-8666-ad3a9cb701ff:localhost] 2021-10-03 23:16:03 | [Mutex] waiting for: [received:nodes:25b188f7-6a9a-4df5-8666-ad3a9cb701ff:localhost] 2021-10-03 23:16:03 | [Mutex] received everything. 2021-10-03 23:16:03 | [Mutex] isItemNotified: received:node:25b188f7-6a9a-4df5-8666-ad3a9cb701ff:localhost:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:Node bbe52cc5-a9f4-471c-b80b-be6839d6e65c :: true 2021-10-03 23:16:03 | [Mutex] waiting for: [received:nodes:749d63b8-43f5-41f6-84e1-a6c27857ecdd:localhost] 2021-10-03 23:16:03 | [Mutex] received everything. 2021-10-03 23:16:03 | [Mutex] isItemNotified: received:node:749d63b8-43f5-41f6-84e1-a6c27857ecdd:localhost:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:Node bbe52cc5-a9f4-471c-b80b-be6839d6e65c :: false |
createNodes | 1.647s |
2021-10-03 23:16:00 |
2021-10-03 23:16:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:00 | ------------------------------------ 2021-10-03 23:16:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "pubsub#title": "Node bbe52cc5-a9f4-471c-b80b-be6839d6e65c" } 2021-10-03 23:16:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:16:01 | [Mutex] waiting for: [received:nodes:8f4695eb-31a1-457d-b17f-2fd4d6591ad3:localhost] 2021-10-03 23:16:01 | [Mutex] waiting for: [received:nodes:8f4695eb-31a1-457d-b17f-2fd4d6591ad3:localhost] 2021-10-03 23:16:01 | [Mutex] waiting for: [received:nodes:8f4695eb-31a1-457d-b17f-2fd4d6591ad3:localhost] 2021-10-03 23:16:01 | [Mutex] received everything. 2021-10-03 23:16:01 | [Mutex] isItemNotified: received:node:8f4695eb-31a1-457d-b17f-2fd4d6591ad3:localhost:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:Node bbe52cc5-a9f4-471c-b80b-be6839d6e65c :: true |
createSubnodes | 1.021s |
2021-10-03 23:16:01 |
2021-10-03 23:16:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:01 | ------------------------------------ 2021-10-03 23:16:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8fe04e87-a287-4283-8bd9-800654f68977", "pubsub#title": "Node 8fe04e87-a287-4283-8bd9-800654f68977" } 2021-10-03 23:16:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:16:02 | [Mutex] waiting for: [received:nodes:3722edb4-9ea1-4877-b28c-1261cae9fbde:localhost] 2021-10-03 23:16:02 | [Mutex] received everything. 2021-10-03 23:16:02 | [Mutex] isItemNotified: received:node:3722edb4-9ea1-4877-b28c-1261cae9fbde:localhost:node-8fe04e87-a287-4283-8bd9-800654f68977:Node 8fe04e87-a287-4283-8bd9-800654f68977 :: true |
deleteNodes | 1.022s |
2021-10-03 23:16:07 |
2021-10-03 23:16:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:07 | ------------------------------------ 2021-10-03 23:16:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8fe04e87-a287-4283-8bd9-800654f68977" } 2021-10-03 23:16:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:16:08 | [Mutex] waiting for: [received:nodes:726e52f6-521f-4147-90ab-0772260cf6b7:localhost] 2021-10-03 23:16:08 | [Mutex] received everything. 2021-10-03 23:16:08 | [Mutex] isItemNotified: received:node:726e52f6-521f-4147-90ab-0772260cf6b7:localhost:node-8fe04e87-a287-4283-8bd9-800654f68977:Node 8fe04e87-a287-4283-8bd9-800654f68977 :: false |
deleteSubnodes | 1.024s |
2021-10-03 23:16:06 |
2021-10-03 23:16:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:06 | ------------------------------------ 2021-10-03 23:16:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c" } 2021-10-03 23:16:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:16:07 | [Mutex] waiting for: [received:nodes:08eee0aa-4e01-47b1-8839-030b6521f351:localhost] 2021-10-03 23:16:07 | [Mutex] received everything. 2021-10-03 23:16:07 | [Mutex] isItemNotified: received:node:08eee0aa-4e01-47b1-8839-030b6521f351:localhost:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:Node bbe52cc5-a9f4-471c-b80b-be6839d6e65c :: false 2021-10-03 23:16:07 | [Mutex] waiting for: [received:nodes:b74b0eaa-aab1-4201-a06a-ef19d93de4bc:localhost] 2021-10-03 23:16:07 | [Mutex] received everything. 2021-10-03 23:16:07 | [Mutex] isItemNotified: received:node:b74b0eaa-aab1-4201-a06a-ef19d93de4bc:localhost:node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c:Node bbe52cc5-a9f4-471c-b80b-be6839d6e65c :: false |
publishItemsToNodes | 0.047s |
2021-10-03 23:16:04 |
2021-10-03 23:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:04 | ------------------------------------ 2021-10-03 23:16:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "entry": "<test>item-58e17d61-54b3-4291-83bf-86655e920a96</test>", "item-id": "item-58e17d61-54b3-4291-83bf-86655e920a96" } 2021-10-03 23:16:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-58e17d61-54b3-4291-83bf-86655e920a96" } 2021-10-03 23:16:04 | [Mutex] received everything. 2021-10-03 23:16:04 | [Mutex] isItemNotified: published:item:notifieditem-58e17d61-54b3-4291-83bf-86655e920a96:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-10-03 23:16:05 |
2021-10-03 23:16:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:05 | ------------------------------------ 2021-10-03 23:16:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "item-id": "item-58e17d61-54b3-4291-83bf-86655e920a96" } 2021-10-03 23:16:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-58e17d61-54b3-4291-83bf-86655e920a96" } 2021-10-03 23:16:05 | [Mutex] received everything. 2021-10-03 23:16:05 | [Mutex] isItemNotified: retracted:item:notifieditem-58e17d61-54b3-4291-83bf-86655e920a96:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.064s |
2021-10-03 23:16:04 |
2021-10-03 23:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:04 | ------------------------------------ 2021-10-03 23:16:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "item-id": "item-58e17d61-54b3-4291-83bf-86655e920a96" } 2021-10-03 23:16:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "item-id": "item-58e17d61-54b3-4291-83bf-86655e920a96", "item": [ "<item id=\"item-58e17d61-54b3-4291-83bf-86655e920a96\"><test>item-58e17d61-54b3-4291-83bf-86655e920a96</test></item>" ] } 2021-10-03 23:16:04 | [Mutex] notify: [retrieved:item:item-58e17d61-54b3-4291-83bf-86655e920a96:payload-matches:true:localhost] 2021-10-03 23:16:04 | [Mutex] received everything. 2021-10-03 23:16:04 | [Mutex] isItemNotified: retrieved:item:item-58e17d61-54b3-4291-83bf-86655e920a96:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-10-03 23:16:04 |
2021-10-03 23:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:04 | ------------------------------------ 2021-10-03 23:16:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-03 23:16:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "test", "node-8fe04e87-a287-4283-8bd9-800654f68977" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-10-03 23:16:05 |
2021-10-03 23:16:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:05 | ------------------------------------ 2021-10-03 23:16:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c)" } 2021-10-03 23:16:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2021-10-03 23:16:03 |
2021-10-03 23:16:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:03 | ------------------------------------ 2021-10-03 23:16:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "jids": [ "admin@test-domain.com" ] } 2021-10-03 23:16:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-10-03 23:16:05 |
2021-10-03 23:16:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:16:05 | ------------------------------------ 2021-10-03 23:16:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bbe52cc5-a9f4-471c-b80b-be6839d6e65c", "jids": [ "admin@test-domain.com" ] } 2021-10-03 23:16:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |