Test duration : 8.721s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.130s |
2022-09-26 22:35:04 |
2022-09-26 22:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:04 | ------------------------------------ 2022-09-26 22:35:04 | [Mutex] waiting for: [configured:node:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:node-354ec055-a51a-4e71-b1c2-78e86c63493c] 2022-09-26 22:35:04 | [Mutex] received everything. 2022-09-26 22:35:04 | [Mutex] isItemNotified: configured:node:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:node-354ec055-a51a-4e71-b1c2-78e86c63493c :: true 2022-09-26 22:35:05 | [Mutex] waiting for: [received:nodes:cccd152b-1cb2-4b15-ad1c-4a9be99cb1a0:localhost] 2022-09-26 22:35:05 | [Mutex] received everything. 2022-09-26 22:35:05 | [Mutex] isItemNotified: received:node:cccd152b-1cb2-4b15-ad1c-4a9be99cb1a0:localhost:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:Node 13a68884-adb0-4fd8-a5eb-c152b4cf6ca2 :: true 2022-09-26 22:35:05 | [Mutex] waiting for: [received:nodes:69c7303c-47d0-4364-97a8-a56013becee1:localhost] 2022-09-26 22:35:05 | [Mutex] received everything. 2022-09-26 22:35:05 | [Mutex] isItemNotified: received:node:69c7303c-47d0-4364-97a8-a56013becee1:localhost:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:Node 13a68884-adb0-4fd8-a5eb-c152b4cf6ca2 :: false |
createNodes | 1.690s |
2022-09-26 22:35:02 |
2022-09-26 22:35:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:02 | ------------------------------------ 2022-09-26 22:35:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "pubsub#title": "Node 13a68884-adb0-4fd8-a5eb-c152b4cf6ca2" } 2022-09-26 22:35:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:03 | [Mutex] waiting for: [received:nodes:7dd9a671-c103-436c-a2c5-4e8ff55105f7:localhost] 2022-09-26 22:35:03 | [Mutex] received everything. 2022-09-26 22:35:03 | [Mutex] isItemNotified: received:node:7dd9a671-c103-436c-a2c5-4e8ff55105f7:localhost:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:Node 13a68884-adb0-4fd8-a5eb-c152b4cf6ca2 :: true |
createSubnodes | 1.024s |
2022-09-26 22:35:03 |
2022-09-26 22:35:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:03 | ------------------------------------ 2022-09-26 22:35:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-354ec055-a51a-4e71-b1c2-78e86c63493c", "pubsub#title": "Node 354ec055-a51a-4e71-b1c2-78e86c63493c" } 2022-09-26 22:35:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:04 | [Mutex] waiting for: [received:nodes:bd300ae9-f9cf-4fb5-9926-9b89d51a187e:localhost] 2022-09-26 22:35:04 | [Mutex] received everything. 2022-09-26 22:35:04 | [Mutex] isItemNotified: received:node:bd300ae9-f9cf-4fb5-9926-9b89d51a187e:localhost:node-354ec055-a51a-4e71-b1c2-78e86c63493c:Node 354ec055-a51a-4e71-b1c2-78e86c63493c :: true |
deleteNodes | 1.021s |
2022-09-26 22:35:09 |
2022-09-26 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:09 | ------------------------------------ 2022-09-26 22:35:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-354ec055-a51a-4e71-b1c2-78e86c63493c" } 2022-09-26 22:35:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:10 | [Mutex] waiting for: [received:nodes:6f6d8f02-056b-48c1-86e3-109cdc40a8ea:localhost] 2022-09-26 22:35:10 | [Mutex] waiting for: [received:nodes:6f6d8f02-056b-48c1-86e3-109cdc40a8ea:localhost] 2022-09-26 22:35:10 | [Mutex] received everything. 2022-09-26 22:35:10 | [Mutex] isItemNotified: received:node:6f6d8f02-056b-48c1-86e3-109cdc40a8ea:localhost:node-354ec055-a51a-4e71-b1c2-78e86c63493c:Node 354ec055-a51a-4e71-b1c2-78e86c63493c :: false |
deleteSubnodes | 1.025s |
2022-09-26 22:35:08 |
2022-09-26 22:35:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:08 | ------------------------------------ 2022-09-26 22:35:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2" } 2022-09-26 22:35:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:09 | [Mutex] waiting for: [received:nodes:4edd0fb7-5459-42ef-9378-1b4c9fde4b64:localhost] 2022-09-26 22:35:09 | [Mutex] received everything. 2022-09-26 22:35:09 | [Mutex] isItemNotified: received:node:4edd0fb7-5459-42ef-9378-1b4c9fde4b64:localhost:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:Node 13a68884-adb0-4fd8-a5eb-c152b4cf6ca2 :: false 2022-09-26 22:35:09 | [Mutex] waiting for: [received:nodes:2edceaaa-d74a-4e97-8a98-29fb0edc9a6d:localhost] 2022-09-26 22:35:09 | [Mutex] received everything. 2022-09-26 22:35:09 | [Mutex] isItemNotified: received:node:2edceaaa-d74a-4e97-8a98-29fb0edc9a6d:localhost:node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2:Node 13a68884-adb0-4fd8-a5eb-c152b4cf6ca2 :: false |
publishItemsToNodes | 0.058s |
2022-09-26 22:35:06 |
2022-09-26 22:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:06 | ------------------------------------ 2022-09-26 22:35:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "entry": "<test>item-5b0d3ac7-7414-4c3c-9058-880eae7de989</test>", "item-id": "item-5b0d3ac7-7414-4c3c-9058-880eae7de989" } 2022-09-26 22:35:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5b0d3ac7-7414-4c3c-9058-880eae7de989" } 2022-09-26 22:35:06 | [Mutex] waiting for: [published:item:notifieditem-5b0d3ac7-7414-4c3c-9058-880eae7de989:admin@test-domain.com] 2022-09-26 22:35:06 | [Mutex] received everything. 2022-09-26 22:35:06 | [Mutex] isItemNotified: published:item:notifieditem-5b0d3ac7-7414-4c3c-9058-880eae7de989:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-09-26 22:35:07 |
2022-09-26 22:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:07 | ------------------------------------ 2022-09-26 22:35:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "item-id": "item-5b0d3ac7-7414-4c3c-9058-880eae7de989" } 2022-09-26 22:35:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5b0d3ac7-7414-4c3c-9058-880eae7de989" } 2022-09-26 22:35:07 | [Mutex] received everything. 2022-09-26 22:35:07 | [Mutex] isItemNotified: retracted:item:notifieditem-5b0d3ac7-7414-4c3c-9058-880eae7de989:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.043s |
2022-09-26 22:35:06 |
2022-09-26 22:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:06 | ------------------------------------ 2022-09-26 22:35:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "item-id": "item-5b0d3ac7-7414-4c3c-9058-880eae7de989" } 2022-09-26 22:35:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "item-id": "item-5b0d3ac7-7414-4c3c-9058-880eae7de989", "item": [ "<item id=\"item-5b0d3ac7-7414-4c3c-9058-880eae7de989\"><test>item-5b0d3ac7-7414-4c3c-9058-880eae7de989</test></item>" ] } 2022-09-26 22:35:06 | [Mutex] notify: [retrieved:item:item-5b0d3ac7-7414-4c3c-9058-880eae7de989:payload-matches:true:localhost] 2022-09-26 22:35:06 | [Mutex] received everything. 2022-09-26 22:35:06 | [Mutex] isItemNotified: retrieved:item:item-5b0d3ac7-7414-4c3c-9058-880eae7de989:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-09-26 22:35:06 |
2022-09-26 22:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:06 | ------------------------------------ 2022-09-26 22:35:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-26 22:35:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "node-354ec055-a51a-4e71-b1c2-78e86c63493c" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-09-26 22:35:07 |
2022-09-26 22:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:07 | ------------------------------------ 2022-09-26 22:35:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2)" } 2022-09-26 22:35:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-09-26 22:35:05 |
2022-09-26 22:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:05 | ------------------------------------ 2022-09-26 22:35:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "jids": [ "admin@test-domain.com" ] } 2022-09-26 22:35:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-09-26 22:35:07 |
2022-09-26 22:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:07 | ------------------------------------ 2022-09-26 22:35:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-13a68884-adb0-4fd8-a5eb-c152b4cf6ca2", "jids": [ "admin@test-domain.com" ] } 2022-09-26 22:35:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |