Test duration : 9.060s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2020-09-16 23:45:08 |
2020-09-16 23:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:08 | ------------------------------------ 2020-09-16 23:45:08 | [Mutex] waiting for: [configured:node:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:node-9dd3c600-2a4f-4c27-9eba-da69100294d1] 2020-09-16 23:45:08 | [Mutex] received everything. 2020-09-16 23:45:08 | [Mutex] isItemNotified: configured:node:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:node-9dd3c600-2a4f-4c27-9eba-da69100294d1 :: true 2020-09-16 23:45:09 | [Mutex] waiting for: [received:nodes:9a74e3e1-d83c-4fcc-8391-7dfa6886a784:localhost] 2020-09-16 23:45:09 | [Mutex] received everything. 2020-09-16 23:45:09 | [Mutex] isItemNotified: received:node:9a74e3e1-d83c-4fcc-8391-7dfa6886a784:localhost:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:Node ed8f1308-a6d1-4e3e-9c79-d536f6748bee :: true 2020-09-16 23:45:09 | [Mutex] waiting for: [received:nodes:f4bf4458-f97a-48b0-97ff-798041ce2688:localhost] 2020-09-16 23:45:09 | [Mutex] received everything. 2020-09-16 23:45:09 | [Mutex] isItemNotified: received:node:f4bf4458-f97a-48b0-97ff-798041ce2688:localhost:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:Node ed8f1308-a6d1-4e3e-9c79-d536f6748bee :: false |
createNodes | 1.760s |
2020-09-16 23:45:06 |
2020-09-16 23:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:06 | ------------------------------------ 2020-09-16 23:45:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "pubsub#title": "Node ed8f1308-a6d1-4e3e-9c79-d536f6748bee" } 2020-09-16 23:45:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:45:07 | [Mutex] waiting for: [received:nodes:3c78f83b-8f88-4065-a8e1-14d475733aab:localhost] 2020-09-16 23:45:07 | [Mutex] received everything. 2020-09-16 23:45:07 | [Mutex] isItemNotified: received:node:3c78f83b-8f88-4065-a8e1-14d475733aab:localhost:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:Node ed8f1308-a6d1-4e3e-9c79-d536f6748bee :: true |
createSubnodes | 1.023s |
2020-09-16 23:45:07 |
2020-09-16 23:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:07 | ------------------------------------ 2020-09-16 23:45:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9dd3c600-2a4f-4c27-9eba-da69100294d1", "pubsub#title": "Node 9dd3c600-2a4f-4c27-9eba-da69100294d1" } 2020-09-16 23:45:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:45:08 | [Mutex] waiting for: [received:nodes:602854b6-d48c-4b72-b7c0-85ba0b310b03:localhost] 2020-09-16 23:45:08 | [Mutex] received everything. 2020-09-16 23:45:08 | [Mutex] isItemNotified: received:node:602854b6-d48c-4b72-b7c0-85ba0b310b03:localhost:node-9dd3c600-2a4f-4c27-9eba-da69100294d1:Node 9dd3c600-2a4f-4c27-9eba-da69100294d1 :: true |
deleteNodes | 1.028s |
2020-09-16 23:45:13 |
2020-09-16 23:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:13 | ------------------------------------ 2020-09-16 23:45:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9dd3c600-2a4f-4c27-9eba-da69100294d1" } 2020-09-16 23:45:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:45:14 | [Mutex] waiting for: [received:nodes:80e7dfdf-a208-4609-9d6d-4672ed12dc5c:localhost] 2020-09-16 23:45:14 | [Mutex] received everything. 2020-09-16 23:45:14 | [Mutex] isItemNotified: received:node:80e7dfdf-a208-4609-9d6d-4672ed12dc5c:localhost:node-9dd3c600-2a4f-4c27-9eba-da69100294d1:Node 9dd3c600-2a4f-4c27-9eba-da69100294d1 :: false |
deleteSubnodes | 1.028s |
2020-09-16 23:45:12 |
2020-09-16 23:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:12 | ------------------------------------ 2020-09-16 23:45:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee" } 2020-09-16 23:45:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:45:13 | [Mutex] waiting for: [received:nodes:c4c4e90f-949a-4f34-9e1f-8df962d60878:localhost] 2020-09-16 23:45:13 | [Mutex] received everything. 2020-09-16 23:45:13 | [Mutex] isItemNotified: received:node:c4c4e90f-949a-4f34-9e1f-8df962d60878:localhost:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:Node ed8f1308-a6d1-4e3e-9c79-d536f6748bee :: false 2020-09-16 23:45:13 | [Mutex] waiting for: [received:nodes:500613bc-ee27-4055-abb1-a28a8785b827:localhost] 2020-09-16 23:45:13 | [Mutex] received everything. 2020-09-16 23:45:13 | [Mutex] isItemNotified: received:node:500613bc-ee27-4055-abb1-a28a8785b827:localhost:node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee:Node ed8f1308-a6d1-4e3e-9c79-d536f6748bee :: false |
publishItemsToNodes | 0.043s |
2020-09-16 23:45:10 |
2020-09-16 23:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:10 | ------------------------------------ 2020-09-16 23:45:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "entry": "<test>item-75bf8e61-9573-4fe2-aeba-a2d2d1722946</test>", "item-id": "item-75bf8e61-9573-4fe2-aeba-a2d2d1722946" } 2020-09-16 23:45:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-75bf8e61-9573-4fe2-aeba-a2d2d1722946" } 2020-09-16 23:45:11 | [Mutex] waiting for: [published:item:notifieditem-75bf8e61-9573-4fe2-aeba-a2d2d1722946:admin@test-domain.com] 2020-09-16 23:45:11 | [Mutex] received everything. 2020-09-16 23:45:11 | [Mutex] isItemNotified: published:item:notifieditem-75bf8e61-9573-4fe2-aeba-a2d2d1722946:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-16 23:45:11 |
2020-09-16 23:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:11 | ------------------------------------ 2020-09-16 23:45:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "item-id": "item-75bf8e61-9573-4fe2-aeba-a2d2d1722946" } 2020-09-16 23:45:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-75bf8e61-9573-4fe2-aeba-a2d2d1722946" } 2020-09-16 23:45:11 | [Mutex] received everything. 2020-09-16 23:45:11 | [Mutex] isItemNotified: retracted:item:notifieditem-75bf8e61-9573-4fe2-aeba-a2d2d1722946:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2020-09-16 23:45:11 |
2020-09-16 23:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:11 | ------------------------------------ 2020-09-16 23:45:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "item-id": "item-75bf8e61-9573-4fe2-aeba-a2d2d1722946" } 2020-09-16 23:45:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "item-id": "item-75bf8e61-9573-4fe2-aeba-a2d2d1722946", "item": [ "<item id=\"item-75bf8e61-9573-4fe2-aeba-a2d2d1722946\"><test>item-75bf8e61-9573-4fe2-aeba-a2d2d1722946</test></item>" ] } 2020-09-16 23:45:11 | [Mutex] notify: [retrieved:item:item-75bf8e61-9573-4fe2-aeba-a2d2d1722946:payload-matches:true:localhost] 2020-09-16 23:45:11 | [Mutex] received everything. 2020-09-16 23:45:11 | [Mutex] isItemNotified: retrieved:item:item-75bf8e61-9573-4fe2-aeba-a2d2d1722946:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-16 23:45:11 |
2020-09-16 23:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:11 | ------------------------------------ 2020-09-16 23:45:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-16 23:45:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "test", "node-9dd3c600-2a4f-4c27-9eba-da69100294d1" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-16 23:45:11 |
2020-09-16 23:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:11 | ------------------------------------ 2020-09-16 23:45:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee)" } 2020-09-16 23:45:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-09-16 23:45:09 |
2020-09-16 23:45:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:09 | ------------------------------------ 2020-09-16 23:45:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "jids": [ "admin@test-domain.com" ] } 2020-09-16 23:45:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-09-16 23:45:11 |
2020-09-16 23:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:45:11 | ------------------------------------ 2020-09-16 23:45:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ed8f1308-a6d1-4e3e-9c79-d536f6748bee", "jids": [ "admin@test-domain.com" ] } 2020-09-16 23:45:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |