Test duration : 8.925s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2020-09-27 22:47:18 |
2020-09-27 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:18 | ------------------------------------ 2020-09-27 22:47:18 | [Mutex] waiting for: [configured:node:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:node-71a9c389-b6c7-4bff-adef-95dc474c374c] 2020-09-27 22:47:19 | [Mutex] received everything. 2020-09-27 22:47:19 | [Mutex] isItemNotified: configured:node:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:node-71a9c389-b6c7-4bff-adef-95dc474c374c :: true 2020-09-27 22:47:20 | [Mutex] waiting for: [received:nodes:33e12735-8b4f-42d9-bf7e-a904f80f1640:localhost] 2020-09-27 22:47:20 | [Mutex] received everything. 2020-09-27 22:47:20 | [Mutex] isItemNotified: received:node:33e12735-8b4f-42d9-bf7e-a904f80f1640:localhost:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:Node c7a3dc93-04a2-4811-a968-36f9ac49969f :: true 2020-09-27 22:47:20 | [Mutex] waiting for: [received:nodes:f3585a71-56e1-47fb-b4e7-ac31a96c02b1:localhost] 2020-09-27 22:47:20 | [Mutex] received everything. 2020-09-27 22:47:20 | [Mutex] isItemNotified: received:node:f3585a71-56e1-47fb-b4e7-ac31a96c02b1:localhost:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:Node c7a3dc93-04a2-4811-a968-36f9ac49969f :: false |
createNodes | 1.706s |
2020-09-27 22:47:16 |
2020-09-27 22:47:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:16 | ------------------------------------ 2020-09-27 22:47:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "pubsub#title": "Node c7a3dc93-04a2-4811-a968-36f9ac49969f" } 2020-09-27 22:47:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 22:47:17 | [Mutex] waiting for: [received:nodes:678bbd38-c388-4030-bbbb-d1d3953ffc1e:localhost] 2020-09-27 22:47:17 | [Mutex] received everything. 2020-09-27 22:47:17 | [Mutex] isItemNotified: received:node:678bbd38-c388-4030-bbbb-d1d3953ffc1e:localhost:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:Node c7a3dc93-04a2-4811-a968-36f9ac49969f :: true |
createSubnodes | 1.023s |
2020-09-27 22:47:17 |
2020-09-27 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:17 | ------------------------------------ 2020-09-27 22:47:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-71a9c389-b6c7-4bff-adef-95dc474c374c", "pubsub#title": "Node 71a9c389-b6c7-4bff-adef-95dc474c374c" } 2020-09-27 22:47:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 22:47:18 | [Mutex] waiting for: [received:nodes:c59b529a-0a0e-48cd-9c8c-2f65ddf6e2cb:localhost] 2020-09-27 22:47:18 | [Mutex] received everything. 2020-09-27 22:47:18 | [Mutex] isItemNotified: received:node:c59b529a-0a0e-48cd-9c8c-2f65ddf6e2cb:localhost:node-71a9c389-b6c7-4bff-adef-95dc474c374c:Node 71a9c389-b6c7-4bff-adef-95dc474c374c :: true |
deleteNodes | 1.017s |
2020-09-27 22:47:23 |
2020-09-27 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:23 | ------------------------------------ 2020-09-27 22:47:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-71a9c389-b6c7-4bff-adef-95dc474c374c" } 2020-09-27 22:47:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 22:47:24 | [Mutex] waiting for: [received:nodes:a9c9537c-ce73-406c-ac60-79c2cb3c9d11:localhost] 2020-09-27 22:47:24 | [Mutex] received everything. 2020-09-27 22:47:24 | [Mutex] isItemNotified: received:node:a9c9537c-ce73-406c-ac60-79c2cb3c9d11:localhost:node-71a9c389-b6c7-4bff-adef-95dc474c374c:Node 71a9c389-b6c7-4bff-adef-95dc474c374c :: false |
deleteSubnodes | 1.031s |
2020-09-27 22:47:22 |
2020-09-27 22:47:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:22 | ------------------------------------ 2020-09-27 22:47:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f" } 2020-09-27 22:47:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 22:47:23 | [Mutex] waiting for: [received:nodes:02d08d3e-d517-45a0-b326-c70af2bca15f:localhost] 2020-09-27 22:47:23 | [Mutex] received everything. 2020-09-27 22:47:23 | [Mutex] isItemNotified: received:node:02d08d3e-d517-45a0-b326-c70af2bca15f:localhost:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:Node c7a3dc93-04a2-4811-a968-36f9ac49969f :: false 2020-09-27 22:47:23 | [Mutex] waiting for: [received:nodes:e458a218-c30f-4dcd-a1db-5dbb348f9dea:localhost] 2020-09-27 22:47:23 | [Mutex] received everything. 2020-09-27 22:47:23 | [Mutex] isItemNotified: received:node:e458a218-c30f-4dcd-a1db-5dbb348f9dea:localhost:node-c7a3dc93-04a2-4811-a968-36f9ac49969f:Node c7a3dc93-04a2-4811-a968-36f9ac49969f :: false |
publishItemsToNodes | 0.046s |
2020-09-27 22:47:21 |
2020-09-27 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:21 | ------------------------------------ 2020-09-27 22:47:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "entry": "<test>item-6196be3d-e265-4674-905b-8be29748479c</test>", "item-id": "item-6196be3d-e265-4674-905b-8be29748479c" } 2020-09-27 22:47:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6196be3d-e265-4674-905b-8be29748479c" } 2020-09-27 22:47:21 | [Mutex] waiting for: [published:item:notifieditem-6196be3d-e265-4674-905b-8be29748479c:admin@test-domain.com] 2020-09-27 22:47:21 | [Mutex] received everything. 2020-09-27 22:47:21 | [Mutex] isItemNotified: published:item:notifieditem-6196be3d-e265-4674-905b-8be29748479c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-09-27 22:47:21 |
2020-09-27 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:21 | ------------------------------------ 2020-09-27 22:47:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "item-id": "item-6196be3d-e265-4674-905b-8be29748479c" } 2020-09-27 22:47:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6196be3d-e265-4674-905b-8be29748479c" } 2020-09-27 22:47:21 | [Mutex] received everything. 2020-09-27 22:47:21 | [Mutex] isItemNotified: retracted:item:notifieditem-6196be3d-e265-4674-905b-8be29748479c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2020-09-27 22:47:21 |
2020-09-27 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:21 | ------------------------------------ 2020-09-27 22:47:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "item-id": "item-6196be3d-e265-4674-905b-8be29748479c" } 2020-09-27 22:47:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "item-id": "item-6196be3d-e265-4674-905b-8be29748479c", "item": [ "<item id=\"item-6196be3d-e265-4674-905b-8be29748479c\"><test>item-6196be3d-e265-4674-905b-8be29748479c</test></item>" ] } 2020-09-27 22:47:21 | [Mutex] notify: [retrieved:item:item-6196be3d-e265-4674-905b-8be29748479c:payload-matches:true:localhost] 2020-09-27 22:47:21 | [Mutex] received everything. 2020-09-27 22:47:21 | [Mutex] isItemNotified: retrieved:item:item-6196be3d-e265-4674-905b-8be29748479c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-27 22:47:21 |
2020-09-27 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:21 | ------------------------------------ 2020-09-27 22:47:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-27 22:47:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "node-71a9c389-b6c7-4bff-adef-95dc474c374c" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-27 22:47:21 |
2020-09-27 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:21 | ------------------------------------ 2020-09-27 22:47:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c7a3dc93-04a2-4811-a968-36f9ac49969f)" } 2020-09-27 22:47:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-27 22:47:20 |
2020-09-27 22:47:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:20 | ------------------------------------ 2020-09-27 22:47:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "jids": [ "admin@test-domain.com" ] } 2020-09-27 22:47:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2020-09-27 22:47:21 |
2020-09-27 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 22:47:21 | ------------------------------------ 2020-09-27 22:47:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c7a3dc93-04a2-4811-a968-36f9ac49969f", "jids": [ "admin@test-domain.com" ] } 2020-09-27 22:47:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |