Test duration : 9.252s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2021-09-22 23:08:07 |
2021-09-22 23:08:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:07 | ------------------------------------ 2021-09-22 23:08:07 | [Mutex] waiting for: [configured:node:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d] 2021-09-22 23:08:07 | [Mutex] received everything. 2021-09-22 23:08:07 | [Mutex] isItemNotified: configured:node:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d :: true 2021-09-22 23:08:08 | [Mutex] waiting for: [received:nodes:87e38f00-e1f9-499a-b5b9-978c9c1e4119:localhost] 2021-09-22 23:08:08 | [Mutex] received everything. 2021-09-22 23:08:08 | [Mutex] isItemNotified: received:node:87e38f00-e1f9-499a-b5b9-978c9c1e4119:localhost:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:Node addc4e9a-4938-43f6-9e81-bc388c82dbe5 :: true 2021-09-22 23:08:08 | [Mutex] waiting for: [received:nodes:5060eee2-703a-4082-95fa-3eeed46208be:localhost] 2021-09-22 23:08:08 | [Mutex] waiting for: [received:nodes:5060eee2-703a-4082-95fa-3eeed46208be:localhost] 2021-09-22 23:08:08 | [Mutex] received everything. 2021-09-22 23:08:08 | [Mutex] isItemNotified: received:node:5060eee2-703a-4082-95fa-3eeed46208be:localhost:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:Node addc4e9a-4938-43f6-9e81-bc388c82dbe5 :: false |
createNodes | 1.892s |
2021-09-22 23:08:04 |
2021-09-22 23:08:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:04 | ------------------------------------ 2021-09-22 23:08:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "pubsub#title": "Node addc4e9a-4938-43f6-9e81-bc388c82dbe5" } 2021-09-22 23:08:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:08:06 | [Mutex] waiting for: [received:nodes:39c1f91a-ad96-48ee-bda3-e3fa694579b4:localhost] 2021-09-22 23:08:06 | [Mutex] received everything. 2021-09-22 23:08:06 | [Mutex] isItemNotified: received:node:39c1f91a-ad96-48ee-bda3-e3fa694579b4:localhost:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:Node addc4e9a-4938-43f6-9e81-bc388c82dbe5 :: true |
createSubnodes | 1.033s |
2021-09-22 23:08:06 |
2021-09-22 23:08:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:06 | ------------------------------------ 2021-09-22 23:08:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d", "pubsub#title": "Node 0cf00a8d-9e94-4457-a59e-497e6bf0a52d" } 2021-09-22 23:08:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:08:07 | [Mutex] waiting for: [received:nodes:6702ba5d-a6b2-4304-aa0f-9e06c7789eea:localhost] 2021-09-22 23:08:07 | [Mutex] received everything. 2021-09-22 23:08:07 | [Mutex] isItemNotified: received:node:6702ba5d-a6b2-4304-aa0f-9e06c7789eea:localhost:node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d:Node 0cf00a8d-9e94-4457-a59e-497e6bf0a52d :: true |
deleteNodes | 1.032s |
2021-09-22 23:08:12 |
2021-09-22 23:08:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:12 | ------------------------------------ 2021-09-22 23:08:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d" } 2021-09-22 23:08:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:08:13 | [Mutex] waiting for: [received:nodes:e93330f6-26c1-4f1f-adb3-3c20f019c003:localhost] 2021-09-22 23:08:13 | [Mutex] received everything. 2021-09-22 23:08:13 | [Mutex] isItemNotified: received:node:e93330f6-26c1-4f1f-adb3-3c20f019c003:localhost:node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d:Node 0cf00a8d-9e94-4457-a59e-497e6bf0a52d :: false |
deleteSubnodes | 1.031s |
2021-09-22 23:08:11 |
2021-09-22 23:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:11 | ------------------------------------ 2021-09-22 23:08:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5" } 2021-09-22 23:08:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:08:12 | [Mutex] waiting for: [received:nodes:aa98b0e6-3777-460d-a06c-305ce553d1dc:localhost] 2021-09-22 23:08:12 | [Mutex] received everything. 2021-09-22 23:08:12 | [Mutex] isItemNotified: received:node:aa98b0e6-3777-460d-a06c-305ce553d1dc:localhost:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:Node addc4e9a-4938-43f6-9e81-bc388c82dbe5 :: false 2021-09-22 23:08:12 | [Mutex] waiting for: [received:nodes:f18d8eec-76ce-4051-a58a-7e606ae2961f:localhost] 2021-09-22 23:08:12 | [Mutex] received everything. 2021-09-22 23:08:12 | [Mutex] isItemNotified: received:node:f18d8eec-76ce-4051-a58a-7e606ae2961f:localhost:node-addc4e9a-4938-43f6-9e81-bc388c82dbe5:Node addc4e9a-4938-43f6-9e81-bc388c82dbe5 :: false |
publishItemsToNodes | 0.085s |
2021-09-22 23:08:09 |
2021-09-22 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:09 | ------------------------------------ 2021-09-22 23:08:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "entry": "<test>item-0d792067-e9fb-432b-b223-6ac2a7a037fe</test>", "item-id": "item-0d792067-e9fb-432b-b223-6ac2a7a037fe" } 2021-09-22 23:08:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0d792067-e9fb-432b-b223-6ac2a7a037fe" } 2021-09-22 23:08:09 | [Mutex] waiting for: [published:item:notifieditem-0d792067-e9fb-432b-b223-6ac2a7a037fe:admin@test-domain.com] 2021-09-22 23:08:10 | [Mutex] received everything. 2021-09-22 23:08:10 | [Mutex] isItemNotified: published:item:notifieditem-0d792067-e9fb-432b-b223-6ac2a7a037fe:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-09-22 23:08:10 |
2021-09-22 23:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:10 | ------------------------------------ 2021-09-22 23:08:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "item-id": "item-0d792067-e9fb-432b-b223-6ac2a7a037fe" } 2021-09-22 23:08:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0d792067-e9fb-432b-b223-6ac2a7a037fe" } 2021-09-22 23:08:10 | [Mutex] received everything. 2021-09-22 23:08:10 | [Mutex] isItemNotified: retracted:item:notifieditem-0d792067-e9fb-432b-b223-6ac2a7a037fe:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.015s |
2021-09-22 23:08:10 |
2021-09-22 23:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:10 | ------------------------------------ 2021-09-22 23:08:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "item-id": "item-0d792067-e9fb-432b-b223-6ac2a7a037fe" } 2021-09-22 23:08:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "item-id": "item-0d792067-e9fb-432b-b223-6ac2a7a037fe", "item": [ "<item id=\"item-0d792067-e9fb-432b-b223-6ac2a7a037fe\"><test>item-0d792067-e9fb-432b-b223-6ac2a7a037fe</test></item>" ] } 2021-09-22 23:08:10 | [Mutex] notify: [retrieved:item:item-0d792067-e9fb-432b-b223-6ac2a7a037fe:payload-matches:true:localhost] 2021-09-22 23:08:10 | [Mutex] received everything. 2021-09-22 23:08:10 | [Mutex] isItemNotified: retrieved:item:item-0d792067-e9fb-432b-b223-6ac2a7a037fe:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.152s |
2021-09-22 23:08:10 |
2021-09-22 23:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:10 | ------------------------------------ 2021-09-22 23:08:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-22 23:08:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0cf00a8d-9e94-4457-a59e-497e6bf0a52d", "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-22 23:08:10 |
2021-09-22 23:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:10 | ------------------------------------ 2021-09-22 23:08:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-addc4e9a-4938-43f6-9e81-bc388c82dbe5)" } 2021-09-22 23:08:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-09-22 23:08:08 |
2021-09-22 23:08:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:08 | ------------------------------------ 2021-09-22 23:08:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "jids": [ "admin@test-domain.com" ] } 2021-09-22 23:08:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2021-09-22 23:08:10 |
2021-09-22 23:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:08:10 | ------------------------------------ 2021-09-22 23:08:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-addc4e9a-4938-43f6-9e81-bc388c82dbe5", "jids": [ "admin@test-domain.com" ] } 2021-09-22 23:08:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |