Test duration : 8.614s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.152s |
2022-07-05 23:03:58 |
2022-07-05 23:03:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:03:58 | ------------------------------------ 2022-07-05 23:03:58 | [Mutex] waiting for: [configured:node:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:node-3cc3b866-cbf9-4795-ab92-d22edc0317f2] 2022-07-05 23:03:58 | [Mutex] received everything. 2022-07-05 23:03:58 | [Mutex] isItemNotified: configured:node:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:node-3cc3b866-cbf9-4795-ab92-d22edc0317f2 :: true 2022-07-05 23:03:59 | [Mutex] waiting for: [received:nodes:61ebc8f8-38d9-4cee-8593-273c464c1833:localhost] 2022-07-05 23:03:59 | [Mutex] received everything. 2022-07-05 23:03:59 | [Mutex] isItemNotified: received:node:61ebc8f8-38d9-4cee-8593-273c464c1833:localhost:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:Node 9a01b59b-4a83-4865-ae75-0e109e5e10bd :: true 2022-07-05 23:03:59 | [Mutex] waiting for: [received:nodes:7c3d69d4-1738-42ee-9dc7-4caaa0141a63:localhost] 2022-07-05 23:03:59 | [Mutex] received everything. 2022-07-05 23:03:59 | [Mutex] isItemNotified: received:node:7c3d69d4-1738-42ee-9dc7-4caaa0141a63:localhost:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:Node 9a01b59b-4a83-4865-ae75-0e109e5e10bd :: false |
createNodes | 1.518s |
2022-07-05 23:03:56 |
2022-07-05 23:03:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:03:56 | ------------------------------------ 2022-07-05 23:03:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "pubsub#title": "Node 9a01b59b-4a83-4865-ae75-0e109e5e10bd" } 2022-07-05 23:03:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:03:57 | [Mutex] waiting for: [received:nodes:09542aaf-db39-4802-b7be-16aa1706007e:localhost] 2022-07-05 23:03:57 | [Mutex] waiting for: [received:nodes:09542aaf-db39-4802-b7be-16aa1706007e:localhost] 2022-07-05 23:03:57 | [Mutex] received everything. 2022-07-05 23:03:57 | [Mutex] isItemNotified: received:node:09542aaf-db39-4802-b7be-16aa1706007e:localhost:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:Node 9a01b59b-4a83-4865-ae75-0e109e5e10bd :: true |
createSubnodes | 1.029s |
2022-07-05 23:03:57 |
2022-07-05 23:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:03:57 | ------------------------------------ 2022-07-05 23:03:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3cc3b866-cbf9-4795-ab92-d22edc0317f2", "pubsub#title": "Node 3cc3b866-cbf9-4795-ab92-d22edc0317f2" } 2022-07-05 23:03:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:03:58 | [Mutex] waiting for: [received:nodes:48782496-1924-402f-8785-9fce8a26dfa4:localhost] 2022-07-05 23:03:58 | [Mutex] received everything. 2022-07-05 23:03:58 | [Mutex] isItemNotified: received:node:48782496-1924-402f-8785-9fce8a26dfa4:localhost:node-3cc3b866-cbf9-4795-ab92-d22edc0317f2:Node 3cc3b866-cbf9-4795-ab92-d22edc0317f2 :: true |
deleteNodes | 1.018s |
2022-07-05 23:04:03 |
2022-07-05 23:04:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:03 | ------------------------------------ 2022-07-05 23:04:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3cc3b866-cbf9-4795-ab92-d22edc0317f2" } 2022-07-05 23:04:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:04:04 | [Mutex] waiting for: [received:nodes:be212b76-03ce-4f7a-81b3-900559df6e48:localhost] 2022-07-05 23:04:04 | [Mutex] received everything. 2022-07-05 23:04:04 | [Mutex] isItemNotified: received:node:be212b76-03ce-4f7a-81b3-900559df6e48:localhost:node-3cc3b866-cbf9-4795-ab92-d22edc0317f2:Node 3cc3b866-cbf9-4795-ab92-d22edc0317f2 :: false |
deleteSubnodes | 1.029s |
2022-07-05 23:04:02 |
2022-07-05 23:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:02 | ------------------------------------ 2022-07-05 23:04:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd" } 2022-07-05 23:04:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:04:03 | [Mutex] waiting for: [received:nodes:32023ab5-7f4b-4166-983f-65206138caaf:localhost] 2022-07-05 23:04:03 | [Mutex] received everything. 2022-07-05 23:04:03 | [Mutex] isItemNotified: received:node:32023ab5-7f4b-4166-983f-65206138caaf:localhost:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:Node 9a01b59b-4a83-4865-ae75-0e109e5e10bd :: false 2022-07-05 23:04:03 | [Mutex] waiting for: [received:nodes:7c645a66-3bdc-4652-806f-a66711ca75d6:localhost] 2022-07-05 23:04:03 | [Mutex] received everything. 2022-07-05 23:04:03 | [Mutex] isItemNotified: received:node:7c645a66-3bdc-4652-806f-a66711ca75d6:localhost:node-9a01b59b-4a83-4865-ae75-0e109e5e10bd:Node 9a01b59b-4a83-4865-ae75-0e109e5e10bd :: false |
publishItemsToNodes | 0.059s |
2022-07-05 23:04:00 |
2022-07-05 23:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:00 | ------------------------------------ 2022-07-05 23:04:00 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "entry": "<test>item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c</test>", "item-id": "item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c" } 2022-07-05 23:04:00 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c" } 2022-07-05 23:04:00 | [Mutex] waiting for: [published:item:notifieditem-5f8277ba-4417-48b1-9f2e-29e509ba4c4c:admin@test-domain.com] 2022-07-05 23:04:00 | [Mutex] received everything. 2022-07-05 23:04:00 | [Mutex] isItemNotified: published:item:notifieditem-5f8277ba-4417-48b1-9f2e-29e509ba4c4c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2022-07-05 23:04:00 |
2022-07-05 23:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:00 | ------------------------------------ 2022-07-05 23:04:00 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "item-id": "item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c" } 2022-07-05 23:04:01 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c" } 2022-07-05 23:04:01 | [Mutex] received everything. 2022-07-05 23:04:01 | [Mutex] isItemNotified: retracted:item:notifieditem-5f8277ba-4417-48b1-9f2e-29e509ba4c4c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.023s |
2022-07-05 23:04:00 |
2022-07-05 23:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:00 | ------------------------------------ 2022-07-05 23:04:00 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "item-id": "item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c" } 2022-07-05 23:04:00 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "item-id": "item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c", "item": [ "<item id=\"item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c\"><test>item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c</test></item>" ] } 2022-07-05 23:04:00 | [Mutex] notify: [retrieved:item:item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c:payload-matches:true:localhost] 2022-07-05 23:04:00 | [Mutex] received everything. 2022-07-05 23:04:00 | [Mutex] isItemNotified: retrieved:item:item-5f8277ba-4417-48b1-9f2e-29e509ba4c4c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2022-07-05 23:04:00 |
2022-07-05 23:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:00 | ------------------------------------ 2022-07-05 23:04:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-05 23:04:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "node-3cc3b866-cbf9-4795-ab92-d22edc0317f2" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-05 23:04:00 |
2022-07-05 23:04:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:00 | ------------------------------------ 2022-07-05 23:04:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9a01b59b-4a83-4865-ae75-0e109e5e10bd)" } 2022-07-05 23:04:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-07-05 23:03:59 |
2022-07-05 23:03:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:03:59 | ------------------------------------ 2022-07-05 23:03:59 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "jids": [ "admin@test-domain.com" ] } 2022-07-05 23:03:59 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.080s |
2022-07-05 23:04:01 |
2022-07-05 23:04:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:04:01 | ------------------------------------ 2022-07-05 23:04:01 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9a01b59b-4a83-4865-ae75-0e109e5e10bd", "jids": [ "admin@test-domain.com" ] } 2022-07-05 23:04:01 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |