Test duration : 9.354s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2021-03-18 23:09:13 |
2021-03-18 23:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:13 | ------------------------------------ 2021-03-18 23:09:13 | [Mutex] waiting for: [configured:node:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4] 2021-03-18 23:09:13 | [Mutex] received everything. 2021-03-18 23:09:13 | [Mutex] isItemNotified: configured:node:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4 :: true 2021-03-18 23:09:14 | [Mutex] waiting for: [received:nodes:c711e2d2-675d-45c8-b7f7-67943d7b6691:localhost] 2021-03-18 23:09:14 | [Mutex] received everything. 2021-03-18 23:09:14 | [Mutex] isItemNotified: received:node:c711e2d2-675d-45c8-b7f7-67943d7b6691:localhost:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:Node b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0 :: true 2021-03-18 23:09:14 | [Mutex] waiting for: [received:nodes:37a8def9-924a-40be-aecf-356df0bc5d37:localhost] 2021-03-18 23:09:14 | [Mutex] received everything. 2021-03-18 23:09:14 | [Mutex] isItemNotified: received:node:37a8def9-924a-40be-aecf-356df0bc5d37:localhost:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:Node b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0 :: false |
createNodes | 1.792s |
2021-03-18 23:09:10 |
2021-03-18 23:09:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:10 | ------------------------------------ 2021-03-18 23:09:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "pubsub#title": "Node b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0" } 2021-03-18 23:09:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:09:12 | [Mutex] waiting for: [received:nodes:e38fdad7-231b-4834-84f0-2c8063f496da:localhost] 2021-03-18 23:09:12 | [Mutex] received everything. 2021-03-18 23:09:12 | [Mutex] isItemNotified: received:node:e38fdad7-231b-4834-84f0-2c8063f496da:localhost:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:Node b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0 :: true |
createSubnodes | 1.031s |
2021-03-18 23:09:12 |
2021-03-18 23:09:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:12 | ------------------------------------ 2021-03-18 23:09:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4", "pubsub#title": "Node e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4" } 2021-03-18 23:09:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:09:13 | [Mutex] waiting for: [received:nodes:5c0dd2c7-314b-4d83-bb79-1281c619569c:localhost] 2021-03-18 23:09:13 | [Mutex] received everything. 2021-03-18 23:09:13 | [Mutex] isItemNotified: received:node:5c0dd2c7-314b-4d83-bb79-1281c619569c:localhost:node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4:Node e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4 :: true |
deleteNodes | 1.028s |
2021-03-18 23:09:18 |
2021-03-18 23:09:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:18 | ------------------------------------ 2021-03-18 23:09:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4" } 2021-03-18 23:09:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:09:19 | [Mutex] waiting for: [received:nodes:431c0fa0-7a28-4415-b3cb-246e18055f88:localhost] 2021-03-18 23:09:19 | [Mutex] waiting for: [received:nodes:431c0fa0-7a28-4415-b3cb-246e18055f88:localhost] 2021-03-18 23:09:19 | [Mutex] waiting for: [received:nodes:431c0fa0-7a28-4415-b3cb-246e18055f88:localhost] 2021-03-18 23:09:19 | [Mutex] received everything. 2021-03-18 23:09:19 | [Mutex] isItemNotified: received:node:431c0fa0-7a28-4415-b3cb-246e18055f88:localhost:node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4:Node e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4 :: false |
deleteSubnodes | 1.034s |
2021-03-18 23:09:17 |
2021-03-18 23:09:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:17 | ------------------------------------ 2021-03-18 23:09:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0" } 2021-03-18 23:09:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:09:18 | [Mutex] waiting for: [received:nodes:921e6602-a8c5-4df1-9358-62715d79ecd4:localhost] 2021-03-18 23:09:18 | [Mutex] received everything. 2021-03-18 23:09:18 | [Mutex] isItemNotified: received:node:921e6602-a8c5-4df1-9358-62715d79ecd4:localhost:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:Node b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0 :: false 2021-03-18 23:09:18 | [Mutex] waiting for: [received:nodes:c1bf4405-943e-46f1-967e-d10db09b5397:localhost] 2021-03-18 23:09:18 | [Mutex] received everything. 2021-03-18 23:09:18 | [Mutex] isItemNotified: received:node:c1bf4405-943e-46f1-967e-d10db09b5397:localhost:node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0:Node b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0 :: false |
publishItemsToNodes | 0.057s |
2021-03-18 23:09:15 |
2021-03-18 23:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:15 | ------------------------------------ 2021-03-18 23:09:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "entry": "<test>item-c1159f8a-4fc5-4ab3-9c44-2c9583423109</test>", "item-id": "item-c1159f8a-4fc5-4ab3-9c44-2c9583423109" } 2021-03-18 23:09:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c1159f8a-4fc5-4ab3-9c44-2c9583423109" } 2021-03-18 23:09:15 | [Mutex] waiting for: [published:item:notifieditem-c1159f8a-4fc5-4ab3-9c44-2c9583423109:admin@test-domain.com] 2021-03-18 23:09:15 | [Mutex] received everything. 2021-03-18 23:09:15 | [Mutex] isItemNotified: published:item:notifieditem-c1159f8a-4fc5-4ab3-9c44-2c9583423109:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2021-03-18 23:09:16 |
2021-03-18 23:09:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:16 | ------------------------------------ 2021-03-18 23:09:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "item-id": "item-c1159f8a-4fc5-4ab3-9c44-2c9583423109" } 2021-03-18 23:09:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c1159f8a-4fc5-4ab3-9c44-2c9583423109" } 2021-03-18 23:09:16 | [Mutex] received everything. 2021-03-18 23:09:16 | [Mutex] isItemNotified: retracted:item:notifieditem-c1159f8a-4fc5-4ab3-9c44-2c9583423109:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.183s |
2021-03-18 23:09:15 |
2021-03-18 23:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:15 | ------------------------------------ 2021-03-18 23:09:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "item-id": "item-c1159f8a-4fc5-4ab3-9c44-2c9583423109" } 2021-03-18 23:09:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "item-id": "item-c1159f8a-4fc5-4ab3-9c44-2c9583423109", "item": [ "<item id=\"item-c1159f8a-4fc5-4ab3-9c44-2c9583423109\"><test>item-c1159f8a-4fc5-4ab3-9c44-2c9583423109</test></item>" ] } 2021-03-18 23:09:15 | [Mutex] notify: [retrieved:item:item-c1159f8a-4fc5-4ab3-9c44-2c9583423109:payload-matches:true:localhost] 2021-03-18 23:09:15 | [Mutex] received everything. 2021-03-18 23:09:15 | [Mutex] isItemNotified: retrieved:item:item-c1159f8a-4fc5-4ab3-9c44-2c9583423109:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-18 23:09:15 |
2021-03-18 23:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:15 | ------------------------------------ 2021-03-18 23:09:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-18 23:09:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "node-e4488faa-fb3f-4f0d-89b8-6c2fcbc18fd4" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-18 23:09:15 |
2021-03-18 23:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:15 | ------------------------------------ 2021-03-18 23:09:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0)" } 2021-03-18 23:09:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-03-18 23:09:14 |
2021-03-18 23:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:14 | ------------------------------------ 2021-03-18 23:09:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "jids": [ "admin@test-domain.com" ] } 2021-03-18 23:09:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2021-03-18 23:09:16 |
2021-03-18 23:09:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:09:16 | ------------------------------------ 2021-03-18 23:09:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b7dc15ed-e0b6-48b8-9c71-2bb38eb91dc0", "jids": [ "admin@test-domain.com" ] } 2021-03-18 23:09:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |