Test duration : 8.754s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-05-15 23:14:48 |
2022-05-15 23:14:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:48 | ------------------------------------ 2022-05-15 23:14:48 | [Mutex] waiting for: [configured:node:node-7981d359-b505-40c8-a00b-382da53507df:node-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a] 2022-05-15 23:14:48 | [Mutex] received everything. 2022-05-15 23:14:48 | [Mutex] isItemNotified: configured:node:node-7981d359-b505-40c8-a00b-382da53507df:node-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a :: true 2022-05-15 23:14:49 | [Mutex] waiting for: [received:nodes:2bbec86b-5108-4139-a471-25f14d174fcb:localhost] 2022-05-15 23:14:49 | [Mutex] received everything. 2022-05-15 23:14:49 | [Mutex] isItemNotified: received:node:2bbec86b-5108-4139-a471-25f14d174fcb:localhost:node-7981d359-b505-40c8-a00b-382da53507df:Node 7981d359-b505-40c8-a00b-382da53507df :: true 2022-05-15 23:14:49 | [Mutex] waiting for: [received:nodes:5a50d524-87e0-4a15-915b-45bbf4ec477c:localhost] 2022-05-15 23:14:49 | [Mutex] waiting for: [received:nodes:5a50d524-87e0-4a15-915b-45bbf4ec477c:localhost] 2022-05-15 23:14:49 | [Mutex] received everything. 2022-05-15 23:14:49 | [Mutex] isItemNotified: received:node:5a50d524-87e0-4a15-915b-45bbf4ec477c:localhost:node-7981d359-b505-40c8-a00b-382da53507df:Node 7981d359-b505-40c8-a00b-382da53507df :: false |
createNodes | 1.536s |
2022-05-15 23:14:46 |
2022-05-15 23:14:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:46 | ------------------------------------ 2022-05-15 23:14: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-7981d359-b505-40c8-a00b-382da53507df", "pubsub#title": "Node 7981d359-b505-40c8-a00b-382da53507df" } 2022-05-15 23:14:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 23:14:47 | [Mutex] waiting for: [received:nodes:5383250d-3622-488e-8cc8-8e42648e05e8:localhost] 2022-05-15 23:14:47 | [Mutex] received everything. 2022-05-15 23:14:47 | [Mutex] isItemNotified: received:node:5383250d-3622-488e-8cc8-8e42648e05e8:localhost:node-7981d359-b505-40c8-a00b-382da53507df:Node 7981d359-b505-40c8-a00b-382da53507df :: true |
createSubnodes | 1.021s |
2022-05-15 23:14:47 |
2022-05-15 23:14:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:47 | ------------------------------------ 2022-05-15 23:14: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-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a", "pubsub#title": "Node 7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a" } 2022-05-15 23:14:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 23:14:48 | [Mutex] waiting for: [received:nodes:bd14ba25-10a4-4950-bcf1-527c6847c59b:localhost] 2022-05-15 23:14:48 | [Mutex] received everything. 2022-05-15 23:14:48 | [Mutex] isItemNotified: received:node:bd14ba25-10a4-4950-bcf1-527c6847c59b:localhost:node-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a:Node 7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a :: true |
deleteNodes | 1.019s |
2022-05-15 23:14:53 |
2022-05-15 23:14:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:53 | ------------------------------------ 2022-05-15 23:14:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a" } 2022-05-15 23:14:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 23:14:54 | [Mutex] waiting for: [received:nodes:dcf8e4a5-2832-45e0-8a22-018ef7943fd3:localhost] 2022-05-15 23:14:54 | [Mutex] received everything. 2022-05-15 23:14:54 | [Mutex] isItemNotified: received:node:dcf8e4a5-2832-45e0-8a22-018ef7943fd3:localhost:node-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a:Node 7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a :: false |
deleteSubnodes | 1.023s |
2022-05-15 23:14:52 |
2022-05-15 23:14:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:52 | ------------------------------------ 2022-05-15 23:14:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7981d359-b505-40c8-a00b-382da53507df" } 2022-05-15 23:14:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 23:14:53 | [Mutex] waiting for: [received:nodes:ea4cc8c9-455b-4515-820f-d191fd66fb48:localhost] 2022-05-15 23:14:53 | [Mutex] waiting for: [received:nodes:ea4cc8c9-455b-4515-820f-d191fd66fb48:localhost] 2022-05-15 23:14:53 | [Mutex] received everything. 2022-05-15 23:14:53 | [Mutex] isItemNotified: received:node:ea4cc8c9-455b-4515-820f-d191fd66fb48:localhost:node-7981d359-b505-40c8-a00b-382da53507df:Node 7981d359-b505-40c8-a00b-382da53507df :: false 2022-05-15 23:14:53 | [Mutex] waiting for: [received:nodes:a0713fd8-bc97-4c05-b485-7019449df8a0:localhost] 2022-05-15 23:14:53 | [Mutex] received everything. 2022-05-15 23:14:53 | [Mutex] isItemNotified: received:node:a0713fd8-bc97-4c05-b485-7019449df8a0:localhost:node-7981d359-b505-40c8-a00b-382da53507df:Node 7981d359-b505-40c8-a00b-382da53507df :: false |
publishItemsToNodes | 0.046s |
2022-05-15 23:14:50 |
2022-05-15 23:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:50 | ------------------------------------ 2022-05-15 23:14:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7981d359-b505-40c8-a00b-382da53507df", "entry": "<test>item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e</test>", "item-id": "item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e" } 2022-05-15 23:14:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e" } 2022-05-15 23:14:50 | [Mutex] waiting for: [published:item:notifieditem-fe0f50de-7bd5-4dfc-97b3-200ea10c699e:admin@test-domain.com] 2022-05-15 23:14:50 | [Mutex] received everything. 2022-05-15 23:14:50 | [Mutex] isItemNotified: published:item:notifieditem-fe0f50de-7bd5-4dfc-97b3-200ea10c699e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-15 23:14:50 |
2022-05-15 23:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:50 | ------------------------------------ 2022-05-15 23:14:50 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7981d359-b505-40c8-a00b-382da53507df", "item-id": "item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e" } 2022-05-15 23:14:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e" } 2022-05-15 23:14:51 | [Mutex] received everything. 2022-05-15 23:14:51 | [Mutex] isItemNotified: retracted:item:notifieditem-fe0f50de-7bd5-4dfc-97b3-200ea10c699e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2022-05-15 23:14:50 |
2022-05-15 23:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:50 | ------------------------------------ 2022-05-15 23:14:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7981d359-b505-40c8-a00b-382da53507df", "item-id": "item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e" } 2022-05-15 23:14:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7981d359-b505-40c8-a00b-382da53507df", "item-id": "item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e", "item": [ "<item id=\"item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e\"><test>item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e</test></item>" ] } 2022-05-15 23:14:50 | [Mutex] notify: [retrieved:item:item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e:payload-matches:true:localhost] 2022-05-15 23:14:50 | [Mutex] received everything. 2022-05-15 23:14:50 | [Mutex] isItemNotified: retrieved:item:item-fe0f50de-7bd5-4dfc-97b3-200ea10c699e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-15 23:14:50 |
2022-05-15 23:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:50 | ------------------------------------ 2022-05-15 23:14:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-15 23:14:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7981d359-b505-40c8-a00b-382da53507df", "node-7cd1e0d7-5c84-4047-a9df-c3ef58c06d3a" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-15 23:14:50 |
2022-05-15 23:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:50 | ------------------------------------ 2022-05-15 23:14:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7981d359-b505-40c8-a00b-382da53507df)" } 2022-05-15 23:14:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-05-15 23:14:49 |
2022-05-15 23:14:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:49 | ------------------------------------ 2022-05-15 23:14:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7981d359-b505-40c8-a00b-382da53507df", "jids": [ "admin@test-domain.com" ] } 2022-05-15 23:14:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.123s |
2022-05-15 23:14:51 |
2022-05-15 23:14:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 23:14:51 | ------------------------------------ 2022-05-15 23:14:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7981d359-b505-40c8-a00b-382da53507df", "jids": [ "admin@test-domain.com" ] } 2022-05-15 23:14:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |