Test duration : 8.804s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2023-07-06 22:59:57 |
2023-07-06 22:59:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:57 | ------------------------------------ 2023-07-06 22:59:57 | [Mutex] waiting for: [configured:node:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:node-0c69d953-4307-4509-acef-abbdc5916366] 2023-07-06 22:59:57 | [Mutex] received everything. 2023-07-06 22:59:57 | [Mutex] isItemNotified: configured:node:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:node-0c69d953-4307-4509-acef-abbdc5916366 :: true 2023-07-06 22:59:58 | [Mutex] waiting for: [received:nodes:83e5216b-434c-46b4-9cff-70eda169ebee:localhost] 2023-07-06 22:59:58 | [Mutex] received everything. 2023-07-06 22:59:58 | [Mutex] isItemNotified: received:node:83e5216b-434c-46b4-9cff-70eda169ebee:localhost:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:Node c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1 :: true 2023-07-06 22:59:58 | [Mutex] waiting for: [received:nodes:ecc69b8b-bd0f-4831-a0f4-5a7b99ac35d8:localhost] 2023-07-06 22:59:58 | [Mutex] waiting for: [received:nodes:ecc69b8b-bd0f-4831-a0f4-5a7b99ac35d8:localhost] 2023-07-06 22:59:58 | [Mutex] waiting for: [received:nodes:ecc69b8b-bd0f-4831-a0f4-5a7b99ac35d8:localhost] 2023-07-06 22:59:58 | [Mutex] received everything. 2023-07-06 22:59:58 | [Mutex] isItemNotified: received:node:ecc69b8b-bd0f-4831-a0f4-5a7b99ac35d8:localhost:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:Node c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1 :: false |
createNodes | 1.838s |
2023-07-06 22:59:54 |
2023-07-06 22:59:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:54 | ------------------------------------ 2023-07-06 22:59:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "pubsub#title": "Node c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1" } 2023-07-06 22:59:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:59:56 | [Mutex] waiting for: [received:nodes:0a941d1b-9dd2-4503-99d7-ed671030a555:localhost] 2023-07-06 22:59:56 | [Mutex] waiting for: [received:nodes:0a941d1b-9dd2-4503-99d7-ed671030a555:localhost] 2023-07-06 22:59:56 | [Mutex] waiting for: [received:nodes:0a941d1b-9dd2-4503-99d7-ed671030a555:localhost] 2023-07-06 22:59:56 | [Mutex] waiting for: [received:nodes:0a941d1b-9dd2-4503-99d7-ed671030a555:localhost] 2023-07-06 22:59:56 | [Mutex] received everything. 2023-07-06 22:59:56 | [Mutex] isItemNotified: received:node:0a941d1b-9dd2-4503-99d7-ed671030a555:localhost:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:Node c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1 :: true |
createSubnodes | 1.024s |
2023-07-06 22:59:56 |
2023-07-06 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:56 | ------------------------------------ 2023-07-06 22:59:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0c69d953-4307-4509-acef-abbdc5916366", "pubsub#title": "Node 0c69d953-4307-4509-acef-abbdc5916366" } 2023-07-06 22:59:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:59:57 | [Mutex] waiting for: [received:nodes:37892168-9a36-4e91-b1dc-04448801e7f9:localhost] 2023-07-06 22:59:57 | [Mutex] waiting for: [received:nodes:37892168-9a36-4e91-b1dc-04448801e7f9:localhost] 2023-07-06 22:59:57 | [Mutex] received everything. 2023-07-06 22:59:57 | [Mutex] isItemNotified: received:node:37892168-9a36-4e91-b1dc-04448801e7f9:localhost:node-0c69d953-4307-4509-acef-abbdc5916366:Node 0c69d953-4307-4509-acef-abbdc5916366 :: true |
deleteNodes | 1.022s |
2023-07-06 23:00:02 |
2023-07-06 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:02 | ------------------------------------ 2023-07-06 23:00:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0c69d953-4307-4509-acef-abbdc5916366" } 2023-07-06 23:00:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 23:00:03 | [Mutex] waiting for: [received:nodes:ee6de45f-a0f5-4eb5-af16-542043e4b436:localhost] 2023-07-06 23:00:03 | [Mutex] waiting for: [received:nodes:ee6de45f-a0f5-4eb5-af16-542043e4b436:localhost] 2023-07-06 23:00:03 | [Mutex] waiting for: [received:nodes:ee6de45f-a0f5-4eb5-af16-542043e4b436:localhost] 2023-07-06 23:00:03 | [Mutex] received everything. 2023-07-06 23:00:03 | [Mutex] isItemNotified: received:node:ee6de45f-a0f5-4eb5-af16-542043e4b436:localhost:node-0c69d953-4307-4509-acef-abbdc5916366:Node 0c69d953-4307-4509-acef-abbdc5916366 :: false |
deleteSubnodes | 1.031s |
2023-07-06 23:00:01 |
2023-07-06 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:01 | ------------------------------------ 2023-07-06 23:00:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1" } 2023-07-06 23:00:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 23:00:02 | [Mutex] waiting for: [received:nodes:2119f828-b9b2-40fc-8d42-8ad7bfdcf05c:localhost] 2023-07-06 23:00:02 | [Mutex] waiting for: [received:nodes:2119f828-b9b2-40fc-8d42-8ad7bfdcf05c:localhost] 2023-07-06 23:00:02 | [Mutex] waiting for: [received:nodes:2119f828-b9b2-40fc-8d42-8ad7bfdcf05c:localhost] 2023-07-06 23:00:02 | [Mutex] waiting for: [received:nodes:2119f828-b9b2-40fc-8d42-8ad7bfdcf05c:localhost] 2023-07-06 23:00:02 | [Mutex] received everything. 2023-07-06 23:00:02 | [Mutex] isItemNotified: received:node:2119f828-b9b2-40fc-8d42-8ad7bfdcf05c:localhost:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:Node c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1 :: false 2023-07-06 23:00:02 | [Mutex] waiting for: [received:nodes:223366f3-3f69-41d5-b327-40e51f1a64a5:localhost] 2023-07-06 23:00:02 | [Mutex] received everything. 2023-07-06 23:00:02 | [Mutex] isItemNotified: received:node:223366f3-3f69-41d5-b327-40e51f1a64a5:localhost:node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1:Node c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1 :: false |
publishItemsToNodes | 0.034s |
2023-07-06 22:59:59 |
2023-07-06 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:59 | ------------------------------------ 2023-07-06 22:59:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "entry": "<test>item-1576a832-c868-405a-9c60-0df54b125eed</test>", "item-id": "item-1576a832-c868-405a-9c60-0df54b125eed" } 2023-07-06 22:59:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1576a832-c868-405a-9c60-0df54b125eed" } 2023-07-06 22:59:59 | [Mutex] waiting for: [published:item:notifieditem-1576a832-c868-405a-9c60-0df54b125eed:admin@test-domain.com] 2023-07-06 22:59:59 | [Mutex] received everything. 2023-07-06 22:59:59 | [Mutex] isItemNotified: published:item:notifieditem-1576a832-c868-405a-9c60-0df54b125eed:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2023-07-06 22:59:59 |
2023-07-06 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:59 | ------------------------------------ 2023-07-06 22:59:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "item-id": "item-1576a832-c868-405a-9c60-0df54b125eed" } 2023-07-06 22:59:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1576a832-c868-405a-9c60-0df54b125eed" } 2023-07-06 23:00:00 | [Mutex] received everything. 2023-07-06 23:00:00 | [Mutex] isItemNotified: retracted:item:notifieditem-1576a832-c868-405a-9c60-0df54b125eed:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2023-07-06 22:59:59 |
2023-07-06 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:59 | ------------------------------------ 2023-07-06 22:59:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "item-id": "item-1576a832-c868-405a-9c60-0df54b125eed" } 2023-07-06 22:59:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "item-id": "item-1576a832-c868-405a-9c60-0df54b125eed", "item": [ "<item id=\"item-1576a832-c868-405a-9c60-0df54b125eed\"><test>item-1576a832-c868-405a-9c60-0df54b125eed</test></item>" ] } 2023-07-06 22:59:59 | [Mutex] notify: [retrieved:item:item-1576a832-c868-405a-9c60-0df54b125eed:payload-matches:true:localhost] 2023-07-06 22:59:59 | [Mutex] received everything. 2023-07-06 22:59:59 | [Mutex] isItemNotified: retrieved:item:item-1576a832-c868-405a-9c60-0df54b125eed:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-07-06 22:59:59 |
2023-07-06 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:59 | ------------------------------------ 2023-07-06 22:59:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-06 22:59:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "node-0c69d953-4307-4509-acef-abbdc5916366" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2023-07-06 22:59:59 |
2023-07-06 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:59 | ------------------------------------ 2023-07-06 22:59:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1)" } 2023-07-06 22:59:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2023-07-06 22:59:58 |
2023-07-06 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:59:58 | ------------------------------------ 2023-07-06 22:59:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "jids": [ "admin@test-domain.com" ] } 2023-07-06 22:59:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2023-07-06 23:00:00 |
2023-07-06 23:00:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:00 | ------------------------------------ 2023-07-06 23:00:00 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c1ea8145-6e3d-4011-ac96-0e9dbf8f19d1", "jids": [ "admin@test-domain.com" ] } 2023-07-06 23:00:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |