Test duration : 9.141s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2020-09-27 23:02:49 |
2020-09-27 23:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:49 | ------------------------------------ 2020-09-27 23:02:49 | [Mutex] waiting for: [configured:node:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:node-5b3a97a9-304c-47ee-8512-17222d51ae0e] 2020-09-27 23:02:50 | [Mutex] received everything. 2020-09-27 23:02:50 | [Mutex] isItemNotified: configured:node:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:node-5b3a97a9-304c-47ee-8512-17222d51ae0e :: true 2020-09-27 23:02:51 | [Mutex] waiting for: [received:nodes:8c689b5b-f0d8-4503-b7a9-5ce6e7c2c506:localhost] 2020-09-27 23:02:51 | [Mutex] received everything. 2020-09-27 23:02:51 | [Mutex] isItemNotified: received:node:8c689b5b-f0d8-4503-b7a9-5ce6e7c2c506:localhost:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:Node 47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c :: true 2020-09-27 23:02:51 | [Mutex] waiting for: [received:nodes:b69ea131-8075-42fc-89bf-79b0d6433ee3:localhost] 2020-09-27 23:02:51 | [Mutex] waiting for: [received:nodes:b69ea131-8075-42fc-89bf-79b0d6433ee3:localhost] 2020-09-27 23:02:51 | [Mutex] received everything. 2020-09-27 23:02:51 | [Mutex] isItemNotified: received:node:b69ea131-8075-42fc-89bf-79b0d6433ee3:localhost:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:Node 47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c :: false |
createNodes | 1.853s |
2020-09-27 23:02:47 |
2020-09-27 23:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:47 | ------------------------------------ 2020-09-27 23:02:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "pubsub#title": "Node 47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c" } 2020-09-27 23:02:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 23:02:48 | [Mutex] waiting for: [received:nodes:701909b5-ae38-44ae-a2a7-e309ae7a3397:localhost] 2020-09-27 23:02:48 | [Mutex] waiting for: [received:nodes:701909b5-ae38-44ae-a2a7-e309ae7a3397:localhost] 2020-09-27 23:02:48 | [Mutex] received everything. 2020-09-27 23:02:48 | [Mutex] isItemNotified: received:node:701909b5-ae38-44ae-a2a7-e309ae7a3397:localhost:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:Node 47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c :: true |
createSubnodes | 1.032s |
2020-09-27 23:02:48 |
2020-09-27 23:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:48 | ------------------------------------ 2020-09-27 23:02:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5b3a97a9-304c-47ee-8512-17222d51ae0e", "pubsub#title": "Node 5b3a97a9-304c-47ee-8512-17222d51ae0e" } 2020-09-27 23:02:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 23:02:49 | [Mutex] waiting for: [received:nodes:e9bc0cf2-848a-437d-9399-e64466cdd84c:localhost] 2020-09-27 23:02:49 | [Mutex] received everything. 2020-09-27 23:02:49 | [Mutex] isItemNotified: received:node:e9bc0cf2-848a-437d-9399-e64466cdd84c:localhost:node-5b3a97a9-304c-47ee-8512-17222d51ae0e:Node 5b3a97a9-304c-47ee-8512-17222d51ae0e :: true |
deleteNodes | 1.026s |
2020-09-27 23:02:54 |
2020-09-27 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:54 | ------------------------------------ 2020-09-27 23:02:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5b3a97a9-304c-47ee-8512-17222d51ae0e" } 2020-09-27 23:02:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 23:02:55 | [Mutex] waiting for: [received:nodes:848c38d9-3a4f-4822-b014-58f25083c799:localhost] 2020-09-27 23:02:55 | [Mutex] waiting for: [received:nodes:848c38d9-3a4f-4822-b014-58f25083c799:localhost] 2020-09-27 23:02:55 | [Mutex] received everything. 2020-09-27 23:02:55 | [Mutex] isItemNotified: received:node:848c38d9-3a4f-4822-b014-58f25083c799:localhost:node-5b3a97a9-304c-47ee-8512-17222d51ae0e:Node 5b3a97a9-304c-47ee-8512-17222d51ae0e :: false |
deleteSubnodes | 1.027s |
2020-09-27 23:02:53 |
2020-09-27 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:53 | ------------------------------------ 2020-09-27 23:02:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c" } 2020-09-27 23:02:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-27 23:02:54 | [Mutex] waiting for: [received:nodes:ed7662de-7b28-4722-8e83-f4ed61ba6d7b:localhost] 2020-09-27 23:02:54 | [Mutex] waiting for: [received:nodes:ed7662de-7b28-4722-8e83-f4ed61ba6d7b:localhost] 2020-09-27 23:02:54 | [Mutex] received everything. 2020-09-27 23:02:54 | [Mutex] isItemNotified: received:node:ed7662de-7b28-4722-8e83-f4ed61ba6d7b:localhost:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:Node 47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c :: false 2020-09-27 23:02:54 | [Mutex] waiting for: [received:nodes:a1139b95-d6d7-45cf-82f1-29f0e4f158e1:localhost] 2020-09-27 23:02:54 | [Mutex] received everything. 2020-09-27 23:02:54 | [Mutex] isItemNotified: received:node:a1139b95-d6d7-45cf-82f1-29f0e4f158e1:localhost:node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c:Node 47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c :: false |
publishItemsToNodes | 0.045s |
2020-09-27 23:02:52 |
2020-09-27 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:52 | ------------------------------------ 2020-09-27 23:02:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "entry": "<test>item-e23b1824-98dc-4669-843b-7d1bb67d6490</test>", "item-id": "item-e23b1824-98dc-4669-843b-7d1bb67d6490" } 2020-09-27 23:02:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e23b1824-98dc-4669-843b-7d1bb67d6490" } 2020-09-27 23:02:52 | [Mutex] waiting for: [published:item:notifieditem-e23b1824-98dc-4669-843b-7d1bb67d6490:admin@test-domain.com] 2020-09-27 23:02:52 | [Mutex] received everything. 2020-09-27 23:02:52 | [Mutex] isItemNotified: published:item:notifieditem-e23b1824-98dc-4669-843b-7d1bb67d6490:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-27 23:02:52 |
2020-09-27 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:52 | ------------------------------------ 2020-09-27 23:02:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "item-id": "item-e23b1824-98dc-4669-843b-7d1bb67d6490" } 2020-09-27 23:02:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e23b1824-98dc-4669-843b-7d1bb67d6490" } 2020-09-27 23:02:52 | [Mutex] received everything. 2020-09-27 23:02:52 | [Mutex] isItemNotified: retracted:item:notifieditem-e23b1824-98dc-4669-843b-7d1bb67d6490:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.073s |
2020-09-27 23:02:52 |
2020-09-27 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:52 | ------------------------------------ 2020-09-27 23:02:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "item-id": "item-e23b1824-98dc-4669-843b-7d1bb67d6490" } 2020-09-27 23:02:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "item-id": "item-e23b1824-98dc-4669-843b-7d1bb67d6490", "item": [ "<item id=\"item-e23b1824-98dc-4669-843b-7d1bb67d6490\"><test>item-e23b1824-98dc-4669-843b-7d1bb67d6490</test></item>" ] } 2020-09-27 23:02:52 | [Mutex] notify: [retrieved:item:item-e23b1824-98dc-4669-843b-7d1bb67d6490:payload-matches:true:localhost] 2020-09-27 23:02:52 | [Mutex] received everything. 2020-09-27 23:02:52 | [Mutex] isItemNotified: retrieved:item:item-e23b1824-98dc-4669-843b-7d1bb67d6490:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-27 23:02:52 |
2020-09-27 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:52 | ------------------------------------ 2020-09-27 23:02:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-27 23:02:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "node-5b3a97a9-304c-47ee-8512-17222d51ae0e" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-27 23:02:52 |
2020-09-27 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:52 | ------------------------------------ 2020-09-27 23:02:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c)" } 2020-09-27 23:02:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-27 23:02:51 |
2020-09-27 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:51 | ------------------------------------ 2020-09-27 23:02:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "jids": [ "admin@test-domain.com" ] } 2020-09-27 23:02:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2020-09-27 23:02:52 |
2020-09-27 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-27 23:02:52 | ------------------------------------ 2020-09-27 23:02:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-47d99c8b-0dea-4fb8-b7f1-7600d0a2c52c", "jids": [ "admin@test-domain.com" ] } 2020-09-27 23:02:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |