Test duration : 8.969s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2021-02-23 21:28:12 |
2021-02-23 21:28:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:12 | ------------------------------------ 2021-02-23 21:28:12 | [Mutex] waiting for: [configured:node:node-98ed8951-a689-4073-8027-f18c16045a9c:node-f78de1e7-e263-4d48-968b-989fe1501847] 2021-02-23 21:28:12 | [Mutex] received everything. 2021-02-23 21:28:12 | [Mutex] isItemNotified: configured:node:node-98ed8951-a689-4073-8027-f18c16045a9c:node-f78de1e7-e263-4d48-968b-989fe1501847 :: true 2021-02-23 21:28:13 | [Mutex] waiting for: [received:nodes:7539cc07-562d-4eaa-ba2f-a15845b1d635:localhost] 2021-02-23 21:28:13 | [Mutex] received everything. 2021-02-23 21:28:13 | [Mutex] isItemNotified: received:node:7539cc07-562d-4eaa-ba2f-a15845b1d635:localhost:node-98ed8951-a689-4073-8027-f18c16045a9c:Node 98ed8951-a689-4073-8027-f18c16045a9c :: true 2021-02-23 21:28:13 | [Mutex] waiting for: [received:nodes:9d64bfe4-8de4-4eae-bf5f-4d073212e59f:localhost] 2021-02-23 21:28:13 | [Mutex] received everything. 2021-02-23 21:28:13 | [Mutex] isItemNotified: received:node:9d64bfe4-8de4-4eae-bf5f-4d073212e59f:localhost:node-98ed8951-a689-4073-8027-f18c16045a9c:Node 98ed8951-a689-4073-8027-f18c16045a9c :: false |
createNodes | 1.542s |
2021-02-23 21:28:09 |
2021-02-23 21:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:09 | ------------------------------------ 2021-02-23 21:28:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "pubsub#title": "Node 98ed8951-a689-4073-8027-f18c16045a9c" } 2021-02-23 21:28:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:28:11 | [Mutex] waiting for: [received:nodes:842ff914-acbc-427b-8223-17134a3c3b7b:localhost] 2021-02-23 21:28:11 | [Mutex] waiting for: [received:nodes:842ff914-acbc-427b-8223-17134a3c3b7b:localhost] 2021-02-23 21:28:11 | [Mutex] received everything. 2021-02-23 21:28:11 | [Mutex] isItemNotified: received:node:842ff914-acbc-427b-8223-17134a3c3b7b:localhost:node-98ed8951-a689-4073-8027-f18c16045a9c:Node 98ed8951-a689-4073-8027-f18c16045a9c :: true |
createSubnodes | 1.025s |
2021-02-23 21:28:11 |
2021-02-23 21:28:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:11 | ------------------------------------ 2021-02-23 21:28:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f78de1e7-e263-4d48-968b-989fe1501847", "pubsub#title": "Node f78de1e7-e263-4d48-968b-989fe1501847" } 2021-02-23 21:28:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:28:12 | [Mutex] waiting for: [received:nodes:65b9342f-da4b-42eb-8b65-c9fe0263799f:localhost] 2021-02-23 21:28:12 | [Mutex] received everything. 2021-02-23 21:28:12 | [Mutex] isItemNotified: received:node:65b9342f-da4b-42eb-8b65-c9fe0263799f:localhost:node-f78de1e7-e263-4d48-968b-989fe1501847:Node f78de1e7-e263-4d48-968b-989fe1501847 :: true |
deleteNodes | 1.030s |
2021-02-23 21:28:16 |
2021-02-23 21:28:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:16 | ------------------------------------ 2021-02-23 21:28:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f78de1e7-e263-4d48-968b-989fe1501847" } 2021-02-23 21:28:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:28:17 | [Mutex] waiting for: [received:nodes:0978e9c5-0898-45b9-9a35-17add55edce8:localhost] 2021-02-23 21:28:17 | [Mutex] waiting for: [received:nodes:0978e9c5-0898-45b9-9a35-17add55edce8:localhost] 2021-02-23 21:28:17 | [Mutex] received everything. 2021-02-23 21:28:17 | [Mutex] isItemNotified: received:node:0978e9c5-0898-45b9-9a35-17add55edce8:localhost:node-f78de1e7-e263-4d48-968b-989fe1501847:Node f78de1e7-e263-4d48-968b-989fe1501847 :: false |
deleteSubnodes | 1.026s |
2021-02-23 21:28:15 |
2021-02-23 21:28:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:15 | ------------------------------------ 2021-02-23 21:28:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-98ed8951-a689-4073-8027-f18c16045a9c" } 2021-02-23 21:28:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:28:16 | [Mutex] waiting for: [received:nodes:e60129a3-0791-422e-9673-d7df4d923387:localhost] 2021-02-23 21:28:16 | [Mutex] received everything. 2021-02-23 21:28:16 | [Mutex] isItemNotified: received:node:e60129a3-0791-422e-9673-d7df4d923387:localhost:node-98ed8951-a689-4073-8027-f18c16045a9c:Node 98ed8951-a689-4073-8027-f18c16045a9c :: false 2021-02-23 21:28:16 | [Mutex] waiting for: [received:nodes:8ab9f706-db93-4ebb-80d9-fab47e5551a5:localhost] 2021-02-23 21:28:16 | [Mutex] received everything. 2021-02-23 21:28:16 | [Mutex] isItemNotified: received:node:8ab9f706-db93-4ebb-80d9-fab47e5551a5:localhost:node-98ed8951-a689-4073-8027-f18c16045a9c:Node 98ed8951-a689-4073-8027-f18c16045a9c :: false |
publishItemsToNodes | 0.086s |
2021-02-23 21:28:14 |
2021-02-23 21:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:14 | ------------------------------------ 2021-02-23 21:28:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "entry": "<test>item-47d0f4fc-7813-4ed7-a63b-c90813b96038</test>", "item-id": "item-47d0f4fc-7813-4ed7-a63b-c90813b96038" } 2021-02-23 21:28:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-47d0f4fc-7813-4ed7-a63b-c90813b96038" } 2021-02-23 21:28:14 | [Mutex] waiting for: [published:item:notifieditem-47d0f4fc-7813-4ed7-a63b-c90813b96038:admin@test-domain.com] 2021-02-23 21:28:14 | [Mutex] received everything. 2021-02-23 21:28:14 | [Mutex] isItemNotified: published:item:notifieditem-47d0f4fc-7813-4ed7-a63b-c90813b96038:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-02-23 21:28:14 |
2021-02-23 21:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:14 | ------------------------------------ 2021-02-23 21:28:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "item-id": "item-47d0f4fc-7813-4ed7-a63b-c90813b96038" } 2021-02-23 21:28:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-47d0f4fc-7813-4ed7-a63b-c90813b96038" } 2021-02-23 21:28:14 | [Mutex] received everything. 2021-02-23 21:28:14 | [Mutex] isItemNotified: retracted:item:notifieditem-47d0f4fc-7813-4ed7-a63b-c90813b96038:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2021-02-23 21:28:14 |
2021-02-23 21:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:14 | ------------------------------------ 2021-02-23 21:28:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "item-id": "item-47d0f4fc-7813-4ed7-a63b-c90813b96038" } 2021-02-23 21:28:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "item-id": "item-47d0f4fc-7813-4ed7-a63b-c90813b96038", "item": [ "<item id=\"item-47d0f4fc-7813-4ed7-a63b-c90813b96038\"><test>item-47d0f4fc-7813-4ed7-a63b-c90813b96038</test></item>" ] } 2021-02-23 21:28:14 | [Mutex] notify: [retrieved:item:item-47d0f4fc-7813-4ed7-a63b-c90813b96038:payload-matches:true:localhost] 2021-02-23 21:28:14 | [Mutex] received everything. 2021-02-23 21:28:14 | [Mutex] isItemNotified: retrieved:item:item-47d0f4fc-7813-4ed7-a63b-c90813b96038:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.074s |
2021-02-23 21:28:14 |
2021-02-23 21:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:14 | ------------------------------------ 2021-02-23 21:28:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-23 21:28:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f78de1e7-e263-4d48-968b-989fe1501847", "test", "node-98ed8951-a689-4073-8027-f18c16045a9c" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-02-23 21:28:14 |
2021-02-23 21:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:14 | ------------------------------------ 2021-02-23 21:28:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-98ed8951-a689-4073-8027-f18c16045a9c)" } 2021-02-23 21:28:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-02-23 21:28:13 |
2021-02-23 21:28:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:13 | ------------------------------------ 2021-02-23 21:28:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "jids": [ "admin@test-domain.com" ] } 2021-02-23 21:28:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2021-02-23 21:28:14 |
2021-02-23 21:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:28:14 | ------------------------------------ 2021-02-23 21:28:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-98ed8951-a689-4073-8027-f18c16045a9c", "jids": [ "admin@test-domain.com" ] } 2021-02-23 21:28:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |