Test duration : 8.608s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-08-18 23:14:43 |
2022-08-18 23:14:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:43 | ------------------------------------ 2022-08-18 23:14:43 | [Mutex] waiting for: [configured:node:node-3abfd954-8f6e-4256-b6e5-e916bb132216:node-08396a8d-add9-4e8f-9d44-983b9bed1ac5] 2022-08-18 23:14:43 | [Mutex] received everything. 2022-08-18 23:14:43 | [Mutex] isItemNotified: configured:node:node-3abfd954-8f6e-4256-b6e5-e916bb132216:node-08396a8d-add9-4e8f-9d44-983b9bed1ac5 :: true 2022-08-18 23:14:44 | [Mutex] waiting for: [received:nodes:fe9f9002-7ef3-4cc1-a5ae-d51b829c072f:localhost] 2022-08-18 23:14:44 | [Mutex] received everything. 2022-08-18 23:14:44 | [Mutex] isItemNotified: received:node:fe9f9002-7ef3-4cc1-a5ae-d51b829c072f:localhost:node-3abfd954-8f6e-4256-b6e5-e916bb132216:Node 3abfd954-8f6e-4256-b6e5-e916bb132216 :: true 2022-08-18 23:14:44 | [Mutex] waiting for: [received:nodes:a28a277c-f551-4c7c-b890-7f2ca2a74fc2:localhost] 2022-08-18 23:14:44 | [Mutex] waiting for: [received:nodes:a28a277c-f551-4c7c-b890-7f2ca2a74fc2:localhost] 2022-08-18 23:14:44 | [Mutex] received everything. 2022-08-18 23:14:44 | [Mutex] isItemNotified: received:node:a28a277c-f551-4c7c-b890-7f2ca2a74fc2:localhost:node-3abfd954-8f6e-4256-b6e5-e916bb132216:Node 3abfd954-8f6e-4256-b6e5-e916bb132216 :: false |
createNodes | 1.608s |
2022-08-18 23:14:40 |
2022-08-18 23:14:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:40 | ------------------------------------ 2022-08-18 23:14:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "pubsub#title": "Node 3abfd954-8f6e-4256-b6e5-e916bb132216" } 2022-08-18 23:14:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:14:42 | [Mutex] waiting for: [received:nodes:8501286b-235c-45e0-85b2-18c431ead350:localhost] 2022-08-18 23:14:42 | [Mutex] received everything. 2022-08-18 23:14:42 | [Mutex] isItemNotified: received:node:8501286b-235c-45e0-85b2-18c431ead350:localhost:node-3abfd954-8f6e-4256-b6e5-e916bb132216:Node 3abfd954-8f6e-4256-b6e5-e916bb132216 :: true |
createSubnodes | 1.022s |
2022-08-18 23:14:42 |
2022-08-18 23:14:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:42 | ------------------------------------ 2022-08-18 23:14:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-08396a8d-add9-4e8f-9d44-983b9bed1ac5", "pubsub#title": "Node 08396a8d-add9-4e8f-9d44-983b9bed1ac5" } 2022-08-18 23:14:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:14:43 | [Mutex] waiting for: [received:nodes:e94db88f-bf24-4e52-9db8-d09e80b5f867:localhost] 2022-08-18 23:14:43 | [Mutex] waiting for: [received:nodes:e94db88f-bf24-4e52-9db8-d09e80b5f867:localhost] 2022-08-18 23:14:43 | [Mutex] received everything. 2022-08-18 23:14:43 | [Mutex] isItemNotified: received:node:e94db88f-bf24-4e52-9db8-d09e80b5f867:localhost:node-08396a8d-add9-4e8f-9d44-983b9bed1ac5:Node 08396a8d-add9-4e8f-9d44-983b9bed1ac5 :: true |
deleteNodes | 1.018s |
2022-08-18 23:14:47 |
2022-08-18 23:14:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:47 | ------------------------------------ 2022-08-18 23:14:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-08396a8d-add9-4e8f-9d44-983b9bed1ac5" } 2022-08-18 23:14:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:14:48 | [Mutex] waiting for: [received:nodes:8b471220-1cad-4198-b4f4-47e0481fbb75:localhost] 2022-08-18 23:14:48 | [Mutex] received everything. 2022-08-18 23:14:48 | [Mutex] isItemNotified: received:node:8b471220-1cad-4198-b4f4-47e0481fbb75:localhost:node-08396a8d-add9-4e8f-9d44-983b9bed1ac5:Node 08396a8d-add9-4e8f-9d44-983b9bed1ac5 :: false |
deleteSubnodes | 1.029s |
2022-08-18 23:14:46 |
2022-08-18 23:14:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:46 | ------------------------------------ 2022-08-18 23:14:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216" } 2022-08-18 23:14:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:14:47 | [Mutex] waiting for: [received:nodes:56154622-a05e-451e-a031-0ca5af57c5df:localhost] 2022-08-18 23:14:47 | [Mutex] received everything. 2022-08-18 23:14:47 | [Mutex] isItemNotified: received:node:56154622-a05e-451e-a031-0ca5af57c5df:localhost:node-3abfd954-8f6e-4256-b6e5-e916bb132216:Node 3abfd954-8f6e-4256-b6e5-e916bb132216 :: false 2022-08-18 23:14:47 | [Mutex] waiting for: [received:nodes:fdbc356b-8f13-42f9-9702-e6f1358f510f:localhost] 2022-08-18 23:14:47 | [Mutex] received everything. 2022-08-18 23:14:47 | [Mutex] isItemNotified: received:node:fdbc356b-8f13-42f9-9702-e6f1358f510f:localhost:node-3abfd954-8f6e-4256-b6e5-e916bb132216:Node 3abfd954-8f6e-4256-b6e5-e916bb132216 :: false |
publishItemsToNodes | 0.030s |
2022-08-18 23:14:45 |
2022-08-18 23:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:45 | ------------------------------------ 2022-08-18 23:14:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "entry": "<test>item-cc7652c1-ea11-41ed-995f-4714d706b4f5</test>", "item-id": "item-cc7652c1-ea11-41ed-995f-4714d706b4f5" } 2022-08-18 23:14:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cc7652c1-ea11-41ed-995f-4714d706b4f5" } 2022-08-18 23:14:45 | [Mutex] waiting for: [published:item:notifieditem-cc7652c1-ea11-41ed-995f-4714d706b4f5:admin@test-domain.com] 2022-08-18 23:14:45 | [Mutex] received everything. 2022-08-18 23:14:45 | [Mutex] isItemNotified: published:item:notifieditem-cc7652c1-ea11-41ed-995f-4714d706b4f5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-08-18 23:14:45 |
2022-08-18 23:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:45 | ------------------------------------ 2022-08-18 23:14:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "item-id": "item-cc7652c1-ea11-41ed-995f-4714d706b4f5" } 2022-08-18 23:14:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cc7652c1-ea11-41ed-995f-4714d706b4f5" } 2022-08-18 23:14:45 | [Mutex] received everything. 2022-08-18 23:14:45 | [Mutex] isItemNotified: retracted:item:notifieditem-cc7652c1-ea11-41ed-995f-4714d706b4f5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2022-08-18 23:14:45 |
2022-08-18 23:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:45 | ------------------------------------ 2022-08-18 23:14:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "item-id": "item-cc7652c1-ea11-41ed-995f-4714d706b4f5" } 2022-08-18 23:14:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "item-id": "item-cc7652c1-ea11-41ed-995f-4714d706b4f5", "item": [ "<item id=\"item-cc7652c1-ea11-41ed-995f-4714d706b4f5\"><test>item-cc7652c1-ea11-41ed-995f-4714d706b4f5</test></item>" ] } 2022-08-18 23:14:45 | [Mutex] notify: [retrieved:item:item-cc7652c1-ea11-41ed-995f-4714d706b4f5:payload-matches:true:localhost] 2022-08-18 23:14:45 | [Mutex] received everything. 2022-08-18 23:14:45 | [Mutex] isItemNotified: retrieved:item:item-cc7652c1-ea11-41ed-995f-4714d706b4f5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2022-08-18 23:14:45 |
2022-08-18 23:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:45 | ------------------------------------ 2022-08-18 23:14:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-18 23:14:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-08396a8d-add9-4e8f-9d44-983b9bed1ac5", "node-3abfd954-8f6e-4256-b6e5-e916bb132216" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-18 23:14:45 |
2022-08-18 23:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:45 | ------------------------------------ 2022-08-18 23:14:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3abfd954-8f6e-4256-b6e5-e916bb132216)" } 2022-08-18 23:14:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-08-18 23:14:44 |
2022-08-18 23:14:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:44 | ------------------------------------ 2022-08-18 23:14:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "jids": [ "admin@test-domain.com" ] } 2022-08-18 23:14:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-08-18 23:14:45 |
2022-08-18 23:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:14:45 | ------------------------------------ 2022-08-18 23:14:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3abfd954-8f6e-4256-b6e5-e916bb132216", "jids": [ "admin@test-domain.com" ] } 2022-08-18 23:14:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |