Test duration : 8.547s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2023-07-06 23:00:48 |
2023-07-06 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:48 | ------------------------------------ 2023-07-06 23:00:48 | [Mutex] waiting for: [configured:node:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f] 2023-07-06 23:00:48 | [Mutex] received everything. 2023-07-06 23:00:48 | [Mutex] isItemNotified: configured:node:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f :: true 2023-07-06 23:00:49 | [Mutex] waiting for: [received:nodes:8b73017b-b5a1-41d3-aa77-45f2ff429e6f:localhost] 2023-07-06 23:00:49 | [Mutex] received everything. 2023-07-06 23:00:49 | [Mutex] isItemNotified: received:node:8b73017b-b5a1-41d3-aa77-45f2ff429e6f:localhost:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:Node 00e02f96-7662-4860-ab18-ac3cee1a7afa :: true 2023-07-06 23:00:49 | [Mutex] waiting for: [received:nodes:0caf5f47-634f-4759-a9d1-aaac5fcd5a61:localhost] 2023-07-06 23:00:49 | [Mutex] waiting for: [received:nodes:0caf5f47-634f-4759-a9d1-aaac5fcd5a61:localhost] 2023-07-06 23:00:49 | [Mutex] waiting for: [received:nodes:0caf5f47-634f-4759-a9d1-aaac5fcd5a61:localhost] 2023-07-06 23:00:49 | [Mutex] waiting for: [received:nodes:0caf5f47-634f-4759-a9d1-aaac5fcd5a61:localhost] 2023-07-06 23:00:49 | [Mutex] received everything. 2023-07-06 23:00:49 | [Mutex] isItemNotified: received:node:0caf5f47-634f-4759-a9d1-aaac5fcd5a61:localhost:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:Node 00e02f96-7662-4860-ab18-ac3cee1a7afa :: false |
createNodes | 1.597s |
2023-07-06 23:00:45 |
2023-07-06 23:00:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:45 | ------------------------------------ 2023-07-06 23:00:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "pubsub#title": "Node 00e02f96-7662-4860-ab18-ac3cee1a7afa" } 2023-07-06 23:00:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 23:00:47 | [Mutex] waiting for: [received:nodes:654689cf-33f8-430f-867d-7bc6cf52126b:localhost] 2023-07-06 23:00:47 | [Mutex] waiting for: [received:nodes:654689cf-33f8-430f-867d-7bc6cf52126b:localhost] 2023-07-06 23:00:47 | [Mutex] waiting for: [received:nodes:654689cf-33f8-430f-867d-7bc6cf52126b:localhost] 2023-07-06 23:00:47 | [Mutex] received everything. 2023-07-06 23:00:47 | [Mutex] isItemNotified: received:node:654689cf-33f8-430f-867d-7bc6cf52126b:localhost:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:Node 00e02f96-7662-4860-ab18-ac3cee1a7afa :: true |
createSubnodes | 1.027s |
2023-07-06 23:00:47 |
2023-07-06 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:47 | ------------------------------------ 2023-07-06 23:00:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f", "pubsub#title": "Node 46f54e7b-b939-4d4e-8ace-705cc2d90c2f" } 2023-07-06 23:00:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 23:00:48 | [Mutex] waiting for: [received:nodes:0b0b1223-85c4-43bf-a631-21ad88fd80b7:localhost] 2023-07-06 23:00:48 | [Mutex] waiting for: [received:nodes:0b0b1223-85c4-43bf-a631-21ad88fd80b7:localhost] 2023-07-06 23:00:48 | [Mutex] waiting for: [received:nodes:0b0b1223-85c4-43bf-a631-21ad88fd80b7:localhost] 2023-07-06 23:00:48 | [Mutex] waiting for: [received:nodes:0b0b1223-85c4-43bf-a631-21ad88fd80b7:localhost] 2023-07-06 23:00:48 | [Mutex] waiting for: [received:nodes:0b0b1223-85c4-43bf-a631-21ad88fd80b7:localhost] 2023-07-06 23:00:48 | [Mutex] received everything. 2023-07-06 23:00:48 | [Mutex] isItemNotified: received:node:0b0b1223-85c4-43bf-a631-21ad88fd80b7:localhost:node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f:Node 46f54e7b-b939-4d4e-8ace-705cc2d90c2f :: true |
deleteNodes | 1.022s |
2023-07-06 23:00:52 |
2023-07-06 23:00:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:52 | ------------------------------------ 2023-07-06 23:00:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f" } 2023-07-06 23:00:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 23:00:53 | [Mutex] waiting for: [received:nodes:f7db82f9-94d4-4183-adef-7965b4a50ee6:localhost] 2023-07-06 23:00:53 | [Mutex] waiting for: [received:nodes:f7db82f9-94d4-4183-adef-7965b4a50ee6:localhost] 2023-07-06 23:00:53 | [Mutex] received everything. 2023-07-06 23:00:53 | [Mutex] isItemNotified: received:node:f7db82f9-94d4-4183-adef-7965b4a50ee6:localhost:node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f:Node 46f54e7b-b939-4d4e-8ace-705cc2d90c2f :: false |
deleteSubnodes | 1.023s |
2023-07-06 23:00:51 |
2023-07-06 23:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:51 | ------------------------------------ 2023-07-06 23:00:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa" } 2023-07-06 23:00:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 23:00:52 | [Mutex] waiting for: [received:nodes:3be0f0e3-415d-41f6-92ff-33a411d17f0d:localhost] 2023-07-06 23:00:52 | [Mutex] waiting for: [received:nodes:3be0f0e3-415d-41f6-92ff-33a411d17f0d:localhost] 2023-07-06 23:00:52 | [Mutex] waiting for: [received:nodes:3be0f0e3-415d-41f6-92ff-33a411d17f0d:localhost] 2023-07-06 23:00:52 | [Mutex] received everything. 2023-07-06 23:00:52 | [Mutex] isItemNotified: received:node:3be0f0e3-415d-41f6-92ff-33a411d17f0d:localhost:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:Node 00e02f96-7662-4860-ab18-ac3cee1a7afa :: false 2023-07-06 23:00:52 | [Mutex] waiting for: [received:nodes:d6abacc2-ffbe-4ecc-a879-3220cb907f86:localhost] 2023-07-06 23:00:52 | [Mutex] received everything. 2023-07-06 23:00:52 | [Mutex] isItemNotified: received:node:d6abacc2-ffbe-4ecc-a879-3220cb907f86:localhost:node-00e02f96-7662-4860-ab18-ac3cee1a7afa:Node 00e02f96-7662-4860-ab18-ac3cee1a7afa :: false |
publishItemsToNodes | 0.046s |
2023-07-06 23:00:50 |
2023-07-06 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:50 | ------------------------------------ 2023-07-06 23:00:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "entry": "<test>item-e502619e-2475-44bd-84de-9db81271a70c</test>", "item-id": "item-e502619e-2475-44bd-84de-9db81271a70c" } 2023-07-06 23:00:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e502619e-2475-44bd-84de-9db81271a70c" } 2023-07-06 23:00:50 | [Mutex] waiting for: [published:item:notifieditem-e502619e-2475-44bd-84de-9db81271a70c:admin@test-domain.com] 2023-07-06 23:00:50 | [Mutex] received everything. 2023-07-06 23:00:50 | [Mutex] isItemNotified: published:item:notifieditem-e502619e-2475-44bd-84de-9db81271a70c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.058s |
2023-07-06 23:00:50 |
2023-07-06 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:50 | ------------------------------------ 2023-07-06 23:00:50 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "item-id": "item-e502619e-2475-44bd-84de-9db81271a70c" } 2023-07-06 23:00:50 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e502619e-2475-44bd-84de-9db81271a70c" } 2023-07-06 23:00:50 | [Mutex] waiting for: [retracted:item:notifieditem-e502619e-2475-44bd-84de-9db81271a70c:admin@test-domain.com] 2023-07-06 23:00:50 | [Mutex] received everything. 2023-07-06 23:00:50 | [Mutex] isItemNotified: retracted:item:notifieditem-e502619e-2475-44bd-84de-9db81271a70c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.078s |
2023-07-06 23:00:50 |
2023-07-06 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:50 | ------------------------------------ 2023-07-06 23:00:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "item-id": "item-e502619e-2475-44bd-84de-9db81271a70c" } 2023-07-06 23:00:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "item-id": "item-e502619e-2475-44bd-84de-9db81271a70c", "item": [ "<item id=\"item-e502619e-2475-44bd-84de-9db81271a70c\"><test>item-e502619e-2475-44bd-84de-9db81271a70c</test></item>" ] } 2023-07-06 23:00:50 | [Mutex] notify: [retrieved:item:item-e502619e-2475-44bd-84de-9db81271a70c:payload-matches:true:localhost] 2023-07-06 23:00:50 | [Mutex] received everything. 2023-07-06 23:00:50 | [Mutex] isItemNotified: retrieved:item:item-e502619e-2475-44bd-84de-9db81271a70c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-07-06 23:00:50 |
2023-07-06 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:50 | ------------------------------------ 2023-07-06 23:00:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-06 23:00:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "node-46f54e7b-b939-4d4e-8ace-705cc2d90c2f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-07-06 23:00:50 |
2023-07-06 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:50 | ------------------------------------ 2023-07-06 23:00:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-00e02f96-7662-4860-ab18-ac3cee1a7afa)" } 2023-07-06 23:00:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-07-06 23:00:49 |
2023-07-06 23:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:49 | ------------------------------------ 2023-07-06 23:00:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "jids": [ "admin@test-domain.com" ] } 2023-07-06 23:00:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.048s |
2023-07-06 23:00:50 |
2023-07-06 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 23:00:50 | ------------------------------------ 2023-07-06 23:00:50 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-00e02f96-7662-4860-ab18-ac3cee1a7afa", "jids": [ "admin@test-domain.com" ] } 2023-07-06 23:00:50 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |