Test duration : 8.733s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2023-03-18 22:44:00 |
2023-03-18 22:44:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:00 | ------------------------------------ 2023-03-18 22:44:00 | [Mutex] waiting for: [configured:node:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:node-58ac1f63-644a-4646-94ba-278c820fa9e1] 2023-03-18 22:44:00 | [Mutex] received everything. 2023-03-18 22:44:00 | [Mutex] isItemNotified: configured:node:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:node-58ac1f63-644a-4646-94ba-278c820fa9e1 :: true 2023-03-18 22:44:01 | [Mutex] waiting for: [received:nodes:300dcf36-8abd-4ca9-acc4-38235e090cd4:localhost] 2023-03-18 22:44:01 | [Mutex] received everything. 2023-03-18 22:44:01 | [Mutex] isItemNotified: received:node:300dcf36-8abd-4ca9-acc4-38235e090cd4:localhost:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:Node 48e0bf5c-a20e-4762-82dc-63cce2f60ae4 :: true 2023-03-18 22:44:01 | [Mutex] waiting for: [received:nodes:803ad33b-c188-48c3-b458-5712638f6403:localhost] 2023-03-18 22:44:01 | [Mutex] received everything. 2023-03-18 22:44:01 | [Mutex] isItemNotified: received:node:803ad33b-c188-48c3-b458-5712638f6403:localhost:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:Node 48e0bf5c-a20e-4762-82dc-63cce2f60ae4 :: false |
createNodes | 1.693s |
2023-03-18 22:43:57 |
2023-03-18 22:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:43:57 | ------------------------------------ 2023-03-18 22:43:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "pubsub#title": "Node 48e0bf5c-a20e-4762-82dc-63cce2f60ae4" } 2023-03-18 22:43:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:43:59 | [Mutex] waiting for: [received:nodes:b961f1aa-3659-429f-9474-153dc28ba234:localhost] 2023-03-18 22:43:59 | [Mutex] waiting for: [received:nodes:b961f1aa-3659-429f-9474-153dc28ba234:localhost] 2023-03-18 22:43:59 | [Mutex] waiting for: [received:nodes:b961f1aa-3659-429f-9474-153dc28ba234:localhost] 2023-03-18 22:43:59 | [Mutex] waiting for: [received:nodes:b961f1aa-3659-429f-9474-153dc28ba234:localhost] 2023-03-18 22:43:59 | [Mutex] received everything. 2023-03-18 22:43:59 | [Mutex] isItemNotified: received:node:b961f1aa-3659-429f-9474-153dc28ba234:localhost:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:Node 48e0bf5c-a20e-4762-82dc-63cce2f60ae4 :: true |
createSubnodes | 1.028s |
2023-03-18 22:43:59 |
2023-03-18 22:43:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:43:59 | ------------------------------------ 2023-03-18 22:43:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-58ac1f63-644a-4646-94ba-278c820fa9e1", "pubsub#title": "Node 58ac1f63-644a-4646-94ba-278c820fa9e1" } 2023-03-18 22:43:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:44:00 | [Mutex] waiting for: [received:nodes:a17cdcfe-85f5-4a99-9b3a-9aebe16393a9:localhost] 2023-03-18 22:44:00 | [Mutex] waiting for: [received:nodes:a17cdcfe-85f5-4a99-9b3a-9aebe16393a9:localhost] 2023-03-18 22:44:00 | [Mutex] waiting for: [received:nodes:a17cdcfe-85f5-4a99-9b3a-9aebe16393a9:localhost] 2023-03-18 22:44:00 | [Mutex] waiting for: [received:nodes:a17cdcfe-85f5-4a99-9b3a-9aebe16393a9:localhost] 2023-03-18 22:44:00 | [Mutex] received everything. 2023-03-18 22:44:00 | [Mutex] isItemNotified: received:node:a17cdcfe-85f5-4a99-9b3a-9aebe16393a9:localhost:node-58ac1f63-644a-4646-94ba-278c820fa9e1:Node 58ac1f63-644a-4646-94ba-278c820fa9e1 :: true |
deleteNodes | 1.027s |
2023-03-18 22:44:04 |
2023-03-18 22:44:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:04 | ------------------------------------ 2023-03-18 22:44:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-58ac1f63-644a-4646-94ba-278c820fa9e1" } 2023-03-18 22:44:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:44:05 | [Mutex] waiting for: [received:nodes:85f54b28-fafb-4e12-a8fd-ab8e07a70965:localhost] 2023-03-18 22:44:05 | [Mutex] waiting for: [received:nodes:85f54b28-fafb-4e12-a8fd-ab8e07a70965:localhost] 2023-03-18 22:44:05 | [Mutex] waiting for: [received:nodes:85f54b28-fafb-4e12-a8fd-ab8e07a70965:localhost] 2023-03-18 22:44:05 | [Mutex] received everything. 2023-03-18 22:44:05 | [Mutex] isItemNotified: received:node:85f54b28-fafb-4e12-a8fd-ab8e07a70965:localhost:node-58ac1f63-644a-4646-94ba-278c820fa9e1:Node 58ac1f63-644a-4646-94ba-278c820fa9e1 :: false |
deleteSubnodes | 1.031s |
2023-03-18 22:44:03 |
2023-03-18 22:44:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:03 | ------------------------------------ 2023-03-18 22:44:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4" } 2023-03-18 22:44:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:44:04 | [Mutex] waiting for: [received:nodes:e497e3f6-2fe1-4c75-8625-2b8d2e36df71:localhost] 2023-03-18 22:44:04 | [Mutex] waiting for: [received:nodes:e497e3f6-2fe1-4c75-8625-2b8d2e36df71:localhost] 2023-03-18 22:44:04 | [Mutex] waiting for: [received:nodes:e497e3f6-2fe1-4c75-8625-2b8d2e36df71:localhost] 2023-03-18 22:44:04 | [Mutex] waiting for: [received:nodes:e497e3f6-2fe1-4c75-8625-2b8d2e36df71:localhost] 2023-03-18 22:44:04 | [Mutex] received everything. 2023-03-18 22:44:04 | [Mutex] isItemNotified: received:node:e497e3f6-2fe1-4c75-8625-2b8d2e36df71:localhost:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:Node 48e0bf5c-a20e-4762-82dc-63cce2f60ae4 :: false 2023-03-18 22:44:04 | [Mutex] waiting for: [received:nodes:313eb9c2-cb89-4ce7-8ea8-619026bd78d6:localhost] 2023-03-18 22:44:04 | [Mutex] received everything. 2023-03-18 22:44:04 | [Mutex] isItemNotified: received:node:313eb9c2-cb89-4ce7-8ea8-619026bd78d6:localhost:node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4:Node 48e0bf5c-a20e-4762-82dc-63cce2f60ae4 :: false |
publishItemsToNodes | 0.054s |
2023-03-18 22:44:02 |
2023-03-18 22:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:02 | ------------------------------------ 2023-03-18 22:44:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "entry": "<test>item-6ea6c220-fd91-4468-9cdb-7e43103701f0</test>", "item-id": "item-6ea6c220-fd91-4468-9cdb-7e43103701f0" } 2023-03-18 22:44:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6ea6c220-fd91-4468-9cdb-7e43103701f0" } 2023-03-18 22:44:02 | [Mutex] waiting for: [published:item:notifieditem-6ea6c220-fd91-4468-9cdb-7e43103701f0:admin@test-domain.com] 2023-03-18 22:44:02 | [Mutex] received everything. 2023-03-18 22:44:02 | [Mutex] isItemNotified: published:item:notifieditem-6ea6c220-fd91-4468-9cdb-7e43103701f0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2023-03-18 22:44:02 |
2023-03-18 22:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:02 | ------------------------------------ 2023-03-18 22:44:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "item-id": "item-6ea6c220-fd91-4468-9cdb-7e43103701f0" } 2023-03-18 22:44:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6ea6c220-fd91-4468-9cdb-7e43103701f0" } 2023-03-18 22:44:02 | [Mutex] received everything. 2023-03-18 22:44:02 | [Mutex] isItemNotified: retracted:item:notifieditem-6ea6c220-fd91-4468-9cdb-7e43103701f0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2023-03-18 22:44:02 |
2023-03-18 22:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:02 | ------------------------------------ 2023-03-18 22:44:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "item-id": "item-6ea6c220-fd91-4468-9cdb-7e43103701f0" } 2023-03-18 22:44:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "item-id": "item-6ea6c220-fd91-4468-9cdb-7e43103701f0", "item": [ "<item id=\"item-6ea6c220-fd91-4468-9cdb-7e43103701f0\"><test>item-6ea6c220-fd91-4468-9cdb-7e43103701f0</test></item>" ] } 2023-03-18 22:44:02 | [Mutex] notify: [retrieved:item:item-6ea6c220-fd91-4468-9cdb-7e43103701f0:payload-matches:true:localhost] 2023-03-18 22:44:02 | [Mutex] received everything. 2023-03-18 22:44:02 | [Mutex] isItemNotified: retrieved:item:item-6ea6c220-fd91-4468-9cdb-7e43103701f0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-03-18 22:44:02 |
2023-03-18 22:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:02 | ------------------------------------ 2023-03-18 22:44:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-18 22:44:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "node-58ac1f63-644a-4646-94ba-278c820fa9e1" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-03-18 22:44:02 |
2023-03-18 22:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:02 | ------------------------------------ 2023-03-18 22:44:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4)" } 2023-03-18 22:44:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2023-03-18 22:44:01 |
2023-03-18 22:44:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:01 | ------------------------------------ 2023-03-18 22:44:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "jids": [ "admin@test-domain.com" ] } 2023-03-18 22:44:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.086s |
2023-03-18 22:44:02 |
2023-03-18 22:44:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:44:02 | ------------------------------------ 2023-03-18 22:44:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-48e0bf5c-a20e-4762-82dc-63cce2f60ae4", "jids": [ "admin@test-domain.com" ] } 2023-03-18 22:44:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |