Test duration : 9.163s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2020-09-02 09:16:54 |
2020-09-02 09:16:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:54 | ------------------------------------ 2020-09-02 09:16:54 | [Mutex] waiting for: [configured:node:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:node-ac9ab4c1-1533-4628-b17e-fd36831b048c] 2020-09-02 09:16:54 | [Mutex] received everything. 2020-09-02 09:16:54 | [Mutex] isItemNotified: configured:node:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:node-ac9ab4c1-1533-4628-b17e-fd36831b048c :: true 2020-09-02 09:16:55 | [Mutex] waiting for: [received:nodes:1470895a-088f-4bee-a960-a37db79fc1d8:localhost] 2020-09-02 09:16:55 | [Mutex] received everything. 2020-09-02 09:16:55 | [Mutex] isItemNotified: received:node:1470895a-088f-4bee-a960-a37db79fc1d8:localhost:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:Node 8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3 :: true 2020-09-02 09:16:55 | [Mutex] waiting for: [received:nodes:980309a6-d8ce-4ceb-b68c-7b8d88dc8e08:localhost] 2020-09-02 09:16:55 | [Mutex] received everything. 2020-09-02 09:16:55 | [Mutex] isItemNotified: received:node:980309a6-d8ce-4ceb-b68c-7b8d88dc8e08:localhost:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:Node 8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3 :: false |
createNodes | 1.683s |
2020-09-02 09:16:51 |
2020-09-02 09:16:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:51 | ------------------------------------ 2020-09-02 09:16:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "pubsub#title": "Node 8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3" } 2020-09-02 09:16:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 09:16:53 | [Mutex] waiting for: [received:nodes:e5d06d92-beee-4a4c-9b7b-44e48633b02f:localhost] 2020-09-02 09:16:53 | [Mutex] waiting for: [received:nodes:e5d06d92-beee-4a4c-9b7b-44e48633b02f:localhost] 2020-09-02 09:16:53 | [Mutex] received everything. 2020-09-02 09:16:53 | [Mutex] isItemNotified: received:node:e5d06d92-beee-4a4c-9b7b-44e48633b02f:localhost:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:Node 8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3 :: true |
createSubnodes | 1.027s |
2020-09-02 09:16:53 |
2020-09-02 09:16:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:53 | ------------------------------------ 2020-09-02 09:16:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ac9ab4c1-1533-4628-b17e-fd36831b048c", "pubsub#title": "Node ac9ab4c1-1533-4628-b17e-fd36831b048c" } 2020-09-02 09:16:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 09:16:54 | [Mutex] waiting for: [received:nodes:02357ddf-c0e5-47cf-bdd9-1621e674dde4:localhost] 2020-09-02 09:16:54 | [Mutex] received everything. 2020-09-02 09:16:54 | [Mutex] isItemNotified: received:node:02357ddf-c0e5-47cf-bdd9-1621e674dde4:localhost:node-ac9ab4c1-1533-4628-b17e-fd36831b048c:Node ac9ab4c1-1533-4628-b17e-fd36831b048c :: true |
deleteNodes | 1.023s |
2020-09-02 09:16:58 |
2020-09-02 09:16:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:58 | ------------------------------------ 2020-09-02 09:16:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ac9ab4c1-1533-4628-b17e-fd36831b048c" } 2020-09-02 09:16:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 09:16:59 | [Mutex] waiting for: [received:nodes:f8571648-edaa-4caf-a06a-8fadc13d7238:localhost] 2020-09-02 09:16:59 | [Mutex] received everything. 2020-09-02 09:16:59 | [Mutex] isItemNotified: received:node:f8571648-edaa-4caf-a06a-8fadc13d7238:localhost:node-ac9ab4c1-1533-4628-b17e-fd36831b048c:Node ac9ab4c1-1533-4628-b17e-fd36831b048c :: false |
deleteSubnodes | 1.027s |
2020-09-02 09:16:57 |
2020-09-02 09:16:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:57 | ------------------------------------ 2020-09-02 09:16:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3" } 2020-09-02 09:16:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 09:16:58 | [Mutex] waiting for: [received:nodes:991f1dc4-2104-414d-90e8-fe94067fe1d2:localhost] 2020-09-02 09:16:58 | [Mutex] waiting for: [received:nodes:991f1dc4-2104-414d-90e8-fe94067fe1d2:localhost] 2020-09-02 09:16:58 | [Mutex] received everything. 2020-09-02 09:16:58 | [Mutex] isItemNotified: received:node:991f1dc4-2104-414d-90e8-fe94067fe1d2:localhost:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:Node 8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3 :: false 2020-09-02 09:16:58 | [Mutex] waiting for: [received:nodes:d63ea0bb-5347-42c8-bf3a-62b1400c1521:localhost] 2020-09-02 09:16:58 | [Mutex] received everything. 2020-09-02 09:16:58 | [Mutex] isItemNotified: received:node:d63ea0bb-5347-42c8-bf3a-62b1400c1521:localhost:node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3:Node 8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3 :: false |
publishItemsToNodes | 0.071s |
2020-09-02 09:16:56 |
2020-09-02 09:16:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:56 | ------------------------------------ 2020-09-02 09:16:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "entry": "<test>item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c</test>", "item-id": "item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c" } 2020-09-02 09:16:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c" } 2020-09-02 09:16:56 | [Mutex] waiting for: [published:item:notifieditem-ae9ddb72-68ac-4461-8f65-23e9bf5e247c:admin@test-domain.com] 2020-09-02 09:16:56 | [Mutex] received everything. 2020-09-02 09:16:56 | [Mutex] isItemNotified: published:item:notifieditem-ae9ddb72-68ac-4461-8f65-23e9bf5e247c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2020-09-02 09:16:56 |
2020-09-02 09:16:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:56 | ------------------------------------ 2020-09-02 09:16:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "item-id": "item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c" } 2020-09-02 09:16:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c" } 2020-09-02 09:16:56 | [Mutex] received everything. 2020-09-02 09:16:56 | [Mutex] isItemNotified: retracted:item:notifieditem-ae9ddb72-68ac-4461-8f65-23e9bf5e247c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.092s |
2020-09-02 09:16:56 |
2020-09-02 09:16:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:56 | ------------------------------------ 2020-09-02 09:16:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "item-id": "item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c" } 2020-09-02 09:16:56 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "item-id": "item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c", "item": [ "<item id=\"item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c\"><test>item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c</test></item>" ] } 2020-09-02 09:16:56 | [Mutex] notify: [retrieved:item:item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c:payload-matches:true:localhost] 2020-09-02 09:16:56 | [Mutex] received everything. 2020-09-02 09:16:56 | [Mutex] isItemNotified: retrieved:item:item-ae9ddb72-68ac-4461-8f65-23e9bf5e247c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-02 09:16:56 |
2020-09-02 09:16:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:56 | ------------------------------------ 2020-09-02 09:16:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-02 09:16:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ac9ab4c1-1533-4628-b17e-fd36831b048c", "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-02 09:16:56 |
2020-09-02 09:16:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:56 | ------------------------------------ 2020-09-02 09:16:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3)" } 2020-09-02 09:16:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-09-02 09:16:55 |
2020-09-02 09:16:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:55 | ------------------------------------ 2020-09-02 09:16:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "jids": [ "admin@test-domain.com" ] } 2020-09-02 09:16:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2020-09-02 09:16:56 |
2020-09-02 09:16:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 09:16:56 | ------------------------------------ 2020-09-02 09:16:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8377ed56-ebb7-4135-bb47-fbb8f4aa3bc3", "jids": [ "admin@test-domain.com" ] } 2020-09-02 09:16:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |