Test duration : 8.782s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2022-08-18 23:03:16 |
2022-08-18 23:03:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:16 | ------------------------------------ 2022-08-18 23:03:16 | [Mutex] waiting for: [configured:node:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:node-785b2275-e97a-4e12-90ea-5eecd1e98f04] 2022-08-18 23:03:16 | [Mutex] received everything. 2022-08-18 23:03:16 | [Mutex] isItemNotified: configured:node:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:node-785b2275-e97a-4e12-90ea-5eecd1e98f04 :: true 2022-08-18 23:03:17 | [Mutex] waiting for: [received:nodes:8d055862-bfdc-40ab-be5e-e470a23cf557:localhost] 2022-08-18 23:03:17 | [Mutex] received everything. 2022-08-18 23:03:17 | [Mutex] isItemNotified: received:node:8d055862-bfdc-40ab-be5e-e470a23cf557:localhost:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:Node 7bc36af4-6c3b-4589-ad3c-ef2ca8f74830 :: true 2022-08-18 23:03:17 | [Mutex] waiting for: [received:nodes:dc2e759e-c5cc-4af3-8c84-7786bc4381e5:localhost] 2022-08-18 23:03:17 | [Mutex] waiting for: [received:nodes:dc2e759e-c5cc-4af3-8c84-7786bc4381e5:localhost] 2022-08-18 23:03:17 | [Mutex] received everything. 2022-08-18 23:03:17 | [Mutex] isItemNotified: received:node:dc2e759e-c5cc-4af3-8c84-7786bc4381e5:localhost:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:Node 7bc36af4-6c3b-4589-ad3c-ef2ca8f74830 :: false |
createNodes | 1.687s |
2022-08-18 23:03:13 |
2022-08-18 23:03:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:13 | ------------------------------------ 2022-08-18 23:03:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "pubsub#title": "Node 7bc36af4-6c3b-4589-ad3c-ef2ca8f74830" } 2022-08-18 23:03:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:03:15 | [Mutex] waiting for: [received:nodes:8a138b54-ef06-45f8-a25d-7b96af7b6bec:localhost] 2022-08-18 23:03:15 | [Mutex] received everything. 2022-08-18 23:03:15 | [Mutex] isItemNotified: received:node:8a138b54-ef06-45f8-a25d-7b96af7b6bec:localhost:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:Node 7bc36af4-6c3b-4589-ad3c-ef2ca8f74830 :: true |
createSubnodes | 1.020s |
2022-08-18 23:03:15 |
2022-08-18 23:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:15 | ------------------------------------ 2022-08-18 23:03:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-785b2275-e97a-4e12-90ea-5eecd1e98f04", "pubsub#title": "Node 785b2275-e97a-4e12-90ea-5eecd1e98f04" } 2022-08-18 23:03:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:03:16 | [Mutex] waiting for: [received:nodes:87afdb0a-07ce-487b-80d0-90d7aec9ba42:localhost] 2022-08-18 23:03:16 | [Mutex] waiting for: [received:nodes:87afdb0a-07ce-487b-80d0-90d7aec9ba42:localhost] 2022-08-18 23:03:16 | [Mutex] received everything. 2022-08-18 23:03:16 | [Mutex] isItemNotified: received:node:87afdb0a-07ce-487b-80d0-90d7aec9ba42:localhost:node-785b2275-e97a-4e12-90ea-5eecd1e98f04:Node 785b2275-e97a-4e12-90ea-5eecd1e98f04 :: true |
deleteNodes | 1.020s |
2022-08-18 23:03:21 |
2022-08-18 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:21 | ------------------------------------ 2022-08-18 23:03:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-785b2275-e97a-4e12-90ea-5eecd1e98f04" } 2022-08-18 23:03:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:03:22 | [Mutex] waiting for: [received:nodes:57935a88-3ead-4369-9687-a6c8c0af553b:localhost] 2022-08-18 23:03:22 | [Mutex] waiting for: [received:nodes:57935a88-3ead-4369-9687-a6c8c0af553b:localhost] 2022-08-18 23:03:22 | [Mutex] waiting for: [received:nodes:57935a88-3ead-4369-9687-a6c8c0af553b:localhost] 2022-08-18 23:03:22 | [Mutex] received everything. 2022-08-18 23:03:22 | [Mutex] isItemNotified: received:node:57935a88-3ead-4369-9687-a6c8c0af553b:localhost:node-785b2275-e97a-4e12-90ea-5eecd1e98f04:Node 785b2275-e97a-4e12-90ea-5eecd1e98f04 :: false |
deleteSubnodes | 1.026s |
2022-08-18 23:03:20 |
2022-08-18 23:03:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:20 | ------------------------------------ 2022-08-18 23:03:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830" } 2022-08-18 23:03:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 23:03:21 | [Mutex] waiting for: [received:nodes:59e5d537-bad6-4064-8288-60a6977d5ca7:localhost] 2022-08-18 23:03:21 | [Mutex] received everything. 2022-08-18 23:03:21 | [Mutex] isItemNotified: received:node:59e5d537-bad6-4064-8288-60a6977d5ca7:localhost:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:Node 7bc36af4-6c3b-4589-ad3c-ef2ca8f74830 :: false 2022-08-18 23:03:21 | [Mutex] waiting for: [received:nodes:742e6ce7-bf0b-43ee-81fc-90ce5134b61e:localhost] 2022-08-18 23:03:21 | [Mutex] received everything. 2022-08-18 23:03:21 | [Mutex] isItemNotified: received:node:742e6ce7-bf0b-43ee-81fc-90ce5134b61e:localhost:node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830:Node 7bc36af4-6c3b-4589-ad3c-ef2ca8f74830 :: false |
publishItemsToNodes | 0.053s |
2022-08-18 23:03:18 |
2022-08-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:18 | ------------------------------------ 2022-08-18 23:03:18 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "entry": "<test>item-df732a6a-7608-4324-a292-dbbc73ae35be</test>", "item-id": "item-df732a6a-7608-4324-a292-dbbc73ae35be" } 2022-08-18 23:03:18 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-df732a6a-7608-4324-a292-dbbc73ae35be" } 2022-08-18 23:03:18 | [Mutex] waiting for: [published:item:notifieditem-df732a6a-7608-4324-a292-dbbc73ae35be:admin@test-domain.com] 2022-08-18 23:03:18 | [Mutex] received everything. 2022-08-18 23:03:18 | [Mutex] isItemNotified: published:item:notifieditem-df732a6a-7608-4324-a292-dbbc73ae35be:admin@test-domain.com :: true |
retractItemsFromNodes | 0.053s |
2022-08-18 23:03:18 |
2022-08-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:18 | ------------------------------------ 2022-08-18 23:03:18 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "item-id": "item-df732a6a-7608-4324-a292-dbbc73ae35be" } 2022-08-18 23:03:18 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-df732a6a-7608-4324-a292-dbbc73ae35be" } 2022-08-18 23:03:18 | [Mutex] waiting for: [retracted:item:notifieditem-df732a6a-7608-4324-a292-dbbc73ae35be:admin@test-domain.com] 2022-08-18 23:03:18 | [Mutex] received everything. 2022-08-18 23:03:18 | [Mutex] isItemNotified: retracted:item:notifieditem-df732a6a-7608-4324-a292-dbbc73ae35be:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2022-08-18 23:03:18 |
2022-08-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:18 | ------------------------------------ 2022-08-18 23:03:18 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "item-id": "item-df732a6a-7608-4324-a292-dbbc73ae35be" } 2022-08-18 23:03:18 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "item-id": "item-df732a6a-7608-4324-a292-dbbc73ae35be", "item": [ "<item id=\"item-df732a6a-7608-4324-a292-dbbc73ae35be\"><test>item-df732a6a-7608-4324-a292-dbbc73ae35be</test></item>" ] } 2022-08-18 23:03:18 | [Mutex] notify: [retrieved:item:item-df732a6a-7608-4324-a292-dbbc73ae35be:payload-matches:true:localhost] 2022-08-18 23:03:18 | [Mutex] received everything. 2022-08-18 23:03:18 | [Mutex] isItemNotified: retrieved:item:item-df732a6a-7608-4324-a292-dbbc73ae35be:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2022-08-18 23:03:18 |
2022-08-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:18 | ------------------------------------ 2022-08-18 23:03:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-18 23:03:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "node-785b2275-e97a-4e12-90ea-5eecd1e98f04", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-18 23:03:18 |
2022-08-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:18 | ------------------------------------ 2022-08-18 23:03:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830)" } 2022-08-18 23:03:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-08-18 23:03:17 |
2022-08-18 23:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:17 | ------------------------------------ 2022-08-18 23:03:17 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "jids": [ "admin@test-domain.com" ] } 2022-08-18 23:03:17 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.073s |
2022-08-18 23:03:18 |
2022-08-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 23:03:18 | ------------------------------------ 2022-08-18 23:03:18 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7bc36af4-6c3b-4589-ad3c-ef2ca8f74830", "jids": [ "admin@test-domain.com" ] } 2022-08-18 23:03:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |