Test duration : 9.184s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2021-11-15 21:44:59 |
2021-11-15 21:44:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:59 | ------------------------------------ 2021-11-15 21:44:59 | [Mutex] waiting for: [configured:node:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:node-29128b04-79b6-497d-8e4c-84a30427067e] 2021-11-15 21:44:59 | [Mutex] received everything. 2021-11-15 21:44:59 | [Mutex] isItemNotified: configured:node:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:node-29128b04-79b6-497d-8e4c-84a30427067e :: true 2021-11-15 21:45:00 | [Mutex] waiting for: [received:nodes:cad958db-2443-466d-b17d-b07a93f54868:localhost] 2021-11-15 21:45:00 | [Mutex] received everything. 2021-11-15 21:45:00 | [Mutex] isItemNotified: received:node:cad958db-2443-466d-b17d-b07a93f54868:localhost:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:Node 3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34 :: true 2021-11-15 21:45:00 | [Mutex] waiting for: [received:nodes:4744eac1-883d-4e60-8c16-a1df78ba29a1:localhost] 2021-11-15 21:45:00 | [Mutex] received everything. 2021-11-15 21:45:00 | [Mutex] isItemNotified: received:node:4744eac1-883d-4e60-8c16-a1df78ba29a1:localhost:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:Node 3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34 :: false |
createNodes | 1.753s |
2021-11-15 21:44:56 |
2021-11-15 21:44:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:56 | ------------------------------------ 2021-11-15 21:44:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "pubsub#title": "Node 3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34" } 2021-11-15 21:44:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:44:57 | [Mutex] waiting for: [received:nodes:39480486-ca67-4ced-b769-b50a80b42637:localhost] 2021-11-15 21:44:57 | [Mutex] received everything. 2021-11-15 21:44:57 | [Mutex] isItemNotified: received:node:39480486-ca67-4ced-b769-b50a80b42637:localhost:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:Node 3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34 :: true |
createSubnodes | 1.036s |
2021-11-15 21:44:57 |
2021-11-15 21:44:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:57 | ------------------------------------ 2021-11-15 21:44:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-29128b04-79b6-497d-8e4c-84a30427067e", "pubsub#title": "Node 29128b04-79b6-497d-8e4c-84a30427067e" } 2021-11-15 21:44:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:44:59 | [Mutex] waiting for: [received:nodes:e6e84778-e130-4f0e-8fb4-3dfb83b88a0f:localhost] 2021-11-15 21:44:59 | [Mutex] received everything. 2021-11-15 21:44:59 | [Mutex] isItemNotified: received:node:e6e84778-e130-4f0e-8fb4-3dfb83b88a0f:localhost:node-29128b04-79b6-497d-8e4c-84a30427067e:Node 29128b04-79b6-497d-8e4c-84a30427067e :: true |
deleteNodes | 1.069s |
2021-11-15 21:45:03 |
2021-11-15 21:45:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:03 | ------------------------------------ 2021-11-15 21:45:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-29128b04-79b6-497d-8e4c-84a30427067e" } 2021-11-15 21:45:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:45:04 | [Mutex] waiting for: [received:nodes:f3e7b1f4-c421-4c39-a6e6-850f8e46d82f:localhost] 2021-11-15 21:45:04 | [Mutex] received everything. 2021-11-15 21:45:04 | [Mutex] isItemNotified: received:node:f3e7b1f4-c421-4c39-a6e6-850f8e46d82f:localhost:node-29128b04-79b6-497d-8e4c-84a30427067e:Node 29128b04-79b6-497d-8e4c-84a30427067e :: false |
deleteSubnodes | 1.035s |
2021-11-15 21:45:02 |
2021-11-15 21:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:02 | ------------------------------------ 2021-11-15 21:45:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34" } 2021-11-15 21:45:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:45:03 | [Mutex] waiting for: [received:nodes:7a4b97d7-8e5c-41fa-924b-b6bb0f9ab041:localhost] 2021-11-15 21:45:03 | [Mutex] waiting for: [received:nodes:7a4b97d7-8e5c-41fa-924b-b6bb0f9ab041:localhost] 2021-11-15 21:45:03 | [Mutex] received everything. 2021-11-15 21:45:03 | [Mutex] isItemNotified: received:node:7a4b97d7-8e5c-41fa-924b-b6bb0f9ab041:localhost:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:Node 3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34 :: false 2021-11-15 21:45:03 | [Mutex] waiting for: [received:nodes:577bd834-f4ef-44a6-9946-55ecbcc2a2ba:localhost] 2021-11-15 21:45:03 | [Mutex] received everything. 2021-11-15 21:45:03 | [Mutex] isItemNotified: received:node:577bd834-f4ef-44a6-9946-55ecbcc2a2ba:localhost:node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34:Node 3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34 :: false |
publishItemsToNodes | 0.048s |
2021-11-15 21:45:01 |
2021-11-15 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:01 | ------------------------------------ 2021-11-15 21:45:01 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "entry": "<test>item-3ee3538a-f37f-47af-97c3-1892a8bd775f</test>", "item-id": "item-3ee3538a-f37f-47af-97c3-1892a8bd775f" } 2021-11-15 21:45:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ee3538a-f37f-47af-97c3-1892a8bd775f" } 2021-11-15 21:45:01 | [Mutex] waiting for: [published:item:notifieditem-3ee3538a-f37f-47af-97c3-1892a8bd775f:admin@test-domain.com] 2021-11-15 21:45:01 | [Mutex] received everything. 2021-11-15 21:45:01 | [Mutex] isItemNotified: published:item:notifieditem-3ee3538a-f37f-47af-97c3-1892a8bd775f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2021-11-15 21:45:01 |
2021-11-15 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:01 | ------------------------------------ 2021-11-15 21:45:01 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "item-id": "item-3ee3538a-f37f-47af-97c3-1892a8bd775f" } 2021-11-15 21:45:01 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ee3538a-f37f-47af-97c3-1892a8bd775f" } 2021-11-15 21:45:01 | [Mutex] received everything. 2021-11-15 21:45:01 | [Mutex] isItemNotified: retracted:item:notifieditem-3ee3538a-f37f-47af-97c3-1892a8bd775f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2021-11-15 21:45:01 |
2021-11-15 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:01 | ------------------------------------ 2021-11-15 21:45:01 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "item-id": "item-3ee3538a-f37f-47af-97c3-1892a8bd775f" } 2021-11-15 21:45:01 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "item-id": "item-3ee3538a-f37f-47af-97c3-1892a8bd775f", "item": [ "<item id=\"item-3ee3538a-f37f-47af-97c3-1892a8bd775f\"><test>item-3ee3538a-f37f-47af-97c3-1892a8bd775f</test></item>" ] } 2021-11-15 21:45:01 | [Mutex] notify: [retrieved:item:item-3ee3538a-f37f-47af-97c3-1892a8bd775f:payload-matches:true:localhost] 2021-11-15 21:45:01 | [Mutex] received everything. 2021-11-15 21:45:01 | [Mutex] isItemNotified: retrieved:item:item-3ee3538a-f37f-47af-97c3-1892a8bd775f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-11-15 21:45:01 |
2021-11-15 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:01 | ------------------------------------ 2021-11-15 21:45:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-11-15 21:45:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "node-29128b04-79b6-497d-8e4c-84a30427067e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-11-15 21:45:01 |
2021-11-15 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:01 | ------------------------------------ 2021-11-15 21:45:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34)" } 2021-11-15 21:45:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-11-15 21:45:00 |
2021-11-15 21:45:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:00 | ------------------------------------ 2021-11-15 21:45:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "jids": [ "admin@test-domain.com" ] } 2021-11-15 21:45:00 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2021-11-15 21:45:01 |
2021-11-15 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:45:01 | ------------------------------------ 2021-11-15 21:45:01 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3e70fd6c-83b0-4a9a-82b4-8476f9c8ed34", "jids": [ "admin@test-domain.com" ] } 2021-11-15 21:45:01 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |