Test duration : 8.633s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.147s |
2022-07-05 22:46:05 |
2022-07-05 22:46:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:05 | ------------------------------------ 2022-07-05 22:46:05 | [Mutex] waiting for: [configured:node:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:node-bae59310-72f1-4438-9e0b-5003e0622f1e] 2022-07-05 22:46:05 | [Mutex] received everything. 2022-07-05 22:46:05 | [Mutex] isItemNotified: configured:node:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:node-bae59310-72f1-4438-9e0b-5003e0622f1e :: true 2022-07-05 22:46:06 | [Mutex] waiting for: [received:nodes:f550bf17-646c-4bc6-8406-6e1a6392c3ce:localhost] 2022-07-05 22:46:06 | [Mutex] received everything. 2022-07-05 22:46:06 | [Mutex] isItemNotified: received:node:f550bf17-646c-4bc6-8406-6e1a6392c3ce:localhost:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:Node b74c783d-e3e6-4cd9-b8fd-79f60a714404 :: true 2022-07-05 22:46:06 | [Mutex] waiting for: [received:nodes:532fdcb3-775e-43f7-970c-2eeb50c94931:localhost] 2022-07-05 22:46:06 | [Mutex] received everything. 2022-07-05 22:46:06 | [Mutex] isItemNotified: received:node:532fdcb3-775e-43f7-970c-2eeb50c94931:localhost:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:Node b74c783d-e3e6-4cd9-b8fd-79f60a714404 :: false |
createNodes | 1.568s |
2022-07-05 22:46:02 |
2022-07-05 22:46:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:02 | ------------------------------------ 2022-07-05 22:46:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "pubsub#title": "Node b74c783d-e3e6-4cd9-b8fd-79f60a714404" } 2022-07-05 22:46:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 22:46:04 | [Mutex] waiting for: [received:nodes:b19ffe18-fadc-4b94-8afb-70a3a854177b:localhost] 2022-07-05 22:46:04 | [Mutex] waiting for: [received:nodes:b19ffe18-fadc-4b94-8afb-70a3a854177b:localhost] 2022-07-05 22:46:04 | [Mutex] received everything. 2022-07-05 22:46:04 | [Mutex] isItemNotified: received:node:b19ffe18-fadc-4b94-8afb-70a3a854177b:localhost:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:Node b74c783d-e3e6-4cd9-b8fd-79f60a714404 :: true |
createSubnodes | 1.028s |
2022-07-05 22:46:04 |
2022-07-05 22:46:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:04 | ------------------------------------ 2022-07-05 22:46:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-bae59310-72f1-4438-9e0b-5003e0622f1e", "pubsub#title": "Node bae59310-72f1-4438-9e0b-5003e0622f1e" } 2022-07-05 22:46:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 22:46:05 | [Mutex] waiting for: [received:nodes:f296a08b-5d77-481e-a624-a13ee457d7a1:localhost] 2022-07-05 22:46:05 | [Mutex] waiting for: [received:nodes:f296a08b-5d77-481e-a624-a13ee457d7a1:localhost] 2022-07-05 22:46:05 | [Mutex] received everything. 2022-07-05 22:46:05 | [Mutex] isItemNotified: received:node:f296a08b-5d77-481e-a624-a13ee457d7a1:localhost:node-bae59310-72f1-4438-9e0b-5003e0622f1e:Node bae59310-72f1-4438-9e0b-5003e0622f1e :: true |
deleteNodes | 1.028s |
2022-07-05 22:46:09 |
2022-07-05 22:46:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:09 | ------------------------------------ 2022-07-05 22:46:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bae59310-72f1-4438-9e0b-5003e0622f1e" } 2022-07-05 22:46:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 22:46:10 | [Mutex] waiting for: [received:nodes:bc6f3da7-e6fb-41c6-b73b-3b2258dfdf19:localhost] 2022-07-05 22:46:10 | [Mutex] received everything. 2022-07-05 22:46:10 | [Mutex] isItemNotified: received:node:bc6f3da7-e6fb-41c6-b73b-3b2258dfdf19:localhost:node-bae59310-72f1-4438-9e0b-5003e0622f1e:Node bae59310-72f1-4438-9e0b-5003e0622f1e :: false |
deleteSubnodes | 1.027s |
2022-07-05 22:46:08 |
2022-07-05 22:46:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:08 | ------------------------------------ 2022-07-05 22:46:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404" } 2022-07-05 22:46:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 22:46:09 | [Mutex] waiting for: [received:nodes:b46cea6d-42a6-4103-8cf2-ee73ae2fc6d6:localhost] 2022-07-05 22:46:09 | [Mutex] received everything. 2022-07-05 22:46:09 | [Mutex] isItemNotified: received:node:b46cea6d-42a6-4103-8cf2-ee73ae2fc6d6:localhost:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:Node b74c783d-e3e6-4cd9-b8fd-79f60a714404 :: false 2022-07-05 22:46:09 | [Mutex] waiting for: [received:nodes:89f678de-d33f-4d78-a959-b09f5a06eee0:localhost] 2022-07-05 22:46:09 | [Mutex] received everything. 2022-07-05 22:46:09 | [Mutex] isItemNotified: received:node:89f678de-d33f-4d78-a959-b09f5a06eee0:localhost:node-b74c783d-e3e6-4cd9-b8fd-79f60a714404:Node b74c783d-e3e6-4cd9-b8fd-79f60a714404 :: false |
publishItemsToNodes | 0.054s |
2022-07-05 22:46:07 |
2022-07-05 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:07 | ------------------------------------ 2022-07-05 22:46:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "entry": "<test>item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f</test>", "item-id": "item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f" } 2022-07-05 22:46:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f" } 2022-07-05 22:46:07 | [Mutex] waiting for: [published:item:notifieditem-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f:admin@test-domain.com] 2022-07-05 22:46:07 | [Mutex] received everything. 2022-07-05 22:46:07 | [Mutex] isItemNotified: published:item:notifieditem-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-07-05 22:46:07 |
2022-07-05 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:07 | ------------------------------------ 2022-07-05 22:46:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "item-id": "item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f" } 2022-07-05 22:46:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f" } 2022-07-05 22:46:07 | [Mutex] received everything. 2022-07-05 22:46:07 | [Mutex] isItemNotified: retracted:item:notifieditem-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2022-07-05 22:46:07 |
2022-07-05 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:07 | ------------------------------------ 2022-07-05 22:46:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "item-id": "item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f" } 2022-07-05 22:46:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "item-id": "item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f", "item": [ "<item id=\"item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f\"><test>item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f</test></item>" ] } 2022-07-05 22:46:07 | [Mutex] notify: [retrieved:item:item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f:payload-matches:true:localhost] 2022-07-05 22:46:07 | [Mutex] received everything. 2022-07-05 22:46:07 | [Mutex] isItemNotified: retrieved:item:item-8392e5e0-0bdc-4d9f-baca-4d25bac57f1f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-05 22:46:07 |
2022-07-05 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:07 | ------------------------------------ 2022-07-05 22:46:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-05 22:46:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-bae59310-72f1-4438-9e0b-5003e0622f1e", "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-05 22:46:07 |
2022-07-05 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:07 | ------------------------------------ 2022-07-05 22:46:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b74c783d-e3e6-4cd9-b8fd-79f60a714404)" } 2022-07-05 22:46:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-07-05 22:46:06 |
2022-07-05 22:46:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:06 | ------------------------------------ 2022-07-05 22:46:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "jids": [ "admin@test-domain.com" ] } 2022-07-05 22:46:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-07-05 22:46:07 |
2022-07-05 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 22:46:07 | ------------------------------------ 2022-07-05 22:46:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b74c783d-e3e6-4cd9-b8fd-79f60a714404", "jids": [ "admin@test-domain.com" ] } 2022-07-05 22:46:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |