Test duration : 9.085s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2021-03-18 22:39:41 |
2021-03-18 22:39:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:41 | ------------------------------------ 2021-03-18 22:39:41 | [Mutex] waiting for: [configured:node:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:node-c6718fc0-c045-4e89-abfc-7387da01a2f5] 2021-03-18 22:39:41 | [Mutex] received everything. 2021-03-18 22:39:41 | [Mutex] isItemNotified: configured:node:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:node-c6718fc0-c045-4e89-abfc-7387da01a2f5 :: true 2021-03-18 22:39:42 | [Mutex] waiting for: [received:nodes:e73363d9-59c9-48df-824e-6f8521aa401e:localhost] 2021-03-18 22:39:42 | [Mutex] received everything. 2021-03-18 22:39:42 | [Mutex] isItemNotified: received:node:e73363d9-59c9-48df-824e-6f8521aa401e:localhost:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:Node 7cf49e6f-4758-4f9a-a439-91d7390d1d0a :: true 2021-03-18 22:39:42 | [Mutex] waiting for: [received:nodes:33e3c6a7-dce9-4761-9c3b-175fef66c1f1:localhost] 2021-03-18 22:39:42 | [Mutex] waiting for: [received:nodes:33e3c6a7-dce9-4761-9c3b-175fef66c1f1:localhost] 2021-03-18 22:39:42 | [Mutex] received everything. 2021-03-18 22:39:42 | [Mutex] isItemNotified: received:node:33e3c6a7-dce9-4761-9c3b-175fef66c1f1:localhost:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:Node 7cf49e6f-4758-4f9a-a439-91d7390d1d0a :: false |
createNodes | 1.757s |
2021-03-18 22:39:39 |
2021-03-18 22:39:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:39 | ------------------------------------ 2021-03-18 22:39:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "pubsub#title": "Node 7cf49e6f-4758-4f9a-a439-91d7390d1d0a" } 2021-03-18 22:39:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:39:40 | [Mutex] waiting for: [received:nodes:8c168d72-44aa-4184-bc62-dcf6737f8ad2:localhost] 2021-03-18 22:39:40 | [Mutex] waiting for: [received:nodes:8c168d72-44aa-4184-bc62-dcf6737f8ad2:localhost] 2021-03-18 22:39:40 | [Mutex] received everything. 2021-03-18 22:39:40 | [Mutex] isItemNotified: received:node:8c168d72-44aa-4184-bc62-dcf6737f8ad2:localhost:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:Node 7cf49e6f-4758-4f9a-a439-91d7390d1d0a :: true |
createSubnodes | 1.025s |
2021-03-18 22:39:40 |
2021-03-18 22:39:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:40 | ------------------------------------ 2021-03-18 22:39:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c6718fc0-c045-4e89-abfc-7387da01a2f5", "pubsub#title": "Node c6718fc0-c045-4e89-abfc-7387da01a2f5" } 2021-03-18 22:39:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:39:41 | [Mutex] waiting for: [received:nodes:cbef1d02-e9fd-416e-ba21-dc6659e49bdd:localhost] 2021-03-18 22:39:41 | [Mutex] received everything. 2021-03-18 22:39:41 | [Mutex] isItemNotified: received:node:cbef1d02-e9fd-416e-ba21-dc6659e49bdd:localhost:node-c6718fc0-c045-4e89-abfc-7387da01a2f5:Node c6718fc0-c045-4e89-abfc-7387da01a2f5 :: true |
deleteNodes | 1.024s |
2021-03-18 22:39:46 |
2021-03-18 22:39:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:46 | ------------------------------------ 2021-03-18 22:39:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c6718fc0-c045-4e89-abfc-7387da01a2f5" } 2021-03-18 22:39:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:39:47 | [Mutex] waiting for: [received:nodes:481401e2-027d-433c-a497-ba73aea66b46:localhost] 2021-03-18 22:39:47 | [Mutex] received everything. 2021-03-18 22:39:47 | [Mutex] isItemNotified: received:node:481401e2-027d-433c-a497-ba73aea66b46:localhost:node-c6718fc0-c045-4e89-abfc-7387da01a2f5:Node c6718fc0-c045-4e89-abfc-7387da01a2f5 :: false |
deleteSubnodes | 1.027s |
2021-03-18 22:39:45 |
2021-03-18 22:39:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:45 | ------------------------------------ 2021-03-18 22:39:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a" } 2021-03-18 22:39:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:39:46 | [Mutex] waiting for: [received:nodes:2ba0f656-0017-4913-b162-e7a2572807a1:localhost] 2021-03-18 22:39:46 | [Mutex] received everything. 2021-03-18 22:39:46 | [Mutex] isItemNotified: received:node:2ba0f656-0017-4913-b162-e7a2572807a1:localhost:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:Node 7cf49e6f-4758-4f9a-a439-91d7390d1d0a :: false 2021-03-18 22:39:46 | [Mutex] waiting for: [received:nodes:2809d19b-b764-4cb2-a371-84e6bd8d34f9:localhost] 2021-03-18 22:39:46 | [Mutex] received everything. 2021-03-18 22:39:46 | [Mutex] isItemNotified: received:node:2809d19b-b764-4cb2-a371-84e6bd8d34f9:localhost:node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a:Node 7cf49e6f-4758-4f9a-a439-91d7390d1d0a :: false |
publishItemsToNodes | 0.032s |
2021-03-18 22:39:43 |
2021-03-18 22:39:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:43 | ------------------------------------ 2021-03-18 22:39:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "entry": "<test>item-f53d3626-9cd3-408e-8f6c-517bb29318a0</test>", "item-id": "item-f53d3626-9cd3-408e-8f6c-517bb29318a0" } 2021-03-18 22:39:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f53d3626-9cd3-408e-8f6c-517bb29318a0" } 2021-03-18 22:39:43 | [Mutex] waiting for: [published:item:notifieditem-f53d3626-9cd3-408e-8f6c-517bb29318a0:admin@test-domain.com] 2021-03-18 22:39:43 | [Mutex] received everything. 2021-03-18 22:39:43 | [Mutex] isItemNotified: published:item:notifieditem-f53d3626-9cd3-408e-8f6c-517bb29318a0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-03-18 22:39:44 |
2021-03-18 22:39:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:44 | ------------------------------------ 2021-03-18 22:39:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "item-id": "item-f53d3626-9cd3-408e-8f6c-517bb29318a0" } 2021-03-18 22:39:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f53d3626-9cd3-408e-8f6c-517bb29318a0" } 2021-03-18 22:39:44 | [Mutex] received everything. 2021-03-18 22:39:44 | [Mutex] isItemNotified: retracted:item:notifieditem-f53d3626-9cd3-408e-8f6c-517bb29318a0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2021-03-18 22:39:43 |
2021-03-18 22:39:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:43 | ------------------------------------ 2021-03-18 22:39:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "item-id": "item-f53d3626-9cd3-408e-8f6c-517bb29318a0" } 2021-03-18 22:39:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "item-id": "item-f53d3626-9cd3-408e-8f6c-517bb29318a0", "item": [ "<item id=\"item-f53d3626-9cd3-408e-8f6c-517bb29318a0\"><test>item-f53d3626-9cd3-408e-8f6c-517bb29318a0</test></item>" ] } 2021-03-18 22:39:44 | [Mutex] notify: [retrieved:item:item-f53d3626-9cd3-408e-8f6c-517bb29318a0:payload-matches:true:localhost] 2021-03-18 22:39:44 | [Mutex] received everything. 2021-03-18 22:39:44 | [Mutex] isItemNotified: retrieved:item:item-f53d3626-9cd3-408e-8f6c-517bb29318a0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-18 22:39:44 |
2021-03-18 22:39:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:44 | ------------------------------------ 2021-03-18 22:39:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-18 22:39:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "node-c6718fc0-c045-4e89-abfc-7387da01a2f5" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-03-18 22:39:44 |
2021-03-18 22:39:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:44 | ------------------------------------ 2021-03-18 22:39:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a)" } 2021-03-18 22:39:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-03-18 22:39:42 |
2021-03-18 22:39:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:42 | ------------------------------------ 2021-03-18 22:39:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "jids": [ "admin@test-domain.com" ] } 2021-03-18 22:39:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-03-18 22:39:44 |
2021-03-18 22:39:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:39:44 | ------------------------------------ 2021-03-18 22:39:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7cf49e6f-4758-4f9a-a439-91d7390d1d0a", "jids": [ "admin@test-domain.com" ] } 2021-03-18 22:39:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |