Test duration : 9.059s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2021-09-13 22:32:35 |
2021-09-13 22:32:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:35 | ------------------------------------ 2021-09-13 22:32:35 | [Mutex] waiting for: [configured:node:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:node-526a7f2a-f9a3-4bf1-88d9-1056f3602815] 2021-09-13 22:32:35 | [Mutex] received everything. 2021-09-13 22:32:35 | [Mutex] isItemNotified: configured:node:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:node-526a7f2a-f9a3-4bf1-88d9-1056f3602815 :: true 2021-09-13 22:32:36 | [Mutex] waiting for: [received:nodes:eff48c5c-5a1b-4c15-9c05-77d8e0b0a92e:localhost] 2021-09-13 22:32:36 | [Mutex] received everything. 2021-09-13 22:32:36 | [Mutex] isItemNotified: received:node:eff48c5c-5a1b-4c15-9c05-77d8e0b0a92e:localhost:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:Node e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d :: true 2021-09-13 22:32:36 | [Mutex] waiting for: [received:nodes:7c31807e-8100-4d10-bf92-eb2dfa0d9fd7:localhost] 2021-09-13 22:32:36 | [Mutex] received everything. 2021-09-13 22:32:36 | [Mutex] isItemNotified: received:node:7c31807e-8100-4d10-bf92-eb2dfa0d9fd7:localhost:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:Node e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d :: false |
createNodes | 1.602s |
2021-09-13 22:32:32 |
2021-09-13 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:32 | ------------------------------------ 2021-09-13 22:32:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "pubsub#title": "Node e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d" } 2021-09-13 22:32:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 22:32:34 | [Mutex] waiting for: [received:nodes:3ba1214f-0f45-44aa-a518-e93406ce8173:localhost] 2021-09-13 22:32:34 | [Mutex] received everything. 2021-09-13 22:32:34 | [Mutex] isItemNotified: received:node:3ba1214f-0f45-44aa-a518-e93406ce8173:localhost:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:Node e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d :: true |
createSubnodes | 1.025s |
2021-09-13 22:32:34 |
2021-09-13 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:34 | ------------------------------------ 2021-09-13 22:32:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-526a7f2a-f9a3-4bf1-88d9-1056f3602815", "pubsub#title": "Node 526a7f2a-f9a3-4bf1-88d9-1056f3602815" } 2021-09-13 22:32:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 22:32:35 | [Mutex] waiting for: [received:nodes:f6aac417-5aa5-42cc-97f9-77e78b88e6ef:localhost] 2021-09-13 22:32:35 | [Mutex] received everything. 2021-09-13 22:32:35 | [Mutex] isItemNotified: received:node:f6aac417-5aa5-42cc-97f9-77e78b88e6ef:localhost:node-526a7f2a-f9a3-4bf1-88d9-1056f3602815:Node 526a7f2a-f9a3-4bf1-88d9-1056f3602815 :: true |
deleteNodes | 1.021s |
2021-09-13 22:32:39 |
2021-09-13 22:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:39 | ------------------------------------ 2021-09-13 22:32:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-526a7f2a-f9a3-4bf1-88d9-1056f3602815" } 2021-09-13 22:32:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 22:32:40 | [Mutex] waiting for: [received:nodes:363bdd83-cf2b-42a9-8c86-70c6c89530ea:localhost] 2021-09-13 22:32:41 | [Mutex] received everything. 2021-09-13 22:32:41 | [Mutex] isItemNotified: received:node:363bdd83-cf2b-42a9-8c86-70c6c89530ea:localhost:node-526a7f2a-f9a3-4bf1-88d9-1056f3602815:Node 526a7f2a-f9a3-4bf1-88d9-1056f3602815 :: false |
deleteSubnodes | 1.039s |
2021-09-13 22:32:38 |
2021-09-13 22:32:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:38 | ------------------------------------ 2021-09-13 22:32:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d" } 2021-09-13 22:32:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 22:32:39 | [Mutex] waiting for: [received:nodes:f6b126a8-bfbf-45d5-970e-0695f3fbba0e:localhost] 2021-09-13 22:32:39 | [Mutex] received everything. 2021-09-13 22:32:39 | [Mutex] isItemNotified: received:node:f6b126a8-bfbf-45d5-970e-0695f3fbba0e:localhost:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:Node e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d :: false 2021-09-13 22:32:39 | [Mutex] waiting for: [received:nodes:9a566ab3-f9d4-4cd0-a0d9-350dd00c2c89:localhost] 2021-09-13 22:32:39 | [Mutex] received everything. 2021-09-13 22:32:39 | [Mutex] isItemNotified: received:node:9a566ab3-f9d4-4cd0-a0d9-350dd00c2c89:localhost:node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d:Node e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d :: false |
publishItemsToNodes | 0.055s |
2021-09-13 22:32:37 |
2021-09-13 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:37 | ------------------------------------ 2021-09-13 22:32:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "entry": "<test>item-b87e0b13-5bcb-4321-8d72-d075856ee6a9</test>", "item-id": "item-b87e0b13-5bcb-4321-8d72-d075856ee6a9" } 2021-09-13 22:32:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b87e0b13-5bcb-4321-8d72-d075856ee6a9" } 2021-09-13 22:32:37 | [Mutex] waiting for: [published:item:notifieditem-b87e0b13-5bcb-4321-8d72-d075856ee6a9:admin@test-domain.com] 2021-09-13 22:32:37 | [Mutex] received everything. 2021-09-13 22:32:37 | [Mutex] isItemNotified: published:item:notifieditem-b87e0b13-5bcb-4321-8d72-d075856ee6a9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-09-13 22:32:37 |
2021-09-13 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:37 | ------------------------------------ 2021-09-13 22:32:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "item-id": "item-b87e0b13-5bcb-4321-8d72-d075856ee6a9" } 2021-09-13 22:32:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b87e0b13-5bcb-4321-8d72-d075856ee6a9" } 2021-09-13 22:32:37 | [Mutex] received everything. 2021-09-13 22:32:37 | [Mutex] isItemNotified: retracted:item:notifieditem-b87e0b13-5bcb-4321-8d72-d075856ee6a9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.096s |
2021-09-13 22:32:37 |
2021-09-13 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:37 | ------------------------------------ 2021-09-13 22:32:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "item-id": "item-b87e0b13-5bcb-4321-8d72-d075856ee6a9" } 2021-09-13 22:32:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "item-id": "item-b87e0b13-5bcb-4321-8d72-d075856ee6a9", "item": [ "<item id=\"item-b87e0b13-5bcb-4321-8d72-d075856ee6a9\"><test>item-b87e0b13-5bcb-4321-8d72-d075856ee6a9</test></item>" ] } 2021-09-13 22:32:37 | [Mutex] notify: [retrieved:item:item-b87e0b13-5bcb-4321-8d72-d075856ee6a9:payload-matches:true:localhost] 2021-09-13 22:32:37 | [Mutex] received everything. 2021-09-13 22:32:37 | [Mutex] isItemNotified: retrieved:item:item-b87e0b13-5bcb-4321-8d72-d075856ee6a9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-09-13 22:32:37 |
2021-09-13 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:37 | ------------------------------------ 2021-09-13 22:32:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-13 22:32:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "test", "node-526a7f2a-f9a3-4bf1-88d9-1056f3602815" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-13 22:32:37 |
2021-09-13 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:37 | ------------------------------------ 2021-09-13 22:32:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d)" } 2021-09-13 22:32:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-09-13 22:32:36 |
2021-09-13 22:32:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:36 | ------------------------------------ 2021-09-13 22:32:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "jids": [ "admin@test-domain.com" ] } 2021-09-13 22:32:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.195s |
2021-09-13 22:32:37 |
2021-09-13 22:32:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 22:32:37 | ------------------------------------ 2021-09-13 22:32:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e77e60ec-0a20-4ff8-8a1c-ee15c6958a8d", "jids": [ "admin@test-domain.com" ] } 2021-09-13 22:32:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |