Test duration : 9.125s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2022-02-03 21:49:57 |
2022-02-03 21:49:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:57 | ------------------------------------ 2022-02-03 21:49:57 | [Mutex] waiting for: [configured:node:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:node-9ec7228a-e8ee-40ef-9213-df7ff56546f1] 2022-02-03 21:49:57 | [Mutex] received everything. 2022-02-03 21:49:57 | [Mutex] isItemNotified: configured:node:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:node-9ec7228a-e8ee-40ef-9213-df7ff56546f1 :: true 2022-02-03 21:49:58 | [Mutex] waiting for: [received:nodes:443ce451-c29d-443a-b079-e0dd46a8bdf6:localhost] 2022-02-03 21:49:58 | [Mutex] received everything. 2022-02-03 21:49:58 | [Mutex] isItemNotified: received:node:443ce451-c29d-443a-b079-e0dd46a8bdf6:localhost:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:Node 917b67f8-f497-41fc-9eb2-802e7249a6fd :: true 2022-02-03 21:49:58 | [Mutex] waiting for: [received:nodes:73170150-2bd6-4cca-9b99-c6466d53824a:localhost] 2022-02-03 21:49:58 | [Mutex] received everything. 2022-02-03 21:49:58 | [Mutex] isItemNotified: received:node:73170150-2bd6-4cca-9b99-c6466d53824a:localhost:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:Node 917b67f8-f497-41fc-9eb2-802e7249a6fd :: false |
createNodes | 1.721s |
2022-02-03 21:49:54 |
2022-02-03 21:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:54 | ------------------------------------ 2022-02-03 21:49: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-917b67f8-f497-41fc-9eb2-802e7249a6fd", "pubsub#title": "Node 917b67f8-f497-41fc-9eb2-802e7249a6fd" } 2022-02-03 21:49:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:49:56 | [Mutex] waiting for: [received:nodes:fa86181d-208b-4e4a-a0c0-3660b3d53bb7:localhost] 2022-02-03 21:49:56 | [Mutex] received everything. 2022-02-03 21:49:56 | [Mutex] isItemNotified: received:node:fa86181d-208b-4e4a-a0c0-3660b3d53bb7:localhost:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:Node 917b67f8-f497-41fc-9eb2-802e7249a6fd :: true |
createSubnodes | 1.033s |
2022-02-03 21:49:56 |
2022-02-03 21:49:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:56 | ------------------------------------ 2022-02-03 21:49: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-9ec7228a-e8ee-40ef-9213-df7ff56546f1", "pubsub#title": "Node 9ec7228a-e8ee-40ef-9213-df7ff56546f1" } 2022-02-03 21:49:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:49:57 | [Mutex] waiting for: [received:nodes:92ffa89e-ae2f-429c-af4a-51e7736188fc:localhost] 2022-02-03 21:49:57 | [Mutex] received everything. 2022-02-03 21:49:57 | [Mutex] isItemNotified: received:node:92ffa89e-ae2f-429c-af4a-51e7736188fc:localhost:node-9ec7228a-e8ee-40ef-9213-df7ff56546f1:Node 9ec7228a-e8ee-40ef-9213-df7ff56546f1 :: true |
deleteNodes | 1.033s |
2022-02-03 21:50:01 |
2022-02-03 21:50:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:50:01 | ------------------------------------ 2022-02-03 21:50:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9ec7228a-e8ee-40ef-9213-df7ff56546f1" } 2022-02-03 21:50:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:50:02 | [Mutex] waiting for: [received:nodes:fe25df7f-d3b2-47c4-ac22-34dfa1e60db5:localhost] 2022-02-03 21:50:02 | [Mutex] received everything. 2022-02-03 21:50:02 | [Mutex] isItemNotified: received:node:fe25df7f-d3b2-47c4-ac22-34dfa1e60db5:localhost:node-9ec7228a-e8ee-40ef-9213-df7ff56546f1:Node 9ec7228a-e8ee-40ef-9213-df7ff56546f1 :: false |
deleteSubnodes | 1.046s |
2022-02-03 21:50:00 |
2022-02-03 21:50:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:50:00 | ------------------------------------ 2022-02-03 21:50:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd" } 2022-02-03 21:50:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:50:01 | [Mutex] waiting for: [received:nodes:573237bf-6e2a-4952-80a1-2d8e073ad036:localhost] 2022-02-03 21:50:01 | [Mutex] received everything. 2022-02-03 21:50:01 | [Mutex] isItemNotified: received:node:573237bf-6e2a-4952-80a1-2d8e073ad036:localhost:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:Node 917b67f8-f497-41fc-9eb2-802e7249a6fd :: false 2022-02-03 21:50:01 | [Mutex] waiting for: [received:nodes:31996ed8-9a50-4497-91e5-92c7194d1e1a:localhost] 2022-02-03 21:50:01 | [Mutex] received everything. 2022-02-03 21:50:01 | [Mutex] isItemNotified: received:node:31996ed8-9a50-4497-91e5-92c7194d1e1a:localhost:node-917b67f8-f497-41fc-9eb2-802e7249a6fd:Node 917b67f8-f497-41fc-9eb2-802e7249a6fd :: false |
publishItemsToNodes | 0.047s |
2022-02-03 21:49:59 |
2022-02-03 21:49:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:59 | ------------------------------------ 2022-02-03 21:49:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "entry": "<test>item-07a10ea3-9e13-4e29-86fd-45480cf80115</test>", "item-id": "item-07a10ea3-9e13-4e29-86fd-45480cf80115" } 2022-02-03 21:49:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-07a10ea3-9e13-4e29-86fd-45480cf80115" } 2022-02-03 21:49:59 | [Mutex] waiting for: [published:item:notifieditem-07a10ea3-9e13-4e29-86fd-45480cf80115:admin@test-domain.com] 2022-02-03 21:49:59 | [Mutex] received everything. 2022-02-03 21:49:59 | [Mutex] isItemNotified: published:item:notifieditem-07a10ea3-9e13-4e29-86fd-45480cf80115:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2022-02-03 21:49:59 |
2022-02-03 21:49:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:59 | ------------------------------------ 2022-02-03 21:49:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "item-id": "item-07a10ea3-9e13-4e29-86fd-45480cf80115" } 2022-02-03 21:49:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-07a10ea3-9e13-4e29-86fd-45480cf80115" } 2022-02-03 21:49:59 | [Mutex] received everything. 2022-02-03 21:49:59 | [Mutex] isItemNotified: retracted:item:notifieditem-07a10ea3-9e13-4e29-86fd-45480cf80115:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.077s |
2022-02-03 21:49:59 |
2022-02-03 21:49:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:59 | ------------------------------------ 2022-02-03 21:49:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "item-id": "item-07a10ea3-9e13-4e29-86fd-45480cf80115" } 2022-02-03 21:49:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "item-id": "item-07a10ea3-9e13-4e29-86fd-45480cf80115", "item": [ "<item id=\"item-07a10ea3-9e13-4e29-86fd-45480cf80115\"><test>item-07a10ea3-9e13-4e29-86fd-45480cf80115</test></item>" ] } 2022-02-03 21:49:59 | [Mutex] notify: [retrieved:item:item-07a10ea3-9e13-4e29-86fd-45480cf80115:payload-matches:true:localhost] 2022-02-03 21:49:59 | [Mutex] received everything. 2022-02-03 21:49:59 | [Mutex] isItemNotified: retrieved:item:item-07a10ea3-9e13-4e29-86fd-45480cf80115:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.095s |
2022-02-03 21:49:59 |
2022-02-03 21:49:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:59 | ------------------------------------ 2022-02-03 21:49:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-03 21:49:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "node-9ec7228a-e8ee-40ef-9213-df7ff56546f1" ] } |
retrieveUserSubscriptionsWithRegex | 0.059s |
2022-02-03 21:49:59 |
2022-02-03 21:49:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:59 | ------------------------------------ 2022-02-03 21:49:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-917b67f8-f497-41fc-9eb2-802e7249a6fd)" } 2022-02-03 21:49:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-03 21:49:58 |
2022-02-03 21:49:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:58 | ------------------------------------ 2022-02-03 21:49:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "jids": [ "admin@test-domain.com" ] } 2022-02-03 21:49:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-02-03 21:49:59 |
2022-02-03 21:49:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:49:59 | ------------------------------------ 2022-02-03 21:49:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-917b67f8-f497-41fc-9eb2-802e7249a6fd", "jids": [ "admin@test-domain.com" ] } 2022-02-03 21:49:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |