Test duration : 9.086s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2021-09-19 22:56:11 |
2021-09-19 22:56:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:11 | ------------------------------------ 2021-09-19 22:56:11 | [Mutex] waiting for: [configured:node:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:node-cf03925b-4069-473c-b8d2-4a360558bafc] 2021-09-19 22:56:11 | [Mutex] received everything. 2021-09-19 22:56:11 | [Mutex] isItemNotified: configured:node:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:node-cf03925b-4069-473c-b8d2-4a360558bafc :: true 2021-09-19 22:56:12 | [Mutex] waiting for: [received:nodes:4a686be6-8543-4c28-8a9b-d1f994b11db8:localhost] 2021-09-19 22:56:12 | [Mutex] waiting for: [received:nodes:4a686be6-8543-4c28-8a9b-d1f994b11db8:localhost] 2021-09-19 22:56:12 | [Mutex] received everything. 2021-09-19 22:56:12 | [Mutex] isItemNotified: received:node:4a686be6-8543-4c28-8a9b-d1f994b11db8:localhost:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:Node 11796c1b-e993-4697-8cb2-5e3938ac6c86 :: true 2021-09-19 22:56:12 | [Mutex] waiting for: [received:nodes:817a4e92-1153-40d9-a772-eb1d12e77398:localhost] 2021-09-19 22:56:12 | [Mutex] received everything. 2021-09-19 22:56:12 | [Mutex] isItemNotified: received:node:817a4e92-1153-40d9-a772-eb1d12e77398:localhost:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:Node 11796c1b-e993-4697-8cb2-5e3938ac6c86 :: false |
createNodes | 1.754s |
2021-09-19 22:56:08 |
2021-09-19 22:56:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:08 | ------------------------------------ 2021-09-19 22:56: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-11796c1b-e993-4697-8cb2-5e3938ac6c86", "pubsub#title": "Node 11796c1b-e993-4697-8cb2-5e3938ac6c86" } 2021-09-19 22:56:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:56:10 | [Mutex] waiting for: [received:nodes:6bf1cf56-b437-4f63-bd77-17cb3301475f:localhost] 2021-09-19 22:56:10 | [Mutex] waiting for: [received:nodes:6bf1cf56-b437-4f63-bd77-17cb3301475f:localhost] 2021-09-19 22:56:10 | [Mutex] waiting for: [received:nodes:6bf1cf56-b437-4f63-bd77-17cb3301475f:localhost] 2021-09-19 22:56:10 | [Mutex] received everything. 2021-09-19 22:56:10 | [Mutex] isItemNotified: received:node:6bf1cf56-b437-4f63-bd77-17cb3301475f:localhost:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:Node 11796c1b-e993-4697-8cb2-5e3938ac6c86 :: true |
createSubnodes | 1.027s |
2021-09-19 22:56:10 |
2021-09-19 22:56:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:10 | ------------------------------------ 2021-09-19 22:56:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-cf03925b-4069-473c-b8d2-4a360558bafc", "pubsub#title": "Node cf03925b-4069-473c-b8d2-4a360558bafc" } 2021-09-19 22:56:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:56:11 | [Mutex] waiting for: [received:nodes:3b21fc44-7621-43ea-98e1-1a0bdcdc5b3f:localhost] 2021-09-19 22:56:11 | [Mutex] waiting for: [received:nodes:3b21fc44-7621-43ea-98e1-1a0bdcdc5b3f:localhost] 2021-09-19 22:56:11 | [Mutex] received everything. 2021-09-19 22:56:11 | [Mutex] isItemNotified: received:node:3b21fc44-7621-43ea-98e1-1a0bdcdc5b3f:localhost:node-cf03925b-4069-473c-b8d2-4a360558bafc:Node cf03925b-4069-473c-b8d2-4a360558bafc :: true |
deleteNodes | 1.026s |
2021-09-19 22:56:16 |
2021-09-19 22:56:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:16 | ------------------------------------ 2021-09-19 22:56:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cf03925b-4069-473c-b8d2-4a360558bafc" } 2021-09-19 22:56:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:56:17 | [Mutex] waiting for: [received:nodes:81aa2417-40c0-41c5-9290-4fdc1123af12:localhost] 2021-09-19 22:56:17 | [Mutex] received everything. 2021-09-19 22:56:17 | [Mutex] isItemNotified: received:node:81aa2417-40c0-41c5-9290-4fdc1123af12:localhost:node-cf03925b-4069-473c-b8d2-4a360558bafc:Node cf03925b-4069-473c-b8d2-4a360558bafc :: false |
deleteSubnodes | 1.026s |
2021-09-19 22:56:15 |
2021-09-19 22:56:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:15 | ------------------------------------ 2021-09-19 22:56:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86" } 2021-09-19 22:56:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:56:16 | [Mutex] waiting for: [received:nodes:6a9b75e5-b14e-411c-aa5f-c143dd58c292:localhost] 2021-09-19 22:56:16 | [Mutex] received everything. 2021-09-19 22:56:16 | [Mutex] isItemNotified: received:node:6a9b75e5-b14e-411c-aa5f-c143dd58c292:localhost:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:Node 11796c1b-e993-4697-8cb2-5e3938ac6c86 :: false 2021-09-19 22:56:16 | [Mutex] waiting for: [received:nodes:f64800aa-c391-40a7-a467-39dcd3baec49:localhost] 2021-09-19 22:56:16 | [Mutex] received everything. 2021-09-19 22:56:16 | [Mutex] isItemNotified: received:node:f64800aa-c391-40a7-a467-39dcd3baec49:localhost:node-11796c1b-e993-4697-8cb2-5e3938ac6c86:Node 11796c1b-e993-4697-8cb2-5e3938ac6c86 :: false |
publishItemsToNodes | 0.042s |
2021-09-19 22:56:13 |
2021-09-19 22:56:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:13 | ------------------------------------ 2021-09-19 22:56:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "entry": "<test>item-35f406dc-c5b1-4a60-9976-34c1641b646f</test>", "item-id": "item-35f406dc-c5b1-4a60-9976-34c1641b646f" } 2021-09-19 22:56:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-35f406dc-c5b1-4a60-9976-34c1641b646f" } 2021-09-19 22:56:13 | [Mutex] waiting for: [published:item:notifieditem-35f406dc-c5b1-4a60-9976-34c1641b646f:admin@test-domain.com] 2021-09-19 22:56:13 | [Mutex] received everything. 2021-09-19 22:56:13 | [Mutex] isItemNotified: published:item:notifieditem-35f406dc-c5b1-4a60-9976-34c1641b646f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2021-09-19 22:56:13 |
2021-09-19 22:56:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:13 | ------------------------------------ 2021-09-19 22:56:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "item-id": "item-35f406dc-c5b1-4a60-9976-34c1641b646f" } 2021-09-19 22:56:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-35f406dc-c5b1-4a60-9976-34c1641b646f" } 2021-09-19 22:56:13 | [Mutex] received everything. 2021-09-19 22:56:13 | [Mutex] isItemNotified: retracted:item:notifieditem-35f406dc-c5b1-4a60-9976-34c1641b646f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.080s |
2021-09-19 22:56:13 |
2021-09-19 22:56:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:13 | ------------------------------------ 2021-09-19 22:56:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "item-id": "item-35f406dc-c5b1-4a60-9976-34c1641b646f" } 2021-09-19 22:56:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "item-id": "item-35f406dc-c5b1-4a60-9976-34c1641b646f", "item": [ "<item id=\"item-35f406dc-c5b1-4a60-9976-34c1641b646f\"><test>item-35f406dc-c5b1-4a60-9976-34c1641b646f</test></item>" ] } 2021-09-19 22:56:13 | [Mutex] notify: [retrieved:item:item-35f406dc-c5b1-4a60-9976-34c1641b646f:payload-matches:true:localhost] 2021-09-19 22:56:13 | [Mutex] received everything. 2021-09-19 22:56:13 | [Mutex] isItemNotified: retrieved:item:item-35f406dc-c5b1-4a60-9976-34c1641b646f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-09-19 22:56:13 |
2021-09-19 22:56:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:13 | ------------------------------------ 2021-09-19 22:56:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-19 22:56:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "node-cf03925b-4069-473c-b8d2-4a360558bafc" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-19 22:56:13 |
2021-09-19 22:56:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:13 | ------------------------------------ 2021-09-19 22:56:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-11796c1b-e993-4697-8cb2-5e3938ac6c86)" } 2021-09-19 22:56:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-09-19 22:56:12 |
2021-09-19 22:56:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:12 | ------------------------------------ 2021-09-19 22:56:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "jids": [ "admin@test-domain.com" ] } 2021-09-19 22:56:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.107s |
2021-09-19 22:56:13 |
2021-09-19 22:56:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:56:13 | ------------------------------------ 2021-09-19 22:56:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-11796c1b-e993-4697-8cb2-5e3938ac6c86", "jids": [ "admin@test-domain.com" ] } 2021-09-19 22:56:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |