Test duration : 8.772s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.125s |
2021-03-14 22:32:47 |
2021-03-14 22:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:47 | ------------------------------------ 2021-03-14 22:32:47 | [Mutex] waiting for: [configured:node:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:node-137214c1-368e-487b-b535-97350681fb9e] 2021-03-14 22:32:47 | [Mutex] received everything. 2021-03-14 22:32:47 | [Mutex] isItemNotified: configured:node:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:node-137214c1-368e-487b-b535-97350681fb9e :: true 2021-03-14 22:32:48 | [Mutex] waiting for: [received:nodes:3651e2c7-4e25-4b30-9574-bb6d1b7621d2:localhost] 2021-03-14 22:32:48 | [Mutex] received everything. 2021-03-14 22:32:48 | [Mutex] isItemNotified: received:node:3651e2c7-4e25-4b30-9574-bb6d1b7621d2:localhost:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:Node 5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6 :: true 2021-03-14 22:32:48 | [Mutex] waiting for: [received:nodes:42588c5c-af1e-4b8f-8aa2-a34120e08b9e:localhost] 2021-03-14 22:32:48 | [Mutex] received everything. 2021-03-14 22:32:48 | [Mutex] isItemNotified: received:node:42588c5c-af1e-4b8f-8aa2-a34120e08b9e:localhost:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:Node 5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6 :: false |
createNodes | 1.539s |
2021-03-14 22:32:45 |
2021-03-14 22:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:45 | ------------------------------------ 2021-03-14 22:32:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "pubsub#title": "Node 5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6" } 2021-03-14 22:32:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:32:46 | [Mutex] waiting for: [received:nodes:a1f2f9e5-dbab-45be-85a0-6d471f4c6864:localhost] 2021-03-14 22:32:46 | [Mutex] waiting for: [received:nodes:a1f2f9e5-dbab-45be-85a0-6d471f4c6864:localhost] 2021-03-14 22:32:46 | [Mutex] received everything. 2021-03-14 22:32:46 | [Mutex] isItemNotified: received:node:a1f2f9e5-dbab-45be-85a0-6d471f4c6864:localhost:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:Node 5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6 :: true |
createSubnodes | 1.023s |
2021-03-14 22:32:46 |
2021-03-14 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:46 | ------------------------------------ 2021-03-14 22:32:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-137214c1-368e-487b-b535-97350681fb9e", "pubsub#title": "Node 137214c1-368e-487b-b535-97350681fb9e" } 2021-03-14 22:32:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:32:47 | [Mutex] waiting for: [received:nodes:abcfc67e-07af-4a15-a20c-b31437c21f72:localhost] 2021-03-14 22:32:47 | [Mutex] waiting for: [received:nodes:abcfc67e-07af-4a15-a20c-b31437c21f72:localhost] 2021-03-14 22:32:47 | [Mutex] received everything. 2021-03-14 22:32:47 | [Mutex] isItemNotified: received:node:abcfc67e-07af-4a15-a20c-b31437c21f72:localhost:node-137214c1-368e-487b-b535-97350681fb9e:Node 137214c1-368e-487b-b535-97350681fb9e :: true |
deleteNodes | 1.017s |
2021-03-14 22:32:52 |
2021-03-14 22:32:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:52 | ------------------------------------ 2021-03-14 22:32:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-137214c1-368e-487b-b535-97350681fb9e" } 2021-03-14 22:32:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:32:53 | [Mutex] waiting for: [received:nodes:d6c25821-57f7-468c-9433-50d095874de8:localhost] 2021-03-14 22:32:53 | [Mutex] waiting for: [received:nodes:d6c25821-57f7-468c-9433-50d095874de8:localhost] 2021-03-14 22:32:53 | [Mutex] received everything. 2021-03-14 22:32:53 | [Mutex] isItemNotified: received:node:d6c25821-57f7-468c-9433-50d095874de8:localhost:node-137214c1-368e-487b-b535-97350681fb9e:Node 137214c1-368e-487b-b535-97350681fb9e :: false |
deleteSubnodes | 1.024s |
2021-03-14 22:32:51 |
2021-03-14 22:32:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:51 | ------------------------------------ 2021-03-14 22:32:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6" } 2021-03-14 22:32:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:32:52 | [Mutex] waiting for: [received:nodes:18656001-7a03-443b-b4a8-9ad0ab3cbfe5:localhost] 2021-03-14 22:32:52 | [Mutex] waiting for: [received:nodes:18656001-7a03-443b-b4a8-9ad0ab3cbfe5:localhost] 2021-03-14 22:32:52 | [Mutex] received everything. 2021-03-14 22:32:52 | [Mutex] isItemNotified: received:node:18656001-7a03-443b-b4a8-9ad0ab3cbfe5:localhost:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:Node 5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6 :: false 2021-03-14 22:32:52 | [Mutex] waiting for: [received:nodes:eeded402-a05f-4274-bd00-df580cf61b87:localhost] 2021-03-14 22:32:52 | [Mutex] received everything. 2021-03-14 22:32:52 | [Mutex] isItemNotified: received:node:eeded402-a05f-4274-bd00-df580cf61b87:localhost:node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6:Node 5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6 :: false |
publishItemsToNodes | 0.062s |
2021-03-14 22:32:49 |
2021-03-14 22:32:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:49 | ------------------------------------ 2021-03-14 22:32:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "entry": "<test>item-b1d5c579-816e-4c51-a08d-63924872511c</test>", "item-id": "item-b1d5c579-816e-4c51-a08d-63924872511c" } 2021-03-14 22:32:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b1d5c579-816e-4c51-a08d-63924872511c" } 2021-03-14 22:32:49 | [Mutex] waiting for: [published:item:notifieditem-b1d5c579-816e-4c51-a08d-63924872511c:admin@test-domain.com] 2021-03-14 22:32:50 | [Mutex] received everything. 2021-03-14 22:32:50 | [Mutex] isItemNotified: published:item:notifieditem-b1d5c579-816e-4c51-a08d-63924872511c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.080s |
2021-03-14 22:32:50 |
2021-03-14 22:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:50 | ------------------------------------ 2021-03-14 22:32:50 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "item-id": "item-b1d5c579-816e-4c51-a08d-63924872511c" } 2021-03-14 22:32:50 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b1d5c579-816e-4c51-a08d-63924872511c" } 2021-03-14 22:32:50 | [Mutex] waiting for: [retracted:item:notifieditem-b1d5c579-816e-4c51-a08d-63924872511c:admin@test-domain.com] 2021-03-14 22:32:50 | [Mutex] received everything. 2021-03-14 22:32:50 | [Mutex] isItemNotified: retracted:item:notifieditem-b1d5c579-816e-4c51-a08d-63924872511c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.039s |
2021-03-14 22:32:50 |
2021-03-14 22:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:50 | ------------------------------------ 2021-03-14 22:32:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "item-id": "item-b1d5c579-816e-4c51-a08d-63924872511c" } 2021-03-14 22:32:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "item-id": "item-b1d5c579-816e-4c51-a08d-63924872511c", "item": [ "<item id=\"item-b1d5c579-816e-4c51-a08d-63924872511c\"><test>item-b1d5c579-816e-4c51-a08d-63924872511c</test></item>" ] } 2021-03-14 22:32:50 | [Mutex] notify: [retrieved:item:item-b1d5c579-816e-4c51-a08d-63924872511c:payload-matches:true:localhost] 2021-03-14 22:32:50 | [Mutex] received everything. 2021-03-14 22:32:50 | [Mutex] isItemNotified: retrieved:item:item-b1d5c579-816e-4c51-a08d-63924872511c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.078s |
2021-03-14 22:32:50 |
2021-03-14 22:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:50 | ------------------------------------ 2021-03-14 22:32:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-14 22:32:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-137214c1-368e-487b-b535-97350681fb9e", "test", "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-03-14 22:32:50 |
2021-03-14 22:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:50 | ------------------------------------ 2021-03-14 22:32:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6)" } 2021-03-14 22:32:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-03-14 22:32:48 |
2021-03-14 22:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:48 | ------------------------------------ 2021-03-14 22:32:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "jids": [ "admin@test-domain.com" ] } 2021-03-14 22:32:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.070s |
2021-03-14 22:32:50 |
2021-03-14 22:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:32:50 | ------------------------------------ 2021-03-14 22:32:50 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5ef6267f-7b5d-4c8f-81a2-b086ffc7f6f6", "jids": [ "admin@test-domain.com" ] } 2021-03-14 22:32:50 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |