Test duration : 9.077s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2021-02-18 22:00:11 |
2021-02-18 22:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:11 | ------------------------------------ 2021-02-18 22:00:11 | [Mutex] waiting for: [configured:node:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:node-daef12fb-a05d-4b3a-972b-53cd6cdde2df] 2021-02-18 22:00:11 | [Mutex] received everything. 2021-02-18 22:00:11 | [Mutex] isItemNotified: configured:node:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:node-daef12fb-a05d-4b3a-972b-53cd6cdde2df :: true 2021-02-18 22:00:12 | [Mutex] waiting for: [received:nodes:b3b2d360-a9b2-4618-b2b9-9165c5070923:localhost] 2021-02-18 22:00:12 | [Mutex] received everything. 2021-02-18 22:00:12 | [Mutex] isItemNotified: received:node:b3b2d360-a9b2-4618-b2b9-9165c5070923:localhost:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:Node a30e60f6-88b8-41aa-a2f3-4f89a2e89688 :: true 2021-02-18 22:00:12 | [Mutex] waiting for: [received:nodes:b1ee0d7e-8781-4bf6-9f21-fbd31ef52499:localhost] 2021-02-18 22:00:12 | [Mutex] waiting for: [received:nodes:b1ee0d7e-8781-4bf6-9f21-fbd31ef52499:localhost] 2021-02-18 22:00:12 | [Mutex] received everything. 2021-02-18 22:00:12 | [Mutex] isItemNotified: received:node:b1ee0d7e-8781-4bf6-9f21-fbd31ef52499:localhost:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:Node a30e60f6-88b8-41aa-a2f3-4f89a2e89688 :: false |
createNodes | 1.640s |
2021-02-18 22:00:08 |
2021-02-18 22:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:08 | ------------------------------------ 2021-02-18 22:00:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "pubsub#title": "Node a30e60f6-88b8-41aa-a2f3-4f89a2e89688" } 2021-02-18 22:00:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:00:10 | [Mutex] waiting for: [received:nodes:6251d227-df46-48dd-b05e-09609037698d:localhost] 2021-02-18 22:00:10 | [Mutex] received everything. 2021-02-18 22:00:10 | [Mutex] isItemNotified: received:node:6251d227-df46-48dd-b05e-09609037698d:localhost:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:Node a30e60f6-88b8-41aa-a2f3-4f89a2e89688 :: true |
createSubnodes | 1.025s |
2021-02-18 22:00:10 |
2021-02-18 22:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:10 | ------------------------------------ 2021-02-18 22:00:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-daef12fb-a05d-4b3a-972b-53cd6cdde2df", "pubsub#title": "Node daef12fb-a05d-4b3a-972b-53cd6cdde2df" } 2021-02-18 22:00:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:00:11 | [Mutex] waiting for: [received:nodes:7a35a19f-411d-4ef6-ad85-5b3e598388e4:localhost] 2021-02-18 22:00:11 | [Mutex] received everything. 2021-02-18 22:00:11 | [Mutex] isItemNotified: received:node:7a35a19f-411d-4ef6-ad85-5b3e598388e4:localhost:node-daef12fb-a05d-4b3a-972b-53cd6cdde2df:Node daef12fb-a05d-4b3a-972b-53cd6cdde2df :: true |
deleteNodes | 1.023s |
2021-02-18 22:00:15 |
2021-02-18 22:00:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:15 | ------------------------------------ 2021-02-18 22:00:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-daef12fb-a05d-4b3a-972b-53cd6cdde2df" } 2021-02-18 22:00:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:00:16 | [Mutex] waiting for: [received:nodes:a4984636-0910-464e-8a49-60e6ff7198ce:localhost] 2021-02-18 22:00:16 | [Mutex] waiting for: [received:nodes:a4984636-0910-464e-8a49-60e6ff7198ce:localhost] 2021-02-18 22:00:16 | [Mutex] received everything. 2021-02-18 22:00:16 | [Mutex] isItemNotified: received:node:a4984636-0910-464e-8a49-60e6ff7198ce:localhost:node-daef12fb-a05d-4b3a-972b-53cd6cdde2df:Node daef12fb-a05d-4b3a-972b-53cd6cdde2df :: false |
deleteSubnodes | 1.027s |
2021-02-18 22:00:14 |
2021-02-18 22:00:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:14 | ------------------------------------ 2021-02-18 22:00:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688" } 2021-02-18 22:00:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:00:15 | [Mutex] waiting for: [received:nodes:1986acb7-50c5-431b-8062-2828920c9a77:localhost] 2021-02-18 22:00:15 | [Mutex] waiting for: [received:nodes:1986acb7-50c5-431b-8062-2828920c9a77:localhost] 2021-02-18 22:00:15 | [Mutex] received everything. 2021-02-18 22:00:15 | [Mutex] isItemNotified: received:node:1986acb7-50c5-431b-8062-2828920c9a77:localhost:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:Node a30e60f6-88b8-41aa-a2f3-4f89a2e89688 :: false 2021-02-18 22:00:15 | [Mutex] waiting for: [received:nodes:eeb221bf-6bd8-48ee-a6e2-2635fb3a0b0b:localhost] 2021-02-18 22:00:15 | [Mutex] received everything. 2021-02-18 22:00:15 | [Mutex] isItemNotified: received:node:eeb221bf-6bd8-48ee-a6e2-2635fb3a0b0b:localhost:node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688:Node a30e60f6-88b8-41aa-a2f3-4f89a2e89688 :: false |
publishItemsToNodes | 0.047s |
2021-02-18 22:00:13 |
2021-02-18 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:13 | ------------------------------------ 2021-02-18 22:00:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "entry": "<test>item-3d150a3b-6999-45cd-9a26-b9a738197e28</test>", "item-id": "item-3d150a3b-6999-45cd-9a26-b9a738197e28" } 2021-02-18 22:00:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3d150a3b-6999-45cd-9a26-b9a738197e28" } 2021-02-18 22:00:13 | [Mutex] waiting for: [published:item:notifieditem-3d150a3b-6999-45cd-9a26-b9a738197e28:admin@test-domain.com] 2021-02-18 22:00:13 | [Mutex] received everything. 2021-02-18 22:00:13 | [Mutex] isItemNotified: published:item:notifieditem-3d150a3b-6999-45cd-9a26-b9a738197e28:admin@test-domain.com :: true |
retractItemsFromNodes | 0.084s |
2021-02-18 22:00:13 |
2021-02-18 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:13 | ------------------------------------ 2021-02-18 22:00:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "item-id": "item-3d150a3b-6999-45cd-9a26-b9a738197e28" } 2021-02-18 22:00:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3d150a3b-6999-45cd-9a26-b9a738197e28" } 2021-02-18 22:00:13 | [Mutex] received everything. 2021-02-18 22:00:13 | [Mutex] isItemNotified: retracted:item:notifieditem-3d150a3b-6999-45cd-9a26-b9a738197e28:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.122s |
2021-02-18 22:00:13 |
2021-02-18 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:13 | ------------------------------------ 2021-02-18 22:00:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "item-id": "item-3d150a3b-6999-45cd-9a26-b9a738197e28" } 2021-02-18 22:00:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "item-id": "item-3d150a3b-6999-45cd-9a26-b9a738197e28", "item": [ "<item id=\"item-3d150a3b-6999-45cd-9a26-b9a738197e28\"><test>item-3d150a3b-6999-45cd-9a26-b9a738197e28</test></item>" ] } 2021-02-18 22:00:13 | [Mutex] notify: [retrieved:item:item-3d150a3b-6999-45cd-9a26-b9a738197e28:payload-matches:true:localhost] 2021-02-18 22:00:13 | [Mutex] received everything. 2021-02-18 22:00:13 | [Mutex] isItemNotified: retrieved:item:item-3d150a3b-6999-45cd-9a26-b9a738197e28:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2021-02-18 22:00:13 |
2021-02-18 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:13 | ------------------------------------ 2021-02-18 22:00:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-18 22:00:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "node-daef12fb-a05d-4b3a-972b-53cd6cdde2df" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-02-18 22:00:13 |
2021-02-18 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:13 | ------------------------------------ 2021-02-18 22:00:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688)" } 2021-02-18 22:00:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2021-02-18 22:00:12 |
2021-02-18 22:00:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:12 | ------------------------------------ 2021-02-18 22:00:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "jids": [ "admin@test-domain.com" ] } 2021-02-18 22:00:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2021-02-18 22:00:13 |
2021-02-18 22:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:00:13 | ------------------------------------ 2021-02-18 22:00:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a30e60f6-88b8-41aa-a2f3-4f89a2e89688", "jids": [ "admin@test-domain.com" ] } 2021-02-18 22:00:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |