Test duration : 8.924s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.122s |
2020-09-24 00:35:41 |
2020-09-24 00:35:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:41 | ------------------------------------ 2020-09-24 00:35:41 | [Mutex] waiting for: [configured:node:node-71677edd-c433-436e-83a4-5e17c29c91f0:node-ad42d2ff-da83-4909-b456-3c2a475ac5cf] 2020-09-24 00:35:41 | [Mutex] received everything. 2020-09-24 00:35:41 | [Mutex] isItemNotified: configured:node:node-71677edd-c433-436e-83a4-5e17c29c91f0:node-ad42d2ff-da83-4909-b456-3c2a475ac5cf :: true 2020-09-24 00:35:42 | [Mutex] waiting for: [received:nodes:084ccd5b-a18b-442f-8253-b666ab7155ee:localhost] 2020-09-24 00:35:42 | [Mutex] received everything. 2020-09-24 00:35:42 | [Mutex] isItemNotified: received:node:084ccd5b-a18b-442f-8253-b666ab7155ee:localhost:node-71677edd-c433-436e-83a4-5e17c29c91f0:Node 71677edd-c433-436e-83a4-5e17c29c91f0 :: true 2020-09-24 00:35:42 | [Mutex] waiting for: [received:nodes:8028f1cb-8e46-4e04-bf58-478480a954fe:localhost] 2020-09-24 00:35:42 | [Mutex] waiting for: [received:nodes:8028f1cb-8e46-4e04-bf58-478480a954fe:localhost] 2020-09-24 00:35:42 | [Mutex] received everything. 2020-09-24 00:35:42 | [Mutex] isItemNotified: received:node:8028f1cb-8e46-4e04-bf58-478480a954fe:localhost:node-71677edd-c433-436e-83a4-5e17c29c91f0:Node 71677edd-c433-436e-83a4-5e17c29c91f0 :: false |
createNodes | 1.666s |
2020-09-24 00:35:39 |
2020-09-24 00:35:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:39 | ------------------------------------ 2020-09-24 00:35:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "pubsub#title": "Node 71677edd-c433-436e-83a4-5e17c29c91f0" } 2020-09-24 00:35:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-24 00:35:40 | [Mutex] waiting for: [received:nodes:7dad1b1c-8c5b-4ec8-8e2b-12e1e5a177fd:localhost] 2020-09-24 00:35:40 | [Mutex] received everything. 2020-09-24 00:35:40 | [Mutex] isItemNotified: received:node:7dad1b1c-8c5b-4ec8-8e2b-12e1e5a177fd:localhost:node-71677edd-c433-436e-83a4-5e17c29c91f0:Node 71677edd-c433-436e-83a4-5e17c29c91f0 :: true |
createSubnodes | 1.045s |
2020-09-24 00:35:40 |
2020-09-24 00:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:40 | ------------------------------------ 2020-09-24 00:35:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ad42d2ff-da83-4909-b456-3c2a475ac5cf", "pubsub#title": "Node ad42d2ff-da83-4909-b456-3c2a475ac5cf" } 2020-09-24 00:35:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-24 00:35:41 | [Mutex] waiting for: [received:nodes:821dc39d-90c8-47b7-90fc-eb57ea8a1c25:localhost] 2020-09-24 00:35:41 | [Mutex] received everything. 2020-09-24 00:35:41 | [Mutex] isItemNotified: received:node:821dc39d-90c8-47b7-90fc-eb57ea8a1c25:localhost:node-ad42d2ff-da83-4909-b456-3c2a475ac5cf:Node ad42d2ff-da83-4909-b456-3c2a475ac5cf :: true |
deleteNodes | 1.023s |
2020-09-24 00:35:46 |
2020-09-24 00:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:46 | ------------------------------------ 2020-09-24 00:35:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ad42d2ff-da83-4909-b456-3c2a475ac5cf" } 2020-09-24 00:35:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-24 00:35:47 | [Mutex] waiting for: [received:nodes:728cfe77-cdaf-41a3-ac69-7077aaaa87f9:localhost] 2020-09-24 00:35:47 | [Mutex] received everything. 2020-09-24 00:35:47 | [Mutex] isItemNotified: received:node:728cfe77-cdaf-41a3-ac69-7077aaaa87f9:localhost:node-ad42d2ff-da83-4909-b456-3c2a475ac5cf:Node ad42d2ff-da83-4909-b456-3c2a475ac5cf :: false |
deleteSubnodes | 1.027s |
2020-09-24 00:35:45 |
2020-09-24 00:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:45 | ------------------------------------ 2020-09-24 00:35:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0" } 2020-09-24 00:35:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-24 00:35:46 | [Mutex] waiting for: [received:nodes:fed99580-7760-4b5b-a8c7-1306ceae8d6f:localhost] 2020-09-24 00:35:46 | [Mutex] waiting for: [received:nodes:fed99580-7760-4b5b-a8c7-1306ceae8d6f:localhost] 2020-09-24 00:35:46 | [Mutex] received everything. 2020-09-24 00:35:46 | [Mutex] isItemNotified: received:node:fed99580-7760-4b5b-a8c7-1306ceae8d6f:localhost:node-71677edd-c433-436e-83a4-5e17c29c91f0:Node 71677edd-c433-436e-83a4-5e17c29c91f0 :: false 2020-09-24 00:35:46 | [Mutex] waiting for: [received:nodes:4cd5e09c-29a1-455a-8c90-3700366b6cab:localhost] 2020-09-24 00:35:46 | [Mutex] received everything. 2020-09-24 00:35:46 | [Mutex] isItemNotified: received:node:4cd5e09c-29a1-455a-8c90-3700366b6cab:localhost:node-71677edd-c433-436e-83a4-5e17c29c91f0:Node 71677edd-c433-436e-83a4-5e17c29c91f0 :: false |
publishItemsToNodes | 0.030s |
2020-09-24 00:35:43 |
2020-09-24 00:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:43 | ------------------------------------ 2020-09-24 00:35:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "entry": "<test>item-fe017d6a-6646-4054-b061-89ddcabfbd98</test>", "item-id": "item-fe017d6a-6646-4054-b061-89ddcabfbd98" } 2020-09-24 00:35:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fe017d6a-6646-4054-b061-89ddcabfbd98" } 2020-09-24 00:35:43 | [Mutex] waiting for: [published:item:notifieditem-fe017d6a-6646-4054-b061-89ddcabfbd98:admin@test-domain.com] 2020-09-24 00:35:43 | [Mutex] received everything. 2020-09-24 00:35:43 | [Mutex] isItemNotified: published:item:notifieditem-fe017d6a-6646-4054-b061-89ddcabfbd98:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-09-24 00:35:44 |
2020-09-24 00:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:44 | ------------------------------------ 2020-09-24 00:35:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "item-id": "item-fe017d6a-6646-4054-b061-89ddcabfbd98" } 2020-09-24 00:35:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fe017d6a-6646-4054-b061-89ddcabfbd98" } 2020-09-24 00:35:44 | [Mutex] received everything. 2020-09-24 00:35:44 | [Mutex] isItemNotified: retracted:item:notifieditem-fe017d6a-6646-4054-b061-89ddcabfbd98:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.080s |
2020-09-24 00:35:43 |
2020-09-24 00:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:43 | ------------------------------------ 2020-09-24 00:35:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "item-id": "item-fe017d6a-6646-4054-b061-89ddcabfbd98" } 2020-09-24 00:35:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "item-id": "item-fe017d6a-6646-4054-b061-89ddcabfbd98", "item": [ "<item id=\"item-fe017d6a-6646-4054-b061-89ddcabfbd98\"><test>item-fe017d6a-6646-4054-b061-89ddcabfbd98</test></item>" ] } 2020-09-24 00:35:43 | [Mutex] notify: [retrieved:item:item-fe017d6a-6646-4054-b061-89ddcabfbd98:payload-matches:true:localhost] 2020-09-24 00:35:43 | [Mutex] received everything. 2020-09-24 00:35:43 | [Mutex] isItemNotified: retrieved:item:item-fe017d6a-6646-4054-b061-89ddcabfbd98:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-24 00:35:43 |
2020-09-24 00:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:43 | ------------------------------------ 2020-09-24 00:35:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-24 00:35:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ad42d2ff-da83-4909-b456-3c2a475ac5cf", "node-71677edd-c433-436e-83a4-5e17c29c91f0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-24 00:35:44 |
2020-09-24 00:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:44 | ------------------------------------ 2020-09-24 00:35:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-71677edd-c433-436e-83a4-5e17c29c91f0)" } 2020-09-24 00:35:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-24 00:35:42 |
2020-09-24 00:35:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:42 | ------------------------------------ 2020-09-24 00:35:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "jids": [ "admin@test-domain.com" ] } 2020-09-24 00:35:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2020-09-24 00:35:44 |
2020-09-24 00:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-24 00:35:44 | ------------------------------------ 2020-09-24 00:35:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-71677edd-c433-436e-83a4-5e17c29c91f0", "jids": [ "admin@test-domain.com" ] } 2020-09-24 00:35:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |