Test duration : 9.120s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2020-12-21 21:29:38 |
2020-12-21 21:29:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:38 | ------------------------------------ 2020-12-21 21:29:38 | [Mutex] waiting for: [configured:node:node-390ab4d2-8cad-4475-b074-ace941c3a32e:node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577] 2020-12-21 21:29:38 | [Mutex] received everything. 2020-12-21 21:29:38 | [Mutex] isItemNotified: configured:node:node-390ab4d2-8cad-4475-b074-ace941c3a32e:node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577 :: true 2020-12-21 21:29:39 | [Mutex] waiting for: [received:nodes:36330d32-288c-4c45-9a70-05370802f8cd:localhost] 2020-12-21 21:29:39 | [Mutex] received everything. 2020-12-21 21:29:39 | [Mutex] isItemNotified: received:node:36330d32-288c-4c45-9a70-05370802f8cd:localhost:node-390ab4d2-8cad-4475-b074-ace941c3a32e:Node 390ab4d2-8cad-4475-b074-ace941c3a32e :: true 2020-12-21 21:29:39 | [Mutex] waiting for: [received:nodes:3d1998c1-bf39-4751-bd0c-cfedb823a71a:localhost] 2020-12-21 21:29:39 | [Mutex] received everything. 2020-12-21 21:29:39 | [Mutex] isItemNotified: received:node:3d1998c1-bf39-4751-bd0c-cfedb823a71a:localhost:node-390ab4d2-8cad-4475-b074-ace941c3a32e:Node 390ab4d2-8cad-4475-b074-ace941c3a32e :: false |
createNodes | 1.628s |
2020-12-21 21:29:35 |
2020-12-21 21:29:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:35 | ------------------------------------ 2020-12-21 21:29:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "pubsub#title": "Node 390ab4d2-8cad-4475-b074-ace941c3a32e" } 2020-12-21 21:29:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-21 21:29:37 | [Mutex] waiting for: [received:nodes:b77171ac-0561-4d19-a5a0-9551845e526b:localhost] 2020-12-21 21:29:37 | [Mutex] waiting for: [received:nodes:b77171ac-0561-4d19-a5a0-9551845e526b:localhost] 2020-12-21 21:29:37 | [Mutex] received everything. 2020-12-21 21:29:37 | [Mutex] isItemNotified: received:node:b77171ac-0561-4d19-a5a0-9551845e526b:localhost:node-390ab4d2-8cad-4475-b074-ace941c3a32e:Node 390ab4d2-8cad-4475-b074-ace941c3a32e :: true |
createSubnodes | 1.032s |
2020-12-21 21:29:37 |
2020-12-21 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:37 | ------------------------------------ 2020-12-21 21:29:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577", "pubsub#title": "Node 55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577" } 2020-12-21 21:29:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-21 21:29:38 | [Mutex] waiting for: [received:nodes:13816512-fdea-4cf4-b979-e27b8ffb5189:localhost] 2020-12-21 21:29:38 | [Mutex] received everything. 2020-12-21 21:29:38 | [Mutex] isItemNotified: received:node:13816512-fdea-4cf4-b979-e27b8ffb5189:localhost:node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577:Node 55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577 :: true |
deleteNodes | 1.020s |
2020-12-21 21:29:42 |
2020-12-21 21:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:42 | ------------------------------------ 2020-12-21 21:29:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577" } 2020-12-21 21:29:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-21 21:29:43 | [Mutex] waiting for: [received:nodes:bc14a3e3-8a41-4152-af35-d1284dd8d20b:localhost] 2020-12-21 21:29:43 | [Mutex] received everything. 2020-12-21 21:29:43 | [Mutex] isItemNotified: received:node:bc14a3e3-8a41-4152-af35-d1284dd8d20b:localhost:node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577:Node 55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577 :: false |
deleteSubnodes | 1.029s |
2020-12-21 21:29:41 |
2020-12-21 21:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:41 | ------------------------------------ 2020-12-21 21:29:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e" } 2020-12-21 21:29:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-21 21:29:42 | [Mutex] waiting for: [received:nodes:20bf02ac-7b1c-4b0a-8d92-5590cb0bdca5:localhost] 2020-12-21 21:29:42 | [Mutex] received everything. 2020-12-21 21:29:42 | [Mutex] isItemNotified: received:node:20bf02ac-7b1c-4b0a-8d92-5590cb0bdca5:localhost:node-390ab4d2-8cad-4475-b074-ace941c3a32e:Node 390ab4d2-8cad-4475-b074-ace941c3a32e :: false 2020-12-21 21:29:42 | [Mutex] waiting for: [received:nodes:c5862945-ede3-4329-8268-5a7a9975881c:localhost] 2020-12-21 21:29:42 | [Mutex] received everything. 2020-12-21 21:29:42 | [Mutex] isItemNotified: received:node:c5862945-ede3-4329-8268-5a7a9975881c:localhost:node-390ab4d2-8cad-4475-b074-ace941c3a32e:Node 390ab4d2-8cad-4475-b074-ace941c3a32e :: false |
publishItemsToNodes | 0.034s |
2020-12-21 21:29:40 |
2020-12-21 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:40 | ------------------------------------ 2020-12-21 21:29:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "entry": "<test>item-8d32211c-166e-424e-820c-b991a03fa12f</test>", "item-id": "item-8d32211c-166e-424e-820c-b991a03fa12f" } 2020-12-21 21:29:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d32211c-166e-424e-820c-b991a03fa12f" } 2020-12-21 21:29:40 | [Mutex] waiting for: [published:item:notifieditem-8d32211c-166e-424e-820c-b991a03fa12f:admin@test-domain.com] 2020-12-21 21:29:40 | [Mutex] received everything. 2020-12-21 21:29:40 | [Mutex] isItemNotified: published:item:notifieditem-8d32211c-166e-424e-820c-b991a03fa12f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-12-21 21:29:40 |
2020-12-21 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:40 | ------------------------------------ 2020-12-21 21:29:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "item-id": "item-8d32211c-166e-424e-820c-b991a03fa12f" } 2020-12-21 21:29:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d32211c-166e-424e-820c-b991a03fa12f" } 2020-12-21 21:29:40 | [Mutex] waiting for: [retracted:item:notifieditem-8d32211c-166e-424e-820c-b991a03fa12f:admin@test-domain.com] 2020-12-21 21:29:40 | [Mutex] received everything. 2020-12-21 21:29:40 | [Mutex] isItemNotified: retracted:item:notifieditem-8d32211c-166e-424e-820c-b991a03fa12f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.097s |
2020-12-21 21:29:40 |
2020-12-21 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:40 | ------------------------------------ 2020-12-21 21:29:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "item-id": "item-8d32211c-166e-424e-820c-b991a03fa12f" } 2020-12-21 21:29:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "item-id": "item-8d32211c-166e-424e-820c-b991a03fa12f", "item": [ "<item id=\"item-8d32211c-166e-424e-820c-b991a03fa12f\"><test>item-8d32211c-166e-424e-820c-b991a03fa12f</test></item>" ] } 2020-12-21 21:29:40 | [Mutex] notify: [retrieved:item:item-8d32211c-166e-424e-820c-b991a03fa12f:payload-matches:true:localhost] 2020-12-21 21:29:40 | [Mutex] received everything. 2020-12-21 21:29:40 | [Mutex] isItemNotified: retrieved:item:item-8d32211c-166e-424e-820c-b991a03fa12f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-12-21 21:29:40 |
2020-12-21 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:40 | ------------------------------------ 2020-12-21 21:29:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-21 21:29:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "test", "node-55341ea8-ee7b-4f2c-9ddf-d12c4c8b5577" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-12-21 21:29:40 |
2020-12-21 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:40 | ------------------------------------ 2020-12-21 21:29:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-390ab4d2-8cad-4475-b074-ace941c3a32e)" } 2020-12-21 21:29:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-12-21 21:29:39 |
2020-12-21 21:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:39 | ------------------------------------ 2020-12-21 21:29:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "jids": [ "admin@test-domain.com" ] } 2020-12-21 21:29:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2020-12-21 21:29:40 |
2020-12-21 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-21 21:29:40 | ------------------------------------ 2020-12-21 21:29:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-390ab4d2-8cad-4475-b074-ace941c3a32e", "jids": [ "admin@test-domain.com" ] } 2020-12-21 21:29:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |