Test duration : 8.691s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2023-09-29 00:29:50 |
2023-09-29 00:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:50 | ------------------------------------ 2023-09-29 00:29:50 | [Mutex] waiting for: [configured:node:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b] 2023-09-29 00:29:50 | [Mutex] received everything. 2023-09-29 00:29:50 | [Mutex] isItemNotified: configured:node:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b :: true 2023-09-29 00:29:51 | [Mutex] waiting for: [received:nodes:67d4a653-092f-4d8d-8084-7e93b67da020:localhost] 2023-09-29 00:29:51 | [Mutex] received everything. 2023-09-29 00:29:51 | [Mutex] isItemNotified: received:node:67d4a653-092f-4d8d-8084-7e93b67da020:localhost:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:Node 9d07a73c-8fa4-4d66-a2fb-135129f280f6 :: true 2023-09-29 00:29:51 | [Mutex] waiting for: [received:nodes:b2563a76-67a2-4fec-ae19-08ca97e56b26:localhost] 2023-09-29 00:29:51 | [Mutex] waiting for: [received:nodes:b2563a76-67a2-4fec-ae19-08ca97e56b26:localhost] 2023-09-29 00:29:51 | [Mutex] waiting for: [received:nodes:b2563a76-67a2-4fec-ae19-08ca97e56b26:localhost] 2023-09-29 00:29:51 | [Mutex] waiting for: [received:nodes:b2563a76-67a2-4fec-ae19-08ca97e56b26:localhost] 2023-09-29 00:29:51 | [Mutex] received everything. 2023-09-29 00:29:51 | [Mutex] isItemNotified: received:node:b2563a76-67a2-4fec-ae19-08ca97e56b26:localhost:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:Node 9d07a73c-8fa4-4d66-a2fb-135129f280f6 :: false |
createNodes | 1.670s |
2023-09-29 00:29:47 |
2023-09-29 00:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:47 | ------------------------------------ 2023-09-29 00:29:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "pubsub#title": "Node 9d07a73c-8fa4-4d66-a2fb-135129f280f6" } 2023-09-29 00:29:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-29 00:29:49 | [Mutex] waiting for: [received:nodes:4a60ff4c-b0b4-4fb7-98d4-3f504a268cf6:localhost] 2023-09-29 00:29:49 | [Mutex] received everything. 2023-09-29 00:29:49 | [Mutex] isItemNotified: received:node:4a60ff4c-b0b4-4fb7-98d4-3f504a268cf6:localhost:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:Node 9d07a73c-8fa4-4d66-a2fb-135129f280f6 :: true |
createSubnodes | 1.028s |
2023-09-29 00:29:49 |
2023-09-29 00:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:49 | ------------------------------------ 2023-09-29 00:29:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b", "pubsub#title": "Node a091cd79-b9c3-4947-9edb-c58e1ce5f35b" } 2023-09-29 00:29:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-29 00:29:50 | [Mutex] waiting for: [received:nodes:9402c952-4811-44c4-b416-cd56cfd7e886:localhost] 2023-09-29 00:29:50 | [Mutex] waiting for: [received:nodes:9402c952-4811-44c4-b416-cd56cfd7e886:localhost] 2023-09-29 00:29:50 | [Mutex] received everything. 2023-09-29 00:29:50 | [Mutex] isItemNotified: received:node:9402c952-4811-44c4-b416-cd56cfd7e886:localhost:node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b:Node a091cd79-b9c3-4947-9edb-c58e1ce5f35b :: true |
deleteNodes | 1.019s |
2023-09-29 00:29:54 |
2023-09-29 00:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:54 | ------------------------------------ 2023-09-29 00:29:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b" } 2023-09-29 00:29:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-29 00:29:55 | [Mutex] waiting for: [received:nodes:6b2abad7-8bca-437a-ac78-800b2732331b:localhost] 2023-09-29 00:29:55 | [Mutex] waiting for: [received:nodes:6b2abad7-8bca-437a-ac78-800b2732331b:localhost] 2023-09-29 00:29:55 | [Mutex] waiting for: [received:nodes:6b2abad7-8bca-437a-ac78-800b2732331b:localhost] 2023-09-29 00:29:55 | [Mutex] received everything. 2023-09-29 00:29:55 | [Mutex] isItemNotified: received:node:6b2abad7-8bca-437a-ac78-800b2732331b:localhost:node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b:Node a091cd79-b9c3-4947-9edb-c58e1ce5f35b :: false |
deleteSubnodes | 1.023s |
2023-09-29 00:29:53 |
2023-09-29 00:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:53 | ------------------------------------ 2023-09-29 00:29:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6" } 2023-09-29 00:29:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-29 00:29:54 | [Mutex] waiting for: [received:nodes:3b73c1e8-53b6-4fb9-bc23-399506dc465a:localhost] 2023-09-29 00:29:54 | [Mutex] waiting for: [received:nodes:3b73c1e8-53b6-4fb9-bc23-399506dc465a:localhost] 2023-09-29 00:29:54 | [Mutex] waiting for: [received:nodes:3b73c1e8-53b6-4fb9-bc23-399506dc465a:localhost] 2023-09-29 00:29:54 | [Mutex] waiting for: [received:nodes:3b73c1e8-53b6-4fb9-bc23-399506dc465a:localhost] 2023-09-29 00:29:54 | [Mutex] received everything. 2023-09-29 00:29:54 | [Mutex] isItemNotified: received:node:3b73c1e8-53b6-4fb9-bc23-399506dc465a:localhost:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:Node 9d07a73c-8fa4-4d66-a2fb-135129f280f6 :: false 2023-09-29 00:29:54 | [Mutex] waiting for: [received:nodes:1bb6c824-cacc-432d-a507-47c8a96731af:localhost] 2023-09-29 00:29:54 | [Mutex] received everything. 2023-09-29 00:29:54 | [Mutex] isItemNotified: received:node:1bb6c824-cacc-432d-a507-47c8a96731af:localhost:node-9d07a73c-8fa4-4d66-a2fb-135129f280f6:Node 9d07a73c-8fa4-4d66-a2fb-135129f280f6 :: false |
publishItemsToNodes | 0.042s |
2023-09-29 00:29:52 |
2023-09-29 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:52 | ------------------------------------ 2023-09-29 00:29:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "entry": "<test>item-426a24cb-785c-421c-8536-9ab426824468</test>", "item-id": "item-426a24cb-785c-421c-8536-9ab426824468" } 2023-09-29 00:29:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-426a24cb-785c-421c-8536-9ab426824468" } 2023-09-29 00:29:52 | [Mutex] waiting for: [published:item:notifieditem-426a24cb-785c-421c-8536-9ab426824468:admin@test-domain.com] 2023-09-29 00:29:52 | [Mutex] received everything. 2023-09-29 00:29:52 | [Mutex] isItemNotified: published:item:notifieditem-426a24cb-785c-421c-8536-9ab426824468:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2023-09-29 00:29:52 |
2023-09-29 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:52 | ------------------------------------ 2023-09-29 00:29:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "item-id": "item-426a24cb-785c-421c-8536-9ab426824468" } 2023-09-29 00:29:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-426a24cb-785c-421c-8536-9ab426824468" } 2023-09-29 00:29:52 | [Mutex] received everything. 2023-09-29 00:29:52 | [Mutex] isItemNotified: retracted:item:notifieditem-426a24cb-785c-421c-8536-9ab426824468:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2023-09-29 00:29:52 |
2023-09-29 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:52 | ------------------------------------ 2023-09-29 00:29:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "item-id": "item-426a24cb-785c-421c-8536-9ab426824468" } 2023-09-29 00:29:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "item-id": "item-426a24cb-785c-421c-8536-9ab426824468", "item": [ "<item id=\"item-426a24cb-785c-421c-8536-9ab426824468\"><test>item-426a24cb-785c-421c-8536-9ab426824468</test></item>" ] } 2023-09-29 00:29:52 | [Mutex] notify: [retrieved:item:item-426a24cb-785c-421c-8536-9ab426824468:payload-matches:true:localhost] 2023-09-29 00:29:52 | [Mutex] received everything. 2023-09-29 00:29:52 | [Mutex] isItemNotified: retrieved:item:item-426a24cb-785c-421c-8536-9ab426824468:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2023-09-29 00:29:52 |
2023-09-29 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:52 | ------------------------------------ 2023-09-29 00:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-09-29 00:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "test", "node-a091cd79-b9c3-4947-9edb-c58e1ce5f35b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-09-29 00:29:52 |
2023-09-29 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:52 | ------------------------------------ 2023-09-29 00:29:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9d07a73c-8fa4-4d66-a2fb-135129f280f6)" } 2023-09-29 00:29:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-09-29 00:29:51 |
2023-09-29 00:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:51 | ------------------------------------ 2023-09-29 00:29:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "jids": [ "admin@test-domain.com" ] } 2023-09-29 00:29:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.135s |
2023-09-29 00:29:52 |
2023-09-29 00:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-29 00:29:52 | ------------------------------------ 2023-09-29 00:29:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9d07a73c-8fa4-4d66-a2fb-135129f280f6", "jids": [ "admin@test-domain.com" ] } 2023-09-29 00:29:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |