Test duration : 9.138s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2021-06-24 22:58:52 |
2021-06-24 22:58:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:52 | ------------------------------------ 2021-06-24 22:58:52 | [Mutex] waiting for: [configured:node:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:node-c13ac48d-3ac7-4990-8e66-11092b99d176] 2021-06-24 22:58:52 | [Mutex] received everything. 2021-06-24 22:58:52 | [Mutex] isItemNotified: configured:node:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:node-c13ac48d-3ac7-4990-8e66-11092b99d176 :: true 2021-06-24 22:58:53 | [Mutex] waiting for: [received:nodes:4f3160d9-2cdd-40e3-b920-93f0ef568f2b:localhost] 2021-06-24 22:58:53 | [Mutex] waiting for: [received:nodes:4f3160d9-2cdd-40e3-b920-93f0ef568f2b:localhost] 2021-06-24 22:58:53 | [Mutex] received everything. 2021-06-24 22:58:53 | [Mutex] isItemNotified: received:node:4f3160d9-2cdd-40e3-b920-93f0ef568f2b:localhost:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:Node 64c4393d-c4a0-4804-9942-d9f5b1b42e6e :: true 2021-06-24 22:58:53 | [Mutex] waiting for: [received:nodes:fab7d135-b8db-4dc5-9c5a-3106da6da49d:localhost] 2021-06-24 22:58:53 | [Mutex] received everything. 2021-06-24 22:58:53 | [Mutex] isItemNotified: received:node:fab7d135-b8db-4dc5-9c5a-3106da6da49d:localhost:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:Node 64c4393d-c4a0-4804-9942-d9f5b1b42e6e :: false |
createNodes | 1.688s |
2021-06-24 22:58:50 |
2021-06-24 22:58:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:50 | ------------------------------------ 2021-06-24 22:58:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "pubsub#title": "Node 64c4393d-c4a0-4804-9942-d9f5b1b42e6e" } 2021-06-24 22:58:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:58:51 | [Mutex] waiting for: [received:nodes:37d13dde-193c-4b37-8631-b510ea0b36e2:localhost] 2021-06-24 22:58:51 | [Mutex] received everything. 2021-06-24 22:58:51 | [Mutex] isItemNotified: received:node:37d13dde-193c-4b37-8631-b510ea0b36e2:localhost:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:Node 64c4393d-c4a0-4804-9942-d9f5b1b42e6e :: true |
createSubnodes | 1.030s |
2021-06-24 22:58:51 |
2021-06-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:51 | ------------------------------------ 2021-06-24 22:58:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c13ac48d-3ac7-4990-8e66-11092b99d176", "pubsub#title": "Node c13ac48d-3ac7-4990-8e66-11092b99d176" } 2021-06-24 22:58:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:58:52 | [Mutex] waiting for: [received:nodes:a1196e08-8cda-4752-aa76-b592a07c2130:localhost] 2021-06-24 22:58:52 | [Mutex] waiting for: [received:nodes:a1196e08-8cda-4752-aa76-b592a07c2130:localhost] 2021-06-24 22:58:52 | [Mutex] received everything. 2021-06-24 22:58:52 | [Mutex] isItemNotified: received:node:a1196e08-8cda-4752-aa76-b592a07c2130:localhost:node-c13ac48d-3ac7-4990-8e66-11092b99d176:Node c13ac48d-3ac7-4990-8e66-11092b99d176 :: true |
deleteNodes | 1.036s |
2021-06-24 22:58:57 |
2021-06-24 22:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:57 | ------------------------------------ 2021-06-24 22:58:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c13ac48d-3ac7-4990-8e66-11092b99d176" } 2021-06-24 22:58:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:58:58 | [Mutex] waiting for: [received:nodes:543d5466-1641-43a0-ab6d-014029bb02dc:localhost] 2021-06-24 22:58:58 | [Mutex] received everything. 2021-06-24 22:58:58 | [Mutex] isItemNotified: received:node:543d5466-1641-43a0-ab6d-014029bb02dc:localhost:node-c13ac48d-3ac7-4990-8e66-11092b99d176:Node c13ac48d-3ac7-4990-8e66-11092b99d176 :: false |
deleteSubnodes | 1.060s |
2021-06-24 22:58:56 |
2021-06-24 22:58:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:56 | ------------------------------------ 2021-06-24 22:58:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e" } 2021-06-24 22:58:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:58:57 | [Mutex] waiting for: [received:nodes:a6694c8d-9edb-4215-880e-e7787fdff441:localhost] 2021-06-24 22:58:57 | [Mutex] waiting for: [received:nodes:a6694c8d-9edb-4215-880e-e7787fdff441:localhost] 2021-06-24 22:58:57 | [Mutex] received everything. 2021-06-24 22:58:57 | [Mutex] isItemNotified: received:node:a6694c8d-9edb-4215-880e-e7787fdff441:localhost:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:Node 64c4393d-c4a0-4804-9942-d9f5b1b42e6e :: false 2021-06-24 22:58:57 | [Mutex] waiting for: [received:nodes:89ed4f89-2b74-4ce5-a89e-cc0e81d982ba:localhost] 2021-06-24 22:58:57 | [Mutex] received everything. 2021-06-24 22:58:57 | [Mutex] isItemNotified: received:node:89ed4f89-2b74-4ce5-a89e-cc0e81d982ba:localhost:node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e:Node 64c4393d-c4a0-4804-9942-d9f5b1b42e6e :: false |
publishItemsToNodes | 0.046s |
2021-06-24 22:58:54 |
2021-06-24 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:54 | ------------------------------------ 2021-06-24 22:58:54 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "entry": "<test>item-1a764a46-9985-4d09-b524-b74332442c69</test>", "item-id": "item-1a764a46-9985-4d09-b524-b74332442c69" } 2021-06-24 22:58:54 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1a764a46-9985-4d09-b524-b74332442c69" } 2021-06-24 22:58:54 | [Mutex] received everything. 2021-06-24 22:58:54 | [Mutex] isItemNotified: published:item:notifieditem-1a764a46-9985-4d09-b524-b74332442c69:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-06-24 22:58:55 |
2021-06-24 22:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:55 | ------------------------------------ 2021-06-24 22:58:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "item-id": "item-1a764a46-9985-4d09-b524-b74332442c69" } 2021-06-24 22:58:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1a764a46-9985-4d09-b524-b74332442c69" } 2021-06-24 22:58:55 | [Mutex] received everything. 2021-06-24 22:58:55 | [Mutex] isItemNotified: retracted:item:notifieditem-1a764a46-9985-4d09-b524-b74332442c69:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2021-06-24 22:58:54 |
2021-06-24 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:54 | ------------------------------------ 2021-06-24 22:58:54 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "item-id": "item-1a764a46-9985-4d09-b524-b74332442c69" } 2021-06-24 22:58:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "item-id": "item-1a764a46-9985-4d09-b524-b74332442c69", "item": [ "<item id=\"item-1a764a46-9985-4d09-b524-b74332442c69\"><test>item-1a764a46-9985-4d09-b524-b74332442c69</test></item>" ] } 2021-06-24 22:58:55 | [Mutex] notify: [retrieved:item:item-1a764a46-9985-4d09-b524-b74332442c69:payload-matches:true:localhost] 2021-06-24 22:58:55 | [Mutex] received everything. 2021-06-24 22:58:55 | [Mutex] isItemNotified: retrieved:item:item-1a764a46-9985-4d09-b524-b74332442c69:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-06-24 22:58:55 |
2021-06-24 22:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:55 | ------------------------------------ 2021-06-24 22:58:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-24 22:58:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "node-c13ac48d-3ac7-4990-8e66-11092b99d176" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-06-24 22:58:55 |
2021-06-24 22:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:55 | ------------------------------------ 2021-06-24 22:58:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e)" } 2021-06-24 22:58:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-06-24 22:58:53 |
2021-06-24 22:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:53 | ------------------------------------ 2021-06-24 22:58:53 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:58:53 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2021-06-24 22:58:55 |
2021-06-24 22:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:58:55 | ------------------------------------ 2021-06-24 22:58:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-64c4393d-c4a0-4804-9942-d9f5b1b42e6e", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:58:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |