Test duration : 9.235s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2020-09-16 23:15:43 |
2020-09-16 23:15:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:43 | ------------------------------------ 2020-09-16 23:15:43 | [Mutex] waiting for: [configured:node:node-4936b731-3de6-4873-a879-35960b18d83d:node-db572676-8088-43f7-a3aa-533f59b27f78] 2020-09-16 23:15:43 | [Mutex] received everything. 2020-09-16 23:15:43 | [Mutex] isItemNotified: configured:node:node-4936b731-3de6-4873-a879-35960b18d83d:node-db572676-8088-43f7-a3aa-533f59b27f78 :: true 2020-09-16 23:15:44 | [Mutex] waiting for: [received:nodes:8aa8dbe8-c21f-4128-aa65-ad2b42385ff8:localhost] 2020-09-16 23:15:44 | [Mutex] received everything. 2020-09-16 23:15:44 | [Mutex] isItemNotified: received:node:8aa8dbe8-c21f-4128-aa65-ad2b42385ff8:localhost:node-4936b731-3de6-4873-a879-35960b18d83d:Node 4936b731-3de6-4873-a879-35960b18d83d :: true 2020-09-16 23:15:44 | [Mutex] waiting for: [received:nodes:3853a3a5-19d1-4d73-91fe-dcd628354381:localhost] 2020-09-16 23:15:44 | [Mutex] waiting for: [received:nodes:3853a3a5-19d1-4d73-91fe-dcd628354381:localhost] 2020-09-16 23:15:44 | [Mutex] waiting for: [received:nodes:3853a3a5-19d1-4d73-91fe-dcd628354381:localhost] 2020-09-16 23:15:44 | [Mutex] received everything. 2020-09-16 23:15:44 | [Mutex] isItemNotified: received:node:3853a3a5-19d1-4d73-91fe-dcd628354381:localhost:node-4936b731-3de6-4873-a879-35960b18d83d:Node 4936b731-3de6-4873-a879-35960b18d83d :: false |
createNodes | 1.821s |
2020-09-16 23:15:40 |
2020-09-16 23:15:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:40 | ------------------------------------ 2020-09-16 23:15: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-4936b731-3de6-4873-a879-35960b18d83d", "pubsub#title": "Node 4936b731-3de6-4873-a879-35960b18d83d" } 2020-09-16 23:15:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:15:42 | [Mutex] waiting for: [received:nodes:d2f56e43-0f9f-4111-baa2-695802cda6ba:localhost] 2020-09-16 23:15:42 | [Mutex] waiting for: [received:nodes:d2f56e43-0f9f-4111-baa2-695802cda6ba:localhost] 2020-09-16 23:15:42 | [Mutex] received everything. 2020-09-16 23:15:42 | [Mutex] isItemNotified: received:node:d2f56e43-0f9f-4111-baa2-695802cda6ba:localhost:node-4936b731-3de6-4873-a879-35960b18d83d:Node 4936b731-3de6-4873-a879-35960b18d83d :: true |
createSubnodes | 1.041s |
2020-09-16 23:15:42 |
2020-09-16 23:15:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:42 | ------------------------------------ 2020-09-16 23:15: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-db572676-8088-43f7-a3aa-533f59b27f78", "pubsub#title": "Node db572676-8088-43f7-a3aa-533f59b27f78" } 2020-09-16 23:15:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:15:43 | [Mutex] waiting for: [received:nodes:b3066dfd-5a96-4437-a9ef-46d06c47d01e:localhost] 2020-09-16 23:15:43 | [Mutex] received everything. 2020-09-16 23:15:43 | [Mutex] isItemNotified: received:node:b3066dfd-5a96-4437-a9ef-46d06c47d01e:localhost:node-db572676-8088-43f7-a3aa-533f59b27f78:Node db572676-8088-43f7-a3aa-533f59b27f78 :: true |
deleteNodes | 1.024s |
2020-09-16 23:15:48 |
2020-09-16 23:15:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:48 | ------------------------------------ 2020-09-16 23:15:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-db572676-8088-43f7-a3aa-533f59b27f78" } 2020-09-16 23:15:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:15:49 | [Mutex] waiting for: [received:nodes:ae305ee6-0f35-44fd-a659-3ce9ae14a910:localhost] 2020-09-16 23:15:49 | [Mutex] received everything. 2020-09-16 23:15:49 | [Mutex] isItemNotified: received:node:ae305ee6-0f35-44fd-a659-3ce9ae14a910:localhost:node-db572676-8088-43f7-a3aa-533f59b27f78:Node db572676-8088-43f7-a3aa-533f59b27f78 :: false |
deleteSubnodes | 1.035s |
2020-09-16 23:15:47 |
2020-09-16 23:15:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:47 | ------------------------------------ 2020-09-16 23:15:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4936b731-3de6-4873-a879-35960b18d83d" } 2020-09-16 23:15:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 23:15:48 | [Mutex] waiting for: [received:nodes:8fee0d24-7b4d-4e08-bc4f-6e07530aee1e:localhost] 2020-09-16 23:15:48 | [Mutex] received everything. 2020-09-16 23:15:48 | [Mutex] isItemNotified: received:node:8fee0d24-7b4d-4e08-bc4f-6e07530aee1e:localhost:node-4936b731-3de6-4873-a879-35960b18d83d:Node 4936b731-3de6-4873-a879-35960b18d83d :: false 2020-09-16 23:15:48 | [Mutex] waiting for: [received:nodes:a6c71bba-51d0-4b34-8d16-24b31226ad8e:localhost] 2020-09-16 23:15:48 | [Mutex] received everything. 2020-09-16 23:15:48 | [Mutex] isItemNotified: received:node:a6c71bba-51d0-4b34-8d16-24b31226ad8e:localhost:node-4936b731-3de6-4873-a879-35960b18d83d:Node 4936b731-3de6-4873-a879-35960b18d83d :: false |
publishItemsToNodes | 0.044s |
2020-09-16 23:15:45 |
2020-09-16 23:15:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:45 | ------------------------------------ 2020-09-16 23:15:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4936b731-3de6-4873-a879-35960b18d83d", "entry": "<test>item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a</test>", "item-id": "item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a" } 2020-09-16 23:15:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a" } 2020-09-16 23:15:45 | [Mutex] waiting for: [published:item:notifieditem-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a:admin@test-domain.com] 2020-09-16 23:15:45 | [Mutex] received everything. 2020-09-16 23:15:45 | [Mutex] isItemNotified: published:item:notifieditem-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.076s |
2020-09-16 23:15:46 |
2020-09-16 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:46 | ------------------------------------ 2020-09-16 23:15:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4936b731-3de6-4873-a879-35960b18d83d", "item-id": "item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a" } 2020-09-16 23:15:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a" } 2020-09-16 23:15:46 | [Mutex] received everything. 2020-09-16 23:15:46 | [Mutex] isItemNotified: retracted:item:notifieditem-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.090s |
2020-09-16 23:15:45 |
2020-09-16 23:15:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:45 | ------------------------------------ 2020-09-16 23:15:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4936b731-3de6-4873-a879-35960b18d83d", "item-id": "item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a" } 2020-09-16 23:15:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4936b731-3de6-4873-a879-35960b18d83d", "item-id": "item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a", "item": [ "<item id=\"item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a\"><test>item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a</test></item>" ] } 2020-09-16 23:15:45 | [Mutex] notify: [retrieved:item:item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a:payload-matches:true:localhost] 2020-09-16 23:15:45 | [Mutex] received everything. 2020-09-16 23:15:45 | [Mutex] isItemNotified: retrieved:item:item-bd6c0d16-1f35-4ead-b059-e8ac6e635a8a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-16 23:15:45 |
2020-09-16 23:15:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:45 | ------------------------------------ 2020-09-16 23:15:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-16 23:15:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-db572676-8088-43f7-a3aa-533f59b27f78", "node-4936b731-3de6-4873-a879-35960b18d83d" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-16 23:15:45 |
2020-09-16 23:15:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:45 | ------------------------------------ 2020-09-16 23:15:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4936b731-3de6-4873-a879-35960b18d83d)" } 2020-09-16 23:15:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2020-09-16 23:15:44 |
2020-09-16 23:15:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:44 | ------------------------------------ 2020-09-16 23:15:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4936b731-3de6-4873-a879-35960b18d83d", "jids": [ "admin@test-domain.com" ] } 2020-09-16 23:15:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-09-16 23:15:46 |
2020-09-16 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 23:15:46 | ------------------------------------ 2020-09-16 23:15:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4936b731-3de6-4873-a879-35960b18d83d", "jids": [ "admin@test-domain.com" ] } 2020-09-16 23:15:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |