Test duration : 9.093s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2021-04-28 23:00:49 |
2021-04-28 23:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:49 | ------------------------------------ 2021-04-28 23:00:49 | [Mutex] waiting for: [configured:node:node-24699f0f-5e39-41aa-aa91-da355164e55e:node-aa314f35-4344-414b-ae96-10932345032d] 2021-04-28 23:00:49 | [Mutex] received everything. 2021-04-28 23:00:49 | [Mutex] isItemNotified: configured:node:node-24699f0f-5e39-41aa-aa91-da355164e55e:node-aa314f35-4344-414b-ae96-10932345032d :: true 2021-04-28 23:00:50 | [Mutex] waiting for: [received:nodes:c003d2b6-db8b-4d13-8355-eb700a4e408c:localhost] 2021-04-28 23:00:50 | [Mutex] received everything. 2021-04-28 23:00:50 | [Mutex] isItemNotified: received:node:c003d2b6-db8b-4d13-8355-eb700a4e408c:localhost:node-24699f0f-5e39-41aa-aa91-da355164e55e:Node 24699f0f-5e39-41aa-aa91-da355164e55e :: true 2021-04-28 23:00:50 | [Mutex] waiting for: [received:nodes:b48dc6b7-d7e1-49dd-9057-cf3ecb775593:localhost] 2021-04-28 23:00:50 | [Mutex] received everything. 2021-04-28 23:00:50 | [Mutex] isItemNotified: received:node:b48dc6b7-d7e1-49dd-9057-cf3ecb775593:localhost:node-24699f0f-5e39-41aa-aa91-da355164e55e:Node 24699f0f-5e39-41aa-aa91-da355164e55e :: false |
createNodes | 1.590s |
2021-04-28 23:00:46 |
2021-04-28 23:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:46 | ------------------------------------ 2021-04-28 23:00: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-24699f0f-5e39-41aa-aa91-da355164e55e", "pubsub#title": "Node 24699f0f-5e39-41aa-aa91-da355164e55e" } 2021-04-28 23:00:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 23:00:48 | [Mutex] waiting for: [received:nodes:5f5951ed-5f0e-4e65-ae3a-151581e18dcd:localhost] 2021-04-28 23:00:48 | [Mutex] received everything. 2021-04-28 23:00:48 | [Mutex] isItemNotified: received:node:5f5951ed-5f0e-4e65-ae3a-151581e18dcd:localhost:node-24699f0f-5e39-41aa-aa91-da355164e55e:Node 24699f0f-5e39-41aa-aa91-da355164e55e :: true |
createSubnodes | 1.034s |
2021-04-28 23:00:48 |
2021-04-28 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:48 | ------------------------------------ 2021-04-28 23:00: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-aa314f35-4344-414b-ae96-10932345032d", "pubsub#title": "Node aa314f35-4344-414b-ae96-10932345032d" } 2021-04-28 23:00:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 23:00:49 | [Mutex] waiting for: [received:nodes:c92455aa-d222-4c1f-af23-8003df545679:localhost] 2021-04-28 23:00:49 | [Mutex] waiting for: [received:nodes:c92455aa-d222-4c1f-af23-8003df545679:localhost] 2021-04-28 23:00:49 | [Mutex] received everything. 2021-04-28 23:00:49 | [Mutex] isItemNotified: received:node:c92455aa-d222-4c1f-af23-8003df545679:localhost:node-aa314f35-4344-414b-ae96-10932345032d:Node aa314f35-4344-414b-ae96-10932345032d :: true |
deleteNodes | 1.026s |
2021-04-28 23:00:53 |
2021-04-28 23:00:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:53 | ------------------------------------ 2021-04-28 23:00:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aa314f35-4344-414b-ae96-10932345032d" } 2021-04-28 23:00:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 23:00:54 | [Mutex] waiting for: [received:nodes:7c7a8894-932f-4fdd-9a62-f21d9f6f8e29:localhost] 2021-04-28 23:00:54 | [Mutex] received everything. 2021-04-28 23:00:54 | [Mutex] isItemNotified: received:node:7c7a8894-932f-4fdd-9a62-f21d9f6f8e29:localhost:node-aa314f35-4344-414b-ae96-10932345032d:Node aa314f35-4344-414b-ae96-10932345032d :: false |
deleteSubnodes | 1.026s |
2021-04-28 23:00:52 |
2021-04-28 23:00:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:52 | ------------------------------------ 2021-04-28 23:00:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e" } 2021-04-28 23:00:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 23:00:53 | [Mutex] waiting for: [received:nodes:db286bf1-3c7f-4f73-989b-93d2f50fe3ce:localhost] 2021-04-28 23:00:53 | [Mutex] waiting for: [received:nodes:db286bf1-3c7f-4f73-989b-93d2f50fe3ce:localhost] 2021-04-28 23:00:53 | [Mutex] waiting for: [received:nodes:db286bf1-3c7f-4f73-989b-93d2f50fe3ce:localhost] 2021-04-28 23:00:53 | [Mutex] received everything. 2021-04-28 23:00:53 | [Mutex] isItemNotified: received:node:db286bf1-3c7f-4f73-989b-93d2f50fe3ce:localhost:node-24699f0f-5e39-41aa-aa91-da355164e55e:Node 24699f0f-5e39-41aa-aa91-da355164e55e :: false 2021-04-28 23:00:53 | [Mutex] waiting for: [received:nodes:6bc80cfa-d00b-4ee0-aa32-f604dae548ea:localhost] 2021-04-28 23:00:53 | [Mutex] received everything. 2021-04-28 23:00:53 | [Mutex] isItemNotified: received:node:6bc80cfa-d00b-4ee0-aa32-f604dae548ea:localhost:node-24699f0f-5e39-41aa-aa91-da355164e55e:Node 24699f0f-5e39-41aa-aa91-da355164e55e :: false |
publishItemsToNodes | 0.080s |
2021-04-28 23:00:51 |
2021-04-28 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:51 | ------------------------------------ 2021-04-28 23:00:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e", "entry": "<test>item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23</test>", "item-id": "item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23" } 2021-04-28 23:00:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23" } 2021-04-28 23:00:51 | [Mutex] waiting for: [published:item:notifieditem-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23:admin@test-domain.com] 2021-04-28 23:00:51 | [Mutex] received everything. 2021-04-28 23:00:51 | [Mutex] isItemNotified: published:item:notifieditem-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2021-04-28 23:00:51 |
2021-04-28 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:51 | ------------------------------------ 2021-04-28 23:00:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e", "item-id": "item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23" } 2021-04-28 23:00:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23" } 2021-04-28 23:00:51 | [Mutex] received everything. 2021-04-28 23:00:51 | [Mutex] isItemNotified: retracted:item:notifieditem-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.086s |
2021-04-28 23:00:51 |
2021-04-28 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:51 | ------------------------------------ 2021-04-28 23:00:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e", "item-id": "item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23" } 2021-04-28 23:00:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e", "item-id": "item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23", "item": [ "<item id=\"item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23\"><test>item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23</test></item>" ] } 2021-04-28 23:00:51 | [Mutex] notify: [retrieved:item:item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23:payload-matches:true:localhost] 2021-04-28 23:00:51 | [Mutex] received everything. 2021-04-28 23:00:51 | [Mutex] isItemNotified: retrieved:item:item-d5419ec4-f5cf-4fa6-bafd-7a9f50b35d23:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-04-28 23:00:51 |
2021-04-28 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:51 | ------------------------------------ 2021-04-28 23:00:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-28 23:00:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-aa314f35-4344-414b-ae96-10932345032d", "test", "node-24699f0f-5e39-41aa-aa91-da355164e55e" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-04-28 23:00:51 |
2021-04-28 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:51 | ------------------------------------ 2021-04-28 23:00:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-24699f0f-5e39-41aa-aa91-da355164e55e)" } 2021-04-28 23:00:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-04-28 23:00:50 |
2021-04-28 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:50 | ------------------------------------ 2021-04-28 23:00:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e", "jids": [ "admin@test-domain.com" ] } 2021-04-28 23:00:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-04-28 23:00:51 |
2021-04-28 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 23:00:51 | ------------------------------------ 2021-04-28 23:00:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-24699f0f-5e39-41aa-aa91-da355164e55e", "jids": [ "admin@test-domain.com" ] } 2021-04-28 23:00:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |