Test duration : 8.612s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.085s |
2023-02-15 21:44:54 |
2023-02-15 21:44:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:54 | ------------------------------------ 2023-02-15 21:44:54 | [Mutex] waiting for: [configured:node:node-0003020a-38d9-4c48-a067-9919d89e846b:node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4] 2023-02-15 21:44:54 | [Mutex] received everything. 2023-02-15 21:44:54 | [Mutex] isItemNotified: configured:node:node-0003020a-38d9-4c48-a067-9919d89e846b:node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4 :: true 2023-02-15 21:44:55 | [Mutex] waiting for: [received:nodes:0823c5e3-69ce-4acb-9f83-3fb5a117f800:localhost] 2023-02-15 21:44:55 | [Mutex] received everything. 2023-02-15 21:44:55 | [Mutex] isItemNotified: received:node:0823c5e3-69ce-4acb-9f83-3fb5a117f800:localhost:node-0003020a-38d9-4c48-a067-9919d89e846b:Node 0003020a-38d9-4c48-a067-9919d89e846b :: true 2023-02-15 21:44:55 | [Mutex] waiting for: [received:nodes:a6be5393-f786-412e-8376-1ff721acec38:localhost] 2023-02-15 21:44:55 | [Mutex] waiting for: [received:nodes:a6be5393-f786-412e-8376-1ff721acec38:localhost] 2023-02-15 21:44:55 | [Mutex] waiting for: [received:nodes:a6be5393-f786-412e-8376-1ff721acec38:localhost] 2023-02-15 21:44:55 | [Mutex] waiting for: [received:nodes:a6be5393-f786-412e-8376-1ff721acec38:localhost] 2023-02-15 21:44:55 | [Mutex] received everything. 2023-02-15 21:44:55 | [Mutex] isItemNotified: received:node:a6be5393-f786-412e-8376-1ff721acec38:localhost:node-0003020a-38d9-4c48-a067-9919d89e846b:Node 0003020a-38d9-4c48-a067-9919d89e846b :: false |
createNodes | 1.642s |
2023-02-15 21:44:51 |
2023-02-15 21:44:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:51 | ------------------------------------ 2023-02-15 21:44:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "pubsub#title": "Node 0003020a-38d9-4c48-a067-9919d89e846b" } 2023-02-15 21:44:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-15 21:44:53 | [Mutex] waiting for: [received:nodes:92178d6c-f42f-4240-ae77-90f05f6ec779:localhost] 2023-02-15 21:44:53 | [Mutex] waiting for: [received:nodes:92178d6c-f42f-4240-ae77-90f05f6ec779:localhost] 2023-02-15 21:44:53 | [Mutex] waiting for: [received:nodes:92178d6c-f42f-4240-ae77-90f05f6ec779:localhost] 2023-02-15 21:44:53 | [Mutex] waiting for: [received:nodes:92178d6c-f42f-4240-ae77-90f05f6ec779:localhost] 2023-02-15 21:44:53 | [Mutex] received everything. 2023-02-15 21:44:53 | [Mutex] isItemNotified: received:node:92178d6c-f42f-4240-ae77-90f05f6ec779:localhost:node-0003020a-38d9-4c48-a067-9919d89e846b:Node 0003020a-38d9-4c48-a067-9919d89e846b :: true |
createSubnodes | 1.029s |
2023-02-15 21:44:53 |
2023-02-15 21:44:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:53 | ------------------------------------ 2023-02-15 21:44:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4", "pubsub#title": "Node 41bd3a89-7b19-4566-a76d-70eaa9fd97b4" } 2023-02-15 21:44:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-15 21:44:54 | [Mutex] waiting for: [received:nodes:64cba5b1-b446-4db4-82ee-dc92689ce4d9:localhost] 2023-02-15 21:44:54 | [Mutex] waiting for: [received:nodes:64cba5b1-b446-4db4-82ee-dc92689ce4d9:localhost] 2023-02-15 21:44:54 | [Mutex] waiting for: [received:nodes:64cba5b1-b446-4db4-82ee-dc92689ce4d9:localhost] 2023-02-15 21:44:54 | [Mutex] waiting for: [received:nodes:64cba5b1-b446-4db4-82ee-dc92689ce4d9:localhost] 2023-02-15 21:44:54 | [Mutex] waiting for: [received:nodes:64cba5b1-b446-4db4-82ee-dc92689ce4d9:localhost] 2023-02-15 21:44:54 | [Mutex] received everything. 2023-02-15 21:44:54 | [Mutex] isItemNotified: received:node:64cba5b1-b446-4db4-82ee-dc92689ce4d9:localhost:node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4:Node 41bd3a89-7b19-4566-a76d-70eaa9fd97b4 :: true |
deleteNodes | 1.023s |
2023-02-15 21:44:58 |
2023-02-15 21:44:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:58 | ------------------------------------ 2023-02-15 21:44:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4" } 2023-02-15 21:44:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-15 21:44:59 | [Mutex] waiting for: [received:nodes:66a8ca26-9d76-4a12-8ab7-867e6bdc4c1f:localhost] 2023-02-15 21:44:59 | [Mutex] received everything. 2023-02-15 21:44:59 | [Mutex] isItemNotified: received:node:66a8ca26-9d76-4a12-8ab7-867e6bdc4c1f:localhost:node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4:Node 41bd3a89-7b19-4566-a76d-70eaa9fd97b4 :: false |
deleteSubnodes | 1.027s |
2023-02-15 21:44:57 |
2023-02-15 21:44:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:57 | ------------------------------------ 2023-02-15 21:44:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0003020a-38d9-4c48-a067-9919d89e846b" } 2023-02-15 21:44:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-15 21:44:58 | [Mutex] waiting for: [received:nodes:678c7f57-d4c9-4b6b-a6bc-7b4404194127:localhost] 2023-02-15 21:44:58 | [Mutex] waiting for: [received:nodes:678c7f57-d4c9-4b6b-a6bc-7b4404194127:localhost] 2023-02-15 21:44:58 | [Mutex] waiting for: [received:nodes:678c7f57-d4c9-4b6b-a6bc-7b4404194127:localhost] 2023-02-15 21:44:58 | [Mutex] waiting for: [received:nodes:678c7f57-d4c9-4b6b-a6bc-7b4404194127:localhost] 2023-02-15 21:44:58 | [Mutex] received everything. 2023-02-15 21:44:58 | [Mutex] isItemNotified: received:node:678c7f57-d4c9-4b6b-a6bc-7b4404194127:localhost:node-0003020a-38d9-4c48-a067-9919d89e846b:Node 0003020a-38d9-4c48-a067-9919d89e846b :: false 2023-02-15 21:44:58 | [Mutex] waiting for: [received:nodes:33fb0402-8d46-443b-9ae1-e3ca62c4bd20:localhost] 2023-02-15 21:44:58 | [Mutex] received everything. 2023-02-15 21:44:58 | [Mutex] isItemNotified: received:node:33fb0402-8d46-443b-9ae1-e3ca62c4bd20:localhost:node-0003020a-38d9-4c48-a067-9919d89e846b:Node 0003020a-38d9-4c48-a067-9919d89e846b :: false |
publishItemsToNodes | 0.046s |
2023-02-15 21:44:56 |
2023-02-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:56 | ------------------------------------ 2023-02-15 21:44:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "entry": "<test>item-216d6dfd-a65e-47a6-bea6-ac2eade934f6</test>", "item-id": "item-216d6dfd-a65e-47a6-bea6-ac2eade934f6" } 2023-02-15 21:44:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-216d6dfd-a65e-47a6-bea6-ac2eade934f6" } 2023-02-15 21:44:56 | [Mutex] waiting for: [published:item:notifieditem-216d6dfd-a65e-47a6-bea6-ac2eade934f6:admin@test-domain.com] 2023-02-15 21:44:56 | [Mutex] received everything. 2023-02-15 21:44:56 | [Mutex] isItemNotified: published:item:notifieditem-216d6dfd-a65e-47a6-bea6-ac2eade934f6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2023-02-15 21:44:56 |
2023-02-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:56 | ------------------------------------ 2023-02-15 21:44:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "item-id": "item-216d6dfd-a65e-47a6-bea6-ac2eade934f6" } 2023-02-15 21:44:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-216d6dfd-a65e-47a6-bea6-ac2eade934f6" } 2023-02-15 21:44:56 | [Mutex] received everything. 2023-02-15 21:44:56 | [Mutex] isItemNotified: retracted:item:notifieditem-216d6dfd-a65e-47a6-bea6-ac2eade934f6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2023-02-15 21:44:56 |
2023-02-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:56 | ------------------------------------ 2023-02-15 21:44:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "item-id": "item-216d6dfd-a65e-47a6-bea6-ac2eade934f6" } 2023-02-15 21:44:56 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "item-id": "item-216d6dfd-a65e-47a6-bea6-ac2eade934f6", "item": [ "<item id=\"item-216d6dfd-a65e-47a6-bea6-ac2eade934f6\"><test>item-216d6dfd-a65e-47a6-bea6-ac2eade934f6</test></item>" ] } 2023-02-15 21:44:56 | [Mutex] notify: [retrieved:item:item-216d6dfd-a65e-47a6-bea6-ac2eade934f6:payload-matches:true:localhost] 2023-02-15 21:44:56 | [Mutex] received everything. 2023-02-15 21:44:56 | [Mutex] isItemNotified: retrieved:item:item-216d6dfd-a65e-47a6-bea6-ac2eade934f6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2023-02-15 21:44:56 |
2023-02-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:56 | ------------------------------------ 2023-02-15 21:44:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-02-15 21:44:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-0003020a-38d9-4c48-a067-9919d89e846b", "test", "node-41bd3a89-7b19-4566-a76d-70eaa9fd97b4" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-02-15 21:44:56 |
2023-02-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:56 | ------------------------------------ 2023-02-15 21:44:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0003020a-38d9-4c48-a067-9919d89e846b)" } 2023-02-15 21:44:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2023-02-15 21:44:55 |
2023-02-15 21:44:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:55 | ------------------------------------ 2023-02-15 21:44:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "jids": [ "admin@test-domain.com" ] } 2023-02-15 21:44:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2023-02-15 21:44:56 |
2023-02-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-15 21:44:56 | ------------------------------------ 2023-02-15 21:44:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0003020a-38d9-4c48-a067-9919d89e846b", "jids": [ "admin@test-domain.com" ] } 2023-02-15 21:44:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |