Test duration : 9.093s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.136s |
2021-06-24 22:30:28 |
2021-06-24 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:28 | ------------------------------------ 2021-06-24 22:30:28 | [Mutex] waiting for: [configured:node:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:node-4f53b394-4e8d-4deb-a791-60f009031787] 2021-06-24 22:30:28 | [Mutex] received everything. 2021-06-24 22:30:28 | [Mutex] isItemNotified: configured:node:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:node-4f53b394-4e8d-4deb-a791-60f009031787 :: true 2021-06-24 22:30:29 | [Mutex] waiting for: [received:nodes:44326d25-ceea-4878-bf47-391d5fde0e92:localhost] 2021-06-24 22:30:29 | [Mutex] received everything. 2021-06-24 22:30:29 | [Mutex] isItemNotified: received:node:44326d25-ceea-4878-bf47-391d5fde0e92:localhost:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:Node 7176eba0-ab1e-4b7e-9f85-fcb7f91befcf :: true 2021-06-24 22:30:29 | [Mutex] waiting for: [received:nodes:0306820a-1a02-4628-bd50-5a5f1b3fad0a:localhost] 2021-06-24 22:30:29 | [Mutex] waiting for: [received:nodes:0306820a-1a02-4628-bd50-5a5f1b3fad0a:localhost] 2021-06-24 22:30:29 | [Mutex] received everything. 2021-06-24 22:30:29 | [Mutex] isItemNotified: received:node:0306820a-1a02-4628-bd50-5a5f1b3fad0a:localhost:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:Node 7176eba0-ab1e-4b7e-9f85-fcb7f91befcf :: false |
createNodes | 1.712s |
2021-06-24 22:30:25 |
2021-06-24 22:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:25 | ------------------------------------ 2021-06-24 22:30:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "pubsub#title": "Node 7176eba0-ab1e-4b7e-9f85-fcb7f91befcf" } 2021-06-24 22:30:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:30:27 | [Mutex] waiting for: [received:nodes:c5f79140-3529-4f1e-ad6b-613130b5c505:localhost] 2021-06-24 22:30:27 | [Mutex] waiting for: [received:nodes:c5f79140-3529-4f1e-ad6b-613130b5c505:localhost] 2021-06-24 22:30:27 | [Mutex] received everything. 2021-06-24 22:30:27 | [Mutex] isItemNotified: received:node:c5f79140-3529-4f1e-ad6b-613130b5c505:localhost:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:Node 7176eba0-ab1e-4b7e-9f85-fcb7f91befcf :: true |
createSubnodes | 1.029s |
2021-06-24 22:30:27 |
2021-06-24 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:27 | ------------------------------------ 2021-06-24 22:30:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4f53b394-4e8d-4deb-a791-60f009031787", "pubsub#title": "Node 4f53b394-4e8d-4deb-a791-60f009031787" } 2021-06-24 22:30:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:30:28 | [Mutex] waiting for: [received:nodes:33bf65ad-7985-4c77-9769-dbd28775d1b9:localhost] 2021-06-24 22:30:28 | [Mutex] waiting for: [received:nodes:33bf65ad-7985-4c77-9769-dbd28775d1b9:localhost] 2021-06-24 22:30:28 | [Mutex] received everything. 2021-06-24 22:30:28 | [Mutex] isItemNotified: received:node:33bf65ad-7985-4c77-9769-dbd28775d1b9:localhost:node-4f53b394-4e8d-4deb-a791-60f009031787:Node 4f53b394-4e8d-4deb-a791-60f009031787 :: true |
deleteNodes | 1.026s |
2021-06-24 22:30:33 |
2021-06-24 22:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:33 | ------------------------------------ 2021-06-24 22:30:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4f53b394-4e8d-4deb-a791-60f009031787" } 2021-06-24 22:30:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:30:34 | [Mutex] waiting for: [received:nodes:09fa351f-27fa-4d64-ac08-d47e660a7870:localhost] 2021-06-24 22:30:34 | [Mutex] received everything. 2021-06-24 22:30:34 | [Mutex] isItemNotified: received:node:09fa351f-27fa-4d64-ac08-d47e660a7870:localhost:node-4f53b394-4e8d-4deb-a791-60f009031787:Node 4f53b394-4e8d-4deb-a791-60f009031787 :: false |
deleteSubnodes | 1.039s |
2021-06-24 22:30:32 |
2021-06-24 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:32 | ------------------------------------ 2021-06-24 22:30:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf" } 2021-06-24 22:30:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:30:33 | [Mutex] waiting for: [received:nodes:7bc49154-ba9f-4f9a-b8a2-5de118a961dc:localhost] 2021-06-24 22:30:33 | [Mutex] waiting for: [received:nodes:7bc49154-ba9f-4f9a-b8a2-5de118a961dc:localhost] 2021-06-24 22:30:33 | [Mutex] received everything. 2021-06-24 22:30:33 | [Mutex] isItemNotified: received:node:7bc49154-ba9f-4f9a-b8a2-5de118a961dc:localhost:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:Node 7176eba0-ab1e-4b7e-9f85-fcb7f91befcf :: false 2021-06-24 22:30:33 | [Mutex] waiting for: [received:nodes:d1b5d6ea-0c10-471b-9e3f-5338a600cfa7:localhost] 2021-06-24 22:30:33 | [Mutex] received everything. 2021-06-24 22:30:33 | [Mutex] isItemNotified: received:node:d1b5d6ea-0c10-471b-9e3f-5338a600cfa7:localhost:node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf:Node 7176eba0-ab1e-4b7e-9f85-fcb7f91befcf :: false |
publishItemsToNodes | 0.080s |
2021-06-24 22:30:30 |
2021-06-24 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:30 | ------------------------------------ 2021-06-24 22:30:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "entry": "<test>item-bd7f2aee-df90-45b4-b3c1-674a347602c2</test>", "item-id": "item-bd7f2aee-df90-45b4-b3c1-674a347602c2" } 2021-06-24 22:30:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bd7f2aee-df90-45b4-b3c1-674a347602c2" } 2021-06-24 22:30:30 | [Mutex] waiting for: [published:item:notifieditem-bd7f2aee-df90-45b4-b3c1-674a347602c2:admin@test-domain.com] 2021-06-24 22:30:30 | [Mutex] received everything. 2021-06-24 22:30:30 | [Mutex] isItemNotified: published:item:notifieditem-bd7f2aee-df90-45b4-b3c1-674a347602c2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.057s |
2021-06-24 22:30:31 |
2021-06-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:31 | ------------------------------------ 2021-06-24 22:30:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "item-id": "item-bd7f2aee-df90-45b4-b3c1-674a347602c2" } 2021-06-24 22:30:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bd7f2aee-df90-45b4-b3c1-674a347602c2" } 2021-06-24 22:30:31 | [Mutex] waiting for: [retracted:item:notifieditem-bd7f2aee-df90-45b4-b3c1-674a347602c2:admin@test-domain.com] 2021-06-24 22:30:31 | [Mutex] received everything. 2021-06-24 22:30:31 | [Mutex] isItemNotified: retracted:item:notifieditem-bd7f2aee-df90-45b4-b3c1-674a347602c2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.096s |
2021-06-24 22:30:30 |
2021-06-24 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:30 | ------------------------------------ 2021-06-24 22:30:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "item-id": "item-bd7f2aee-df90-45b4-b3c1-674a347602c2" } 2021-06-24 22:30:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "item-id": "item-bd7f2aee-df90-45b4-b3c1-674a347602c2", "item": [ "<item id=\"item-bd7f2aee-df90-45b4-b3c1-674a347602c2\"><test>item-bd7f2aee-df90-45b4-b3c1-674a347602c2</test></item>" ] } 2021-06-24 22:30:30 | [Mutex] notify: [retrieved:item:item-bd7f2aee-df90-45b4-b3c1-674a347602c2:payload-matches:true:localhost] 2021-06-24 22:30:30 | [Mutex] received everything. 2021-06-24 22:30:30 | [Mutex] isItemNotified: retrieved:item:item-bd7f2aee-df90-45b4-b3c1-674a347602c2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-06-24 22:30:30 |
2021-06-24 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:30 | ------------------------------------ 2021-06-24 22:30:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-24 22:30:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4f53b394-4e8d-4deb-a791-60f009031787", "test", "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-06-24 22:30:31 |
2021-06-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:31 | ------------------------------------ 2021-06-24 22:30:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf)" } 2021-06-24 22:30:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-06-24 22:30:29 |
2021-06-24 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:29 | ------------------------------------ 2021-06-24 22:30:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:30:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2021-06-24 22:30:31 |
2021-06-24 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:30:31 | ------------------------------------ 2021-06-24 22:30:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7176eba0-ab1e-4b7e-9f85-fcb7f91befcf", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:30:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |