Test duration : 8.951s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2020-09-16 22:45:38 |
2020-09-16 22:45:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:38 | ------------------------------------ 2020-09-16 22:45:38 | [Mutex] waiting for: [configured:node:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:node-dc1da2d6-df87-4193-934b-c69e08ef2e7d] 2020-09-16 22:45:39 | [Mutex] received everything. 2020-09-16 22:45:39 | [Mutex] isItemNotified: configured:node:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:node-dc1da2d6-df87-4193-934b-c69e08ef2e7d :: true 2020-09-16 22:45:40 | [Mutex] waiting for: [received:nodes:337bb5dd-02d3-4b8b-97a0-0f3232a84b07:localhost] 2020-09-16 22:45:40 | [Mutex] received everything. 2020-09-16 22:45:40 | [Mutex] isItemNotified: received:node:337bb5dd-02d3-4b8b-97a0-0f3232a84b07:localhost:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:Node 5fa641ae-161a-47bc-bd16-4f3fb540df86 :: true 2020-09-16 22:45:40 | [Mutex] waiting for: [received:nodes:e9ad791b-7913-41db-94b9-53973fc341a7:localhost] 2020-09-16 22:45:40 | [Mutex] received everything. 2020-09-16 22:45:40 | [Mutex] isItemNotified: received:node:e9ad791b-7913-41db-94b9-53973fc341a7:localhost:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:Node 5fa641ae-161a-47bc-bd16-4f3fb540df86 :: false |
createNodes | 1.648s |
2020-09-16 22:45:36 |
2020-09-16 22:45:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:36 | ------------------------------------ 2020-09-16 22:45:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "pubsub#title": "Node 5fa641ae-161a-47bc-bd16-4f3fb540df86" } 2020-09-16 22:45:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:45:37 | [Mutex] waiting for: [received:nodes:74ec4ba8-7cd1-427f-b36d-c0b1e03193d7:localhost] 2020-09-16 22:45:37 | [Mutex] received everything. 2020-09-16 22:45:37 | [Mutex] isItemNotified: received:node:74ec4ba8-7cd1-427f-b36d-c0b1e03193d7:localhost:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:Node 5fa641ae-161a-47bc-bd16-4f3fb540df86 :: true |
createSubnodes | 1.049s |
2020-09-16 22:45:37 |
2020-09-16 22:45:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:37 | ------------------------------------ 2020-09-16 22:45:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-dc1da2d6-df87-4193-934b-c69e08ef2e7d", "pubsub#title": "Node dc1da2d6-df87-4193-934b-c69e08ef2e7d" } 2020-09-16 22:45:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:45:38 | [Mutex] waiting for: [received:nodes:2942d335-7914-4614-a4b4-dc7c1c47de78:localhost] 2020-09-16 22:45:38 | [Mutex] received everything. 2020-09-16 22:45:38 | [Mutex] isItemNotified: received:node:2942d335-7914-4614-a4b4-dc7c1c47de78:localhost:node-dc1da2d6-df87-4193-934b-c69e08ef2e7d:Node dc1da2d6-df87-4193-934b-c69e08ef2e7d :: true |
deleteNodes | 1.019s |
2020-09-16 22:45:43 |
2020-09-16 22:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:43 | ------------------------------------ 2020-09-16 22:45:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dc1da2d6-df87-4193-934b-c69e08ef2e7d" } 2020-09-16 22:45:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:45:44 | [Mutex] waiting for: [received:nodes:23fe7117-c222-493d-bfbe-a4588c502575:localhost] 2020-09-16 22:45:44 | [Mutex] received everything. 2020-09-16 22:45:44 | [Mutex] isItemNotified: received:node:23fe7117-c222-493d-bfbe-a4588c502575:localhost:node-dc1da2d6-df87-4193-934b-c69e08ef2e7d:Node dc1da2d6-df87-4193-934b-c69e08ef2e7d :: false |
deleteSubnodes | 1.030s |
2020-09-16 22:45:42 |
2020-09-16 22:45:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:42 | ------------------------------------ 2020-09-16 22:45:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86" } 2020-09-16 22:45:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:45:43 | [Mutex] waiting for: [received:nodes:df8ed6a3-6ef5-4f98-8ece-5b16c2c527a4:localhost] 2020-09-16 22:45:43 | [Mutex] waiting for: [received:nodes:df8ed6a3-6ef5-4f98-8ece-5b16c2c527a4:localhost] 2020-09-16 22:45:43 | [Mutex] waiting for: [received:nodes:df8ed6a3-6ef5-4f98-8ece-5b16c2c527a4:localhost] 2020-09-16 22:45:43 | [Mutex] received everything. 2020-09-16 22:45:43 | [Mutex] isItemNotified: received:node:df8ed6a3-6ef5-4f98-8ece-5b16c2c527a4:localhost:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:Node 5fa641ae-161a-47bc-bd16-4f3fb540df86 :: false 2020-09-16 22:45:43 | [Mutex] waiting for: [received:nodes:e584139c-f706-4efb-90ba-fc6e778231c4:localhost] 2020-09-16 22:45:43 | [Mutex] received everything. 2020-09-16 22:45:43 | [Mutex] isItemNotified: received:node:e584139c-f706-4efb-90ba-fc6e778231c4:localhost:node-5fa641ae-161a-47bc-bd16-4f3fb540df86:Node 5fa641ae-161a-47bc-bd16-4f3fb540df86 :: false |
publishItemsToNodes | 0.045s |
2020-09-16 22:45:41 |
2020-09-16 22:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:41 | ------------------------------------ 2020-09-16 22:45:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "entry": "<test>item-2bf42c8f-37ab-4fdd-955e-6b25f9531356</test>", "item-id": "item-2bf42c8f-37ab-4fdd-955e-6b25f9531356" } 2020-09-16 22:45:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2bf42c8f-37ab-4fdd-955e-6b25f9531356" } 2020-09-16 22:45:41 | [Mutex] received everything. 2020-09-16 22:45:41 | [Mutex] isItemNotified: published:item:notifieditem-2bf42c8f-37ab-4fdd-955e-6b25f9531356:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2020-09-16 22:45:41 |
2020-09-16 22:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:41 | ------------------------------------ 2020-09-16 22:45:41 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "item-id": "item-2bf42c8f-37ab-4fdd-955e-6b25f9531356" } 2020-09-16 22:45:41 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2bf42c8f-37ab-4fdd-955e-6b25f9531356" } 2020-09-16 22:45:41 | [Mutex] received everything. 2020-09-16 22:45:41 | [Mutex] isItemNotified: retracted:item:notifieditem-2bf42c8f-37ab-4fdd-955e-6b25f9531356:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2020-09-16 22:45:41 |
2020-09-16 22:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:41 | ------------------------------------ 2020-09-16 22:45:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "item-id": "item-2bf42c8f-37ab-4fdd-955e-6b25f9531356" } 2020-09-16 22:45:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "item-id": "item-2bf42c8f-37ab-4fdd-955e-6b25f9531356", "item": [ "<item id=\"item-2bf42c8f-37ab-4fdd-955e-6b25f9531356\"><test>item-2bf42c8f-37ab-4fdd-955e-6b25f9531356</test></item>" ] } 2020-09-16 22:45:41 | [Mutex] notify: [retrieved:item:item-2bf42c8f-37ab-4fdd-955e-6b25f9531356:payload-matches:true:localhost] 2020-09-16 22:45:41 | [Mutex] received everything. 2020-09-16 22:45:41 | [Mutex] isItemNotified: retrieved:item:item-2bf42c8f-37ab-4fdd-955e-6b25f9531356:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2020-09-16 22:45:41 |
2020-09-16 22:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:41 | ------------------------------------ 2020-09-16 22:45:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-16 22:45:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-dc1da2d6-df87-4193-934b-c69e08ef2e7d", "node-5fa641ae-161a-47bc-bd16-4f3fb540df86" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-16 22:45:41 |
2020-09-16 22:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:41 | ------------------------------------ 2020-09-16 22:45:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5fa641ae-161a-47bc-bd16-4f3fb540df86)" } 2020-09-16 22:45:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-09-16 22:45:40 |
2020-09-16 22:45:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:40 | ------------------------------------ 2020-09-16 22:45:40 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "jids": [ "admin@test-domain.com" ] } 2020-09-16 22:45:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2020-09-16 22:45:41 |
2020-09-16 22:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:45:41 | ------------------------------------ 2020-09-16 22:45:41 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5fa641ae-161a-47bc-bd16-4f3fb540df86", "jids": [ "admin@test-domain.com" ] } 2020-09-16 22:45:41 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |