Test duration: 8.889s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2020-05-27 22:49:21 |
2020-05-27 22:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:21 | ------------------------------------ 2020-05-27 22:49:21 | [Mutex] waiting for: [configured:node:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:node-35986189-38c0-4866-9c09-ff02a697c3ca] 2020-05-27 22:49:21 | [Mutex] received everything. 2020-05-27 22:49:21 | [Mutex] isItemNotified: configured:node:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:node-35986189-38c0-4866-9c09-ff02a697c3ca :: true 2020-05-27 22:49:22 | [Mutex] waiting for: [received:nodes:e606b85f-f8bb-4370-97c4-92a5080cb6b0:localhost] 2020-05-27 22:49:22 | [Mutex] received everything. 2020-05-27 22:49:22 | [Mutex] isItemNotified: received:node:e606b85f-f8bb-4370-97c4-92a5080cb6b0:localhost:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:Node 6da58ee3-a015-4387-9f15-7b6f3a211de9 :: true 2020-05-27 22:49:22 | [Mutex] waiting for: [received:nodes:97de7cb8-816c-4d31-8e7a-14151191ccca:localhost] 2020-05-27 22:49:22 | [Mutex] received everything. 2020-05-27 22:49:22 | [Mutex] isItemNotified: received:node:97de7cb8-816c-4d31-8e7a-14151191ccca:localhost:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:Node 6da58ee3-a015-4387-9f15-7b6f3a211de9 :: false |
createNodes | 1.613s |
2020-05-27 22:49:18 |
2020-05-27 22:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:18 | ------------------------------------ 2020-05-27 22:49:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "pubsub#title": "Node 6da58ee3-a015-4387-9f15-7b6f3a211de9" } 2020-05-27 22:49:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-27 22:49:20 | [Mutex] waiting for: [received:nodes:c6e0ee76-a2e8-4984-81e1-b0acd4641a8b:localhost] 2020-05-27 22:49:20 | [Mutex] received everything. 2020-05-27 22:49:20 | [Mutex] isItemNotified: received:node:c6e0ee76-a2e8-4984-81e1-b0acd4641a8b:localhost:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:Node 6da58ee3-a015-4387-9f15-7b6f3a211de9 :: true |
createSubnodes | 1.023s |
2020-05-27 22:49:20 |
2020-05-27 22:49:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:20 | ------------------------------------ 2020-05-27 22:49:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-35986189-38c0-4866-9c09-ff02a697c3ca", "pubsub#title": "Node 35986189-38c0-4866-9c09-ff02a697c3ca" } 2020-05-27 22:49:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-27 22:49:21 | [Mutex] waiting for: [received:nodes:d0b89e07-7237-4783-b450-dcecf905e2a5:localhost] 2020-05-27 22:49:21 | [Mutex] waiting for: [received:nodes:d0b89e07-7237-4783-b450-dcecf905e2a5:localhost] 2020-05-27 22:49:21 | [Mutex] received everything. 2020-05-27 22:49:21 | [Mutex] isItemNotified: received:node:d0b89e07-7237-4783-b450-dcecf905e2a5:localhost:node-35986189-38c0-4866-9c09-ff02a697c3ca:Node 35986189-38c0-4866-9c09-ff02a697c3ca :: true |
deleteNodes | 1.025s |
2020-05-27 22:49:25 |
2020-05-27 22:49:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:25 | ------------------------------------ 2020-05-27 22:49:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-35986189-38c0-4866-9c09-ff02a697c3ca" } 2020-05-27 22:49:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-27 22:49:26 | [Mutex] waiting for: [received:nodes:8d3d9446-147d-4cd5-ab9a-6aa40bfdf084:localhost] 2020-05-27 22:49:26 | [Mutex] received everything. 2020-05-27 22:49:26 | [Mutex] isItemNotified: received:node:8d3d9446-147d-4cd5-ab9a-6aa40bfdf084:localhost:node-35986189-38c0-4866-9c09-ff02a697c3ca:Node 35986189-38c0-4866-9c09-ff02a697c3ca :: false |
deleteSubnodes | 1.021s |
2020-05-27 22:49:24 |
2020-05-27 22:49:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:24 | ------------------------------------ 2020-05-27 22:49:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9" } 2020-05-27 22:49:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-27 22:49:25 | [Mutex] waiting for: [received:nodes:7e6b23a9-f2a3-4f4d-80a0-fd3d94e082f9:localhost] 2020-05-27 22:49:25 | [Mutex] waiting for: [received:nodes:7e6b23a9-f2a3-4f4d-80a0-fd3d94e082f9:localhost] 2020-05-27 22:49:25 | [Mutex] received everything. 2020-05-27 22:49:25 | [Mutex] isItemNotified: received:node:7e6b23a9-f2a3-4f4d-80a0-fd3d94e082f9:localhost:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:Node 6da58ee3-a015-4387-9f15-7b6f3a211de9 :: false 2020-05-27 22:49:25 | [Mutex] waiting for: [received:nodes:903b1c18-9e55-4302-a715-a09a72a28ec5:localhost] 2020-05-27 22:49:25 | [Mutex] received everything. 2020-05-27 22:49:25 | [Mutex] isItemNotified: received:node:903b1c18-9e55-4302-a715-a09a72a28ec5:localhost:node-6da58ee3-a015-4387-9f15-7b6f3a211de9:Node 6da58ee3-a015-4387-9f15-7b6f3a211de9 :: false |
publishItemsToNodes | 0.030s |
2020-05-27 22:49:23 |
2020-05-27 22:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:23 | ------------------------------------ 2020-05-27 22:49:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "entry": "<test>item-9d5fd996-fdc9-45a2-a141-ae199b651c91</test>", "item-id": "item-9d5fd996-fdc9-45a2-a141-ae199b651c91" } 2020-05-27 22:49:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9d5fd996-fdc9-45a2-a141-ae199b651c91" } 2020-05-27 22:49:23 | [Mutex] waiting for: [published:item:notifieditem-9d5fd996-fdc9-45a2-a141-ae199b651c91:admin@localhost] 2020-05-27 22:49:23 | [Mutex] received everything. 2020-05-27 22:49:23 | [Mutex] isItemNotified: published:item:notifieditem-9d5fd996-fdc9-45a2-a141-ae199b651c91:admin@localhost :: true |
retractItemsFromNodes | 0.060s |
2020-05-27 22:49:23 |
2020-05-27 22:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:23 | ------------------------------------ 2020-05-27 22:49:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "item-id": "item-9d5fd996-fdc9-45a2-a141-ae199b651c91" } 2020-05-27 22:49:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9d5fd996-fdc9-45a2-a141-ae199b651c91" } 2020-05-27 22:49:23 | [Mutex] received everything. 2020-05-27 22:49:23 | [Mutex] isItemNotified: retracted:item:notifieditem-9d5fd996-fdc9-45a2-a141-ae199b651c91:admin@localhost :: true |
retrieveItemsFromNodes | 0.070s |
2020-05-27 22:49:23 |
2020-05-27 22:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:23 | ------------------------------------ 2020-05-27 22:49:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "item-id": "item-9d5fd996-fdc9-45a2-a141-ae199b651c91" } 2020-05-27 22:49:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "item-id": "item-9d5fd996-fdc9-45a2-a141-ae199b651c91", "item": [ "<item id=\"item-9d5fd996-fdc9-45a2-a141-ae199b651c91\"><test>item-9d5fd996-fdc9-45a2-a141-ae199b651c91</test></item>" ] } 2020-05-27 22:49:23 | [Mutex] notify: [retrieved:item:item-9d5fd996-fdc9-45a2-a141-ae199b651c91:payload-matches:true:localhost] 2020-05-27 22:49:23 | [Mutex] received everything. 2020-05-27 22:49:23 | [Mutex] isItemNotified: retrieved:item:item-9d5fd996-fdc9-45a2-a141-ae199b651c91:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2020-05-27 22:49:23 |
2020-05-27 22:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:23 | ------------------------------------ 2020-05-27 22:49:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-05-27 22:49:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "node-35986189-38c0-4866-9c09-ff02a697c3ca" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-05-27 22:49:23 |
2020-05-27 22:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:23 | ------------------------------------ 2020-05-27 22:49:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-6da58ee3-a015-4387-9f15-7b6f3a211de9)" } 2020-05-27 22:49:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2020-05-27 22:49:22 |
2020-05-27 22:49:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:22 | ------------------------------------ 2020-05-27 22:49:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "jids": [ "admin@localhost" ] } 2020-05-27 22:49:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-05-27 22:49:23 |
2020-05-27 22:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-27 22:49:23 | ------------------------------------ 2020-05-27 22:49:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6da58ee3-a015-4387-9f15-7b6f3a211de9", "jids": [ "admin@localhost" ] } 2020-05-27 22:49:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |