Test duration : 9.107s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2021-05-12 23:00:07 |
2021-05-12 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:07 | ------------------------------------ 2021-05-12 23:00:07 | [Mutex] waiting for: [configured:node:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:node-402a30d4-d062-4768-9fe5-fe6109ca7482] 2021-05-12 23:00:08 | [Mutex] received everything. 2021-05-12 23:00:08 | [Mutex] isItemNotified: configured:node:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:node-402a30d4-d062-4768-9fe5-fe6109ca7482 :: true 2021-05-12 23:00:09 | [Mutex] waiting for: [received:nodes:c1b8b3ec-5c49-4870-bd4d-8a90fb4bfc66:localhost] 2021-05-12 23:00:09 | [Mutex] received everything. 2021-05-12 23:00:09 | [Mutex] isItemNotified: received:node:c1b8b3ec-5c49-4870-bd4d-8a90fb4bfc66:localhost:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:Node 2ef87f5e-95e1-4f49-8197-7f486f6d75fa :: true 2021-05-12 23:00:09 | [Mutex] waiting for: [received:nodes:7daf14f0-5676-4853-9fa9-26bfc01882d5:localhost] 2021-05-12 23:00:09 | [Mutex] waiting for: [received:nodes:7daf14f0-5676-4853-9fa9-26bfc01882d5:localhost] 2021-05-12 23:00:09 | [Mutex] received everything. 2021-05-12 23:00:09 | [Mutex] isItemNotified: received:node:7daf14f0-5676-4853-9fa9-26bfc01882d5:localhost:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:Node 2ef87f5e-95e1-4f49-8197-7f486f6d75fa :: false |
createNodes | 1.764s |
2021-05-12 23:00:05 |
2021-05-12 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:05 | ------------------------------------ 2021-05-12 23:00:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "pubsub#title": "Node 2ef87f5e-95e1-4f49-8197-7f486f6d75fa" } 2021-05-12 23:00:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-12 23:00:06 | [Mutex] waiting for: [received:nodes:c64d0359-837b-45ab-9385-d91660626185:localhost] 2021-05-12 23:00:06 | [Mutex] waiting for: [received:nodes:c64d0359-837b-45ab-9385-d91660626185:localhost] 2021-05-12 23:00:06 | [Mutex] received everything. 2021-05-12 23:00:06 | [Mutex] isItemNotified: received:node:c64d0359-837b-45ab-9385-d91660626185:localhost:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:Node 2ef87f5e-95e1-4f49-8197-7f486f6d75fa :: true |
createSubnodes | 1.034s |
2021-05-12 23:00:06 |
2021-05-12 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:06 | ------------------------------------ 2021-05-12 23:00:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-402a30d4-d062-4768-9fe5-fe6109ca7482", "pubsub#title": "Node 402a30d4-d062-4768-9fe5-fe6109ca7482" } 2021-05-12 23:00:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-12 23:00:07 | [Mutex] waiting for: [received:nodes:43d863d2-b555-4336-bc1b-da9db8cb4a91:localhost] 2021-05-12 23:00:07 | [Mutex] received everything. 2021-05-12 23:00:07 | [Mutex] isItemNotified: received:node:43d863d2-b555-4336-bc1b-da9db8cb4a91:localhost:node-402a30d4-d062-4768-9fe5-fe6109ca7482:Node 402a30d4-d062-4768-9fe5-fe6109ca7482 :: true |
deleteNodes | 1.022s |
2021-05-12 23:00:12 |
2021-05-12 23:00:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:12 | ------------------------------------ 2021-05-12 23:00:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-402a30d4-d062-4768-9fe5-fe6109ca7482" } 2021-05-12 23:00:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-12 23:00:13 | [Mutex] waiting for: [received:nodes:8659dd46-6607-4435-b0e2-cbedc84fe666:localhost] 2021-05-12 23:00:13 | [Mutex] waiting for: [received:nodes:8659dd46-6607-4435-b0e2-cbedc84fe666:localhost] 2021-05-12 23:00:13 | [Mutex] received everything. 2021-05-12 23:00:13 | [Mutex] isItemNotified: received:node:8659dd46-6607-4435-b0e2-cbedc84fe666:localhost:node-402a30d4-d062-4768-9fe5-fe6109ca7482:Node 402a30d4-d062-4768-9fe5-fe6109ca7482 :: false |
deleteSubnodes | 1.027s |
2021-05-12 23:00:11 |
2021-05-12 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:11 | ------------------------------------ 2021-05-12 23:00:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa" } 2021-05-12 23:00:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-12 23:00:12 | [Mutex] waiting for: [received:nodes:59da083e-f819-462a-a8dd-f4115a95b4cd:localhost] 2021-05-12 23:00:12 | [Mutex] received everything. 2021-05-12 23:00:12 | [Mutex] isItemNotified: received:node:59da083e-f819-462a-a8dd-f4115a95b4cd:localhost:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:Node 2ef87f5e-95e1-4f49-8197-7f486f6d75fa :: false 2021-05-12 23:00:12 | [Mutex] waiting for: [received:nodes:c14da27d-d571-4427-a54f-e5f156e15333:localhost] 2021-05-12 23:00:12 | [Mutex] received everything. 2021-05-12 23:00:12 | [Mutex] isItemNotified: received:node:c14da27d-d571-4427-a54f-e5f156e15333:localhost:node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa:Node 2ef87f5e-95e1-4f49-8197-7f486f6d75fa :: false |
publishItemsToNodes | 0.109s |
2021-05-12 23:00:10 |
2021-05-12 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:10 | ------------------------------------ 2021-05-12 23:00:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "entry": "<test>item-e68c3d32-de9f-4d0c-8995-736c639f0a05</test>", "item-id": "item-e68c3d32-de9f-4d0c-8995-736c639f0a05" } 2021-05-12 23:00:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e68c3d32-de9f-4d0c-8995-736c639f0a05" } 2021-05-12 23:00:10 | [Mutex] waiting for: [published:item:notifieditem-e68c3d32-de9f-4d0c-8995-736c639f0a05:admin@test-domain.com] 2021-05-12 23:00:10 | [Mutex] received everything. 2021-05-12 23:00:10 | [Mutex] isItemNotified: published:item:notifieditem-e68c3d32-de9f-4d0c-8995-736c639f0a05:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2021-05-12 23:00:10 |
2021-05-12 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:10 | ------------------------------------ 2021-05-12 23:00:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "item-id": "item-e68c3d32-de9f-4d0c-8995-736c639f0a05" } 2021-05-12 23:00:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e68c3d32-de9f-4d0c-8995-736c639f0a05" } 2021-05-12 23:00:10 | [Mutex] received everything. 2021-05-12 23:00:10 | [Mutex] isItemNotified: retracted:item:notifieditem-e68c3d32-de9f-4d0c-8995-736c639f0a05:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2021-05-12 23:00:10 |
2021-05-12 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:10 | ------------------------------------ 2021-05-12 23:00:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "item-id": "item-e68c3d32-de9f-4d0c-8995-736c639f0a05" } 2021-05-12 23:00:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "item-id": "item-e68c3d32-de9f-4d0c-8995-736c639f0a05", "item": [ "<item id=\"item-e68c3d32-de9f-4d0c-8995-736c639f0a05\"><test>item-e68c3d32-de9f-4d0c-8995-736c639f0a05</test></item>" ] } 2021-05-12 23:00:10 | [Mutex] notify: [retrieved:item:item-e68c3d32-de9f-4d0c-8995-736c639f0a05:payload-matches:true:localhost] 2021-05-12 23:00:10 | [Mutex] received everything. 2021-05-12 23:00:10 | [Mutex] isItemNotified: retrieved:item:item-e68c3d32-de9f-4d0c-8995-736c639f0a05:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.068s |
2021-05-12 23:00:10 |
2021-05-12 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:10 | ------------------------------------ 2021-05-12 23:00:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-12 23:00:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "test", "node-402a30d4-d062-4768-9fe5-fe6109ca7482" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-05-12 23:00:10 |
2021-05-12 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:10 | ------------------------------------ 2021-05-12 23:00:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa)" } 2021-05-12 23:00:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-05-12 23:00:09 |
2021-05-12 23:00:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:09 | ------------------------------------ 2021-05-12 23:00:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "jids": [ "admin@test-domain.com" ] } 2021-05-12 23:00:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-05-12 23:00:10 |
2021-05-12 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-12 23:00:10 | ------------------------------------ 2021-05-12 23:00:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2ef87f5e-95e1-4f49-8197-7f486f6d75fa", "jids": [ "admin@test-domain.com" ] } 2021-05-12 23:00:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |