Test duration : 9.034s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.135s |
2020-08-28 23:19:08 |
2020-08-28 23:19:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:08 | ------------------------------------ 2020-08-28 23:19:08 | [Mutex] waiting for: [configured:node:node-dcf3b391-de3f-4aba-b73d-7671c8892443:node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10] 2020-08-28 23:19:08 | [Mutex] received everything. 2020-08-28 23:19:08 | [Mutex] isItemNotified: configured:node:node-dcf3b391-de3f-4aba-b73d-7671c8892443:node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10 :: true 2020-08-28 23:19:09 | [Mutex] waiting for: [received:nodes:b57ccac5-47dc-4d52-934d-da84acd934b6:localhost] 2020-08-28 23:19:09 | [Mutex] received everything. 2020-08-28 23:19:09 | [Mutex] isItemNotified: received:node:b57ccac5-47dc-4d52-934d-da84acd934b6:localhost:node-dcf3b391-de3f-4aba-b73d-7671c8892443:Node dcf3b391-de3f-4aba-b73d-7671c8892443 :: true 2020-08-28 23:19:09 | [Mutex] waiting for: [received:nodes:03c49c96-d6ba-4e67-8632-d977def8d817:localhost] 2020-08-28 23:19:09 | [Mutex] received everything. 2020-08-28 23:19:09 | [Mutex] isItemNotified: received:node:03c49c96-d6ba-4e67-8632-d977def8d817:localhost:node-dcf3b391-de3f-4aba-b73d-7671c8892443:Node dcf3b391-de3f-4aba-b73d-7671c8892443 :: false |
createNodes | 1.638s |
2020-08-28 23:19:05 |
2020-08-28 23:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:05 | ------------------------------------ 2020-08-28 23:19:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "pubsub#title": "Node dcf3b391-de3f-4aba-b73d-7671c8892443" } 2020-08-28 23:19:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:19:07 | [Mutex] waiting for: [received:nodes:e120322c-eaba-4734-b1d3-038632cc36da:localhost] 2020-08-28 23:19:07 | [Mutex] received everything. 2020-08-28 23:19:07 | [Mutex] isItemNotified: received:node:e120322c-eaba-4734-b1d3-038632cc36da:localhost:node-dcf3b391-de3f-4aba-b73d-7671c8892443:Node dcf3b391-de3f-4aba-b73d-7671c8892443 :: true |
createSubnodes | 1.029s |
2020-08-28 23:19:07 |
2020-08-28 23:19:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:07 | ------------------------------------ 2020-08-28 23:19:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10", "pubsub#title": "Node 27e07a81-fb11-4a01-b3e4-0c2c9ca74f10" } 2020-08-28 23:19:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:19:08 | [Mutex] waiting for: [received:nodes:2c17e501-f42c-4e43-b77b-15fa684cc751:localhost] 2020-08-28 23:19:08 | [Mutex] received everything. 2020-08-28 23:19:08 | [Mutex] isItemNotified: received:node:2c17e501-f42c-4e43-b77b-15fa684cc751:localhost:node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10:Node 27e07a81-fb11-4a01-b3e4-0c2c9ca74f10 :: true |
deleteNodes | 1.022s |
2020-08-28 23:19:12 |
2020-08-28 23:19:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:12 | ------------------------------------ 2020-08-28 23:19:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10" } 2020-08-28 23:19:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:19:13 | [Mutex] waiting for: [received:nodes:94bb4862-9d23-4769-8586-a05c44364eee:localhost] 2020-08-28 23:19:13 | [Mutex] received everything. 2020-08-28 23:19:13 | [Mutex] isItemNotified: received:node:94bb4862-9d23-4769-8586-a05c44364eee:localhost:node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10:Node 27e07a81-fb11-4a01-b3e4-0c2c9ca74f10 :: false |
deleteSubnodes | 1.027s |
2020-08-28 23:19:11 |
2020-08-28 23:19:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:11 | ------------------------------------ 2020-08-28 23:19:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443" } 2020-08-28 23:19:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:19:12 | [Mutex] waiting for: [received:nodes:535ddb14-9ce5-468d-99d2-407c960cdf77:localhost] 2020-08-28 23:19:12 | [Mutex] received everything. 2020-08-28 23:19:12 | [Mutex] isItemNotified: received:node:535ddb14-9ce5-468d-99d2-407c960cdf77:localhost:node-dcf3b391-de3f-4aba-b73d-7671c8892443:Node dcf3b391-de3f-4aba-b73d-7671c8892443 :: false 2020-08-28 23:19:12 | [Mutex] waiting for: [received:nodes:37810691-32a3-44fb-8ede-d2c8aec4d059:localhost] 2020-08-28 23:19:12 | [Mutex] received everything. 2020-08-28 23:19:12 | [Mutex] isItemNotified: received:node:37810691-32a3-44fb-8ede-d2c8aec4d059:localhost:node-dcf3b391-de3f-4aba-b73d-7671c8892443:Node dcf3b391-de3f-4aba-b73d-7671c8892443 :: false |
publishItemsToNodes | 0.049s |
2020-08-28 23:19:10 |
2020-08-28 23:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:10 | ------------------------------------ 2020-08-28 23:19:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "entry": "<test>item-c409b9eb-22de-4419-b2b1-75d20299569e</test>", "item-id": "item-c409b9eb-22de-4419-b2b1-75d20299569e" } 2020-08-28 23:19:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c409b9eb-22de-4419-b2b1-75d20299569e" } 2020-08-28 23:19:10 | [Mutex] waiting for: [published:item:notifieditem-c409b9eb-22de-4419-b2b1-75d20299569e:admin@test-domain.com] 2020-08-28 23:19:10 | [Mutex] received everything. 2020-08-28 23:19:10 | [Mutex] isItemNotified: published:item:notifieditem-c409b9eb-22de-4419-b2b1-75d20299569e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2020-08-28 23:19:10 |
2020-08-28 23:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:10 | ------------------------------------ 2020-08-28 23:19:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "item-id": "item-c409b9eb-22de-4419-b2b1-75d20299569e" } 2020-08-28 23:19:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c409b9eb-22de-4419-b2b1-75d20299569e" } 2020-08-28 23:19:10 | [Mutex] received everything. 2020-08-28 23:19:10 | [Mutex] isItemNotified: retracted:item:notifieditem-c409b9eb-22de-4419-b2b1-75d20299569e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.093s |
2020-08-28 23:19:10 |
2020-08-28 23:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:10 | ------------------------------------ 2020-08-28 23:19:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "item-id": "item-c409b9eb-22de-4419-b2b1-75d20299569e" } 2020-08-28 23:19:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "item-id": "item-c409b9eb-22de-4419-b2b1-75d20299569e", "item": [ "<item id=\"item-c409b9eb-22de-4419-b2b1-75d20299569e\"><test>item-c409b9eb-22de-4419-b2b1-75d20299569e</test></item>" ] } 2020-08-28 23:19:10 | [Mutex] notify: [retrieved:item:item-c409b9eb-22de-4419-b2b1-75d20299569e:payload-matches:true:localhost] 2020-08-28 23:19:10 | [Mutex] received everything. 2020-08-28 23:19:10 | [Mutex] isItemNotified: retrieved:item:item-c409b9eb-22de-4419-b2b1-75d20299569e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-08-28 23:19:10 |
2020-08-28 23:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:10 | ------------------------------------ 2020-08-28 23:19:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-28 23:19:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-27e07a81-fb11-4a01-b3e4-0c2c9ca74f10", "test", "node-dcf3b391-de3f-4aba-b73d-7671c8892443" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-08-28 23:19:10 |
2020-08-28 23:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:10 | ------------------------------------ 2020-08-28 23:19:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dcf3b391-de3f-4aba-b73d-7671c8892443)" } 2020-08-28 23:19:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-08-28 23:19:09 |
2020-08-28 23:19:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:09 | ------------------------------------ 2020-08-28 23:19:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "jids": [ "admin@test-domain.com" ] } 2020-08-28 23:19:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2020-08-28 23:19:10 |
2020-08-28 23:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:19:10 | ------------------------------------ 2020-08-28 23:19:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dcf3b391-de3f-4aba-b73d-7671c8892443", "jids": [ "admin@test-domain.com" ] } 2020-08-28 23:19:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |