Test duration : 9.021s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2020-11-23 21:41:19 |
2020-11-23 21:41:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:19 | ------------------------------------ 2020-11-23 21:41:19 | [Mutex] waiting for: [configured:node:node-9a2ee597-a787-4b0e-9de1-118a6f166803:node-20721b02-fb51-41e1-98c4-cf1cdc95e364] 2020-11-23 21:41:19 | [Mutex] received everything. 2020-11-23 21:41:19 | [Mutex] isItemNotified: configured:node:node-9a2ee597-a787-4b0e-9de1-118a6f166803:node-20721b02-fb51-41e1-98c4-cf1cdc95e364 :: true 2020-11-23 21:41:20 | [Mutex] waiting for: [received:nodes:cc1eef86-5908-4da1-8b8b-41d8cda1273f:localhost] 2020-11-23 21:41:20 | [Mutex] received everything. 2020-11-23 21:41:20 | [Mutex] isItemNotified: received:node:cc1eef86-5908-4da1-8b8b-41d8cda1273f:localhost:node-9a2ee597-a787-4b0e-9de1-118a6f166803:Node 9a2ee597-a787-4b0e-9de1-118a6f166803 :: true 2020-11-23 21:41:20 | [Mutex] waiting for: [received:nodes:1b428386-8179-42e1-bc41-1c8e987a5101:localhost] 2020-11-23 21:41:20 | [Mutex] waiting for: [received:nodes:1b428386-8179-42e1-bc41-1c8e987a5101:localhost] 2020-11-23 21:41:20 | [Mutex] received everything. 2020-11-23 21:41:20 | [Mutex] isItemNotified: received:node:1b428386-8179-42e1-bc41-1c8e987a5101:localhost:node-9a2ee597-a787-4b0e-9de1-118a6f166803:Node 9a2ee597-a787-4b0e-9de1-118a6f166803 :: false |
createNodes | 1.518s |
2020-11-23 21:41:17 |
2020-11-23 21:41:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:17 | ------------------------------------ 2020-11-23 21:41:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "pubsub#title": "Node 9a2ee597-a787-4b0e-9de1-118a6f166803" } 2020-11-23 21:41:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:41:18 | [Mutex] waiting for: [received:nodes:8760bede-7c98-4f10-9543-bfde68954a9a:localhost] 2020-11-23 21:41:18 | [Mutex] received everything. 2020-11-23 21:41:18 | [Mutex] isItemNotified: received:node:8760bede-7c98-4f10-9543-bfde68954a9a:localhost:node-9a2ee597-a787-4b0e-9de1-118a6f166803:Node 9a2ee597-a787-4b0e-9de1-118a6f166803 :: true |
createSubnodes | 1.023s |
2020-11-23 21:41:18 |
2020-11-23 21:41:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:18 | ------------------------------------ 2020-11-23 21:41:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-20721b02-fb51-41e1-98c4-cf1cdc95e364", "pubsub#title": "Node 20721b02-fb51-41e1-98c4-cf1cdc95e364" } 2020-11-23 21:41:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:41:19 | [Mutex] waiting for: [received:nodes:eab380b7-6b8f-46dd-bb6e-85a7b9dd377b:localhost] 2020-11-23 21:41:19 | [Mutex] received everything. 2020-11-23 21:41:19 | [Mutex] isItemNotified: received:node:eab380b7-6b8f-46dd-bb6e-85a7b9dd377b:localhost:node-20721b02-fb51-41e1-98c4-cf1cdc95e364:Node 20721b02-fb51-41e1-98c4-cf1cdc95e364 :: true |
deleteNodes | 1.042s |
2020-11-23 21:41:24 |
2020-11-23 21:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:24 | ------------------------------------ 2020-11-23 21:41:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-20721b02-fb51-41e1-98c4-cf1cdc95e364" } 2020-11-23 21:41:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:41:25 | [Mutex] waiting for: [received:nodes:1b5beb46-7166-4dee-ae08-c5ac900d49a7:localhost] 2020-11-23 21:41:25 | [Mutex] received everything. 2020-11-23 21:41:25 | [Mutex] isItemNotified: received:node:1b5beb46-7166-4dee-ae08-c5ac900d49a7:localhost:node-20721b02-fb51-41e1-98c4-cf1cdc95e364:Node 20721b02-fb51-41e1-98c4-cf1cdc95e364 :: false |
deleteSubnodes | 1.026s |
2020-11-23 21:41:23 |
2020-11-23 21:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:23 | ------------------------------------ 2020-11-23 21:41:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803" } 2020-11-23 21:41:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:41:24 | [Mutex] waiting for: [received:nodes:c01680bd-26c3-4fa4-8b45-ad68e0e071d8:localhost] 2020-11-23 21:41:24 | [Mutex] received everything. 2020-11-23 21:41:24 | [Mutex] isItemNotified: received:node:c01680bd-26c3-4fa4-8b45-ad68e0e071d8:localhost:node-9a2ee597-a787-4b0e-9de1-118a6f166803:Node 9a2ee597-a787-4b0e-9de1-118a6f166803 :: false 2020-11-23 21:41:24 | [Mutex] waiting for: [received:nodes:c1fc2d8f-c7b2-44c7-aa2a-ebe333c1d1d2:localhost] 2020-11-23 21:41:24 | [Mutex] received everything. 2020-11-23 21:41:24 | [Mutex] isItemNotified: received:node:c1fc2d8f-c7b2-44c7-aa2a-ebe333c1d1d2:localhost:node-9a2ee597-a787-4b0e-9de1-118a6f166803:Node 9a2ee597-a787-4b0e-9de1-118a6f166803 :: false |
publishItemsToNodes | 0.049s |
2020-11-23 21:41:21 |
2020-11-23 21:41:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:21 | ------------------------------------ 2020-11-23 21:41:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "entry": "<test>item-03fff3b4-26d0-423a-8ca3-c9debd417840</test>", "item-id": "item-03fff3b4-26d0-423a-8ca3-c9debd417840" } 2020-11-23 21:41:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03fff3b4-26d0-423a-8ca3-c9debd417840" } 2020-11-23 21:41:22 | [Mutex] waiting for: [published:item:notifieditem-03fff3b4-26d0-423a-8ca3-c9debd417840:admin@test-domain.com] 2020-11-23 21:41:22 | [Mutex] received everything. 2020-11-23 21:41:22 | [Mutex] isItemNotified: published:item:notifieditem-03fff3b4-26d0-423a-8ca3-c9debd417840:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2020-11-23 21:41:22 |
2020-11-23 21:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:22 | ------------------------------------ 2020-11-23 21:41:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "item-id": "item-03fff3b4-26d0-423a-8ca3-c9debd417840" } 2020-11-23 21:41:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03fff3b4-26d0-423a-8ca3-c9debd417840" } 2020-11-23 21:41:22 | [Mutex] received everything. 2020-11-23 21:41:22 | [Mutex] isItemNotified: retracted:item:notifieditem-03fff3b4-26d0-423a-8ca3-c9debd417840:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2020-11-23 21:41:22 |
2020-11-23 21:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:22 | ------------------------------------ 2020-11-23 21:41:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "item-id": "item-03fff3b4-26d0-423a-8ca3-c9debd417840" } 2020-11-23 21:41:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "item-id": "item-03fff3b4-26d0-423a-8ca3-c9debd417840", "item": [ "<item id=\"item-03fff3b4-26d0-423a-8ca3-c9debd417840\"><test>item-03fff3b4-26d0-423a-8ca3-c9debd417840</test></item>" ] } 2020-11-23 21:41:22 | [Mutex] notify: [retrieved:item:item-03fff3b4-26d0-423a-8ca3-c9debd417840:payload-matches:true:localhost] 2020-11-23 21:41:22 | [Mutex] received everything. 2020-11-23 21:41:22 | [Mutex] isItemNotified: retrieved:item:item-03fff3b4-26d0-423a-8ca3-c9debd417840:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-11-23 21:41:22 |
2020-11-23 21:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:22 | ------------------------------------ 2020-11-23 21:41:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-23 21:41:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "test", "node-20721b02-fb51-41e1-98c4-cf1cdc95e364" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-11-23 21:41:22 |
2020-11-23 21:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:22 | ------------------------------------ 2020-11-23 21:41:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9a2ee597-a787-4b0e-9de1-118a6f166803)" } 2020-11-23 21:41:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2020-11-23 21:41:20 |
2020-11-23 21:41:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:20 | ------------------------------------ 2020-11-23 21:41:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "jids": [ "admin@test-domain.com" ] } 2020-11-23 21:41:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.104s |
2020-11-23 21:41:22 |
2020-11-23 21:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:41:22 | ------------------------------------ 2020-11-23 21:41:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9a2ee597-a787-4b0e-9de1-118a6f166803", "jids": [ "admin@test-domain.com" ] } 2020-11-23 21:41:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |