Test duration : 9.271s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.116s |
2020-09-18 00:19:43 |
2020-09-18 00:19:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:43 | ------------------------------------ 2020-09-18 00:19:43 | [Mutex] waiting for: [configured:node:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:node-7835c82c-4200-4d49-a919-16f5a3ce052d] 2020-09-18 00:19:43 | [Mutex] received everything. 2020-09-18 00:19:43 | [Mutex] isItemNotified: configured:node:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:node-7835c82c-4200-4d49-a919-16f5a3ce052d :: true 2020-09-18 00:19:44 | [Mutex] waiting for: [received:nodes:bc47d9cf-7843-4fc2-aae7-ff9e1b8afd19:localhost] 2020-09-18 00:19:44 | [Mutex] received everything. 2020-09-18 00:19:44 | [Mutex] isItemNotified: received:node:bc47d9cf-7843-4fc2-aae7-ff9e1b8afd19:localhost:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:Node fd38aa7c-a907-4b5e-8085-62b0ec19f053 :: true 2020-09-18 00:19:44 | [Mutex] waiting for: [received:nodes:a0aa1d51-9ce1-478f-a34f-9a2d1f887d4b:localhost] 2020-09-18 00:19:44 | [Mutex] received everything. 2020-09-18 00:19:44 | [Mutex] isItemNotified: received:node:a0aa1d51-9ce1-478f-a34f-9a2d1f887d4b:localhost:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:Node fd38aa7c-a907-4b5e-8085-62b0ec19f053 :: false |
createNodes | 1.839s |
2020-09-18 00:19:40 |
2020-09-18 00:19:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:40 | ------------------------------------ 2020-09-18 00:19:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "pubsub#title": "Node fd38aa7c-a907-4b5e-8085-62b0ec19f053" } 2020-09-18 00:19:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:19:42 | [Mutex] waiting for: [received:nodes:909ad453-dec4-4745-a404-f73cfc7f2edb:localhost] 2020-09-18 00:19:42 | [Mutex] received everything. 2020-09-18 00:19:42 | [Mutex] isItemNotified: received:node:909ad453-dec4-4745-a404-f73cfc7f2edb:localhost:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:Node fd38aa7c-a907-4b5e-8085-62b0ec19f053 :: true |
createSubnodes | 1.033s |
2020-09-18 00:19:42 |
2020-09-18 00:19:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:42 | ------------------------------------ 2020-09-18 00:19:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7835c82c-4200-4d49-a919-16f5a3ce052d", "pubsub#title": "Node 7835c82c-4200-4d49-a919-16f5a3ce052d" } 2020-09-18 00:19:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:19:43 | [Mutex] waiting for: [received:nodes:204943a3-741f-4f9a-be99-db88d5db3e0b:localhost] 2020-09-18 00:19:43 | [Mutex] received everything. 2020-09-18 00:19:43 | [Mutex] isItemNotified: received:node:204943a3-741f-4f9a-be99-db88d5db3e0b:localhost:node-7835c82c-4200-4d49-a919-16f5a3ce052d:Node 7835c82c-4200-4d49-a919-16f5a3ce052d :: true |
deleteNodes | 1.029s |
2020-09-18 00:19:47 |
2020-09-18 00:19:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:47 | ------------------------------------ 2020-09-18 00:19:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7835c82c-4200-4d49-a919-16f5a3ce052d" } 2020-09-18 00:19:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:19:48 | [Mutex] waiting for: [received:nodes:851a96de-1448-46a1-a46a-b7478e5ccab1:localhost] 2020-09-18 00:19:48 | [Mutex] received everything. 2020-09-18 00:19:48 | [Mutex] isItemNotified: received:node:851a96de-1448-46a1-a46a-b7478e5ccab1:localhost:node-7835c82c-4200-4d49-a919-16f5a3ce052d:Node 7835c82c-4200-4d49-a919-16f5a3ce052d :: false |
deleteSubnodes | 1.041s |
2020-09-18 00:19:46 |
2020-09-18 00:19:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:46 | ------------------------------------ 2020-09-18 00:19:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053" } 2020-09-18 00:19:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:19:47 | [Mutex] waiting for: [received:nodes:f669a9b1-49ce-4c54-bb49-47de89243363:localhost] 2020-09-18 00:19:47 | [Mutex] received everything. 2020-09-18 00:19:47 | [Mutex] isItemNotified: received:node:f669a9b1-49ce-4c54-bb49-47de89243363:localhost:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:Node fd38aa7c-a907-4b5e-8085-62b0ec19f053 :: false 2020-09-18 00:19:47 | [Mutex] waiting for: [received:nodes:531a875a-590e-4a52-bdae-a99912a1a4ad:localhost] 2020-09-18 00:19:47 | [Mutex] received everything. 2020-09-18 00:19:47 | [Mutex] isItemNotified: received:node:531a875a-590e-4a52-bdae-a99912a1a4ad:localhost:node-fd38aa7c-a907-4b5e-8085-62b0ec19f053:Node fd38aa7c-a907-4b5e-8085-62b0ec19f053 :: false |
publishItemsToNodes | 0.058s |
2020-09-18 00:19:45 |
2020-09-18 00:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:45 | ------------------------------------ 2020-09-18 00:19:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "entry": "<test>item-c06a6a99-99d9-47b4-b8c7-1b185b24b431</test>", "item-id": "item-c06a6a99-99d9-47b4-b8c7-1b185b24b431" } 2020-09-18 00:19:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c06a6a99-99d9-47b4-b8c7-1b185b24b431" } 2020-09-18 00:19:45 | [Mutex] waiting for: [published:item:notifieditem-c06a6a99-99d9-47b4-b8c7-1b185b24b431:admin@test-domain.com] 2020-09-18 00:19:45 | [Mutex] received everything. 2020-09-18 00:19:45 | [Mutex] isItemNotified: published:item:notifieditem-c06a6a99-99d9-47b4-b8c7-1b185b24b431:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-09-18 00:19:45 |
2020-09-18 00:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:45 | ------------------------------------ 2020-09-18 00:19:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "item-id": "item-c06a6a99-99d9-47b4-b8c7-1b185b24b431" } 2020-09-18 00:19:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c06a6a99-99d9-47b4-b8c7-1b185b24b431" } 2020-09-18 00:19:45 | [Mutex] received everything. 2020-09-18 00:19:45 | [Mutex] isItemNotified: retracted:item:notifieditem-c06a6a99-99d9-47b4-b8c7-1b185b24b431:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2020-09-18 00:19:45 |
2020-09-18 00:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:45 | ------------------------------------ 2020-09-18 00:19:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "item-id": "item-c06a6a99-99d9-47b4-b8c7-1b185b24b431" } 2020-09-18 00:19:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "item-id": "item-c06a6a99-99d9-47b4-b8c7-1b185b24b431", "item": [ "<item id=\"item-c06a6a99-99d9-47b4-b8c7-1b185b24b431\"><test>item-c06a6a99-99d9-47b4-b8c7-1b185b24b431</test></item>" ] } 2020-09-18 00:19:45 | [Mutex] notify: [retrieved:item:item-c06a6a99-99d9-47b4-b8c7-1b185b24b431:payload-matches:true:localhost] 2020-09-18 00:19:45 | [Mutex] received everything. 2020-09-18 00:19:45 | [Mutex] isItemNotified: retrieved:item:item-c06a6a99-99d9-47b4-b8c7-1b185b24b431:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-09-18 00:19:45 |
2020-09-18 00:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:45 | ------------------------------------ 2020-09-18 00:19:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-18 00:19:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "node-7835c82c-4200-4d49-a919-16f5a3ce052d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-18 00:19:45 |
2020-09-18 00:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:45 | ------------------------------------ 2020-09-18 00:19:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-fd38aa7c-a907-4b5e-8085-62b0ec19f053)" } 2020-09-18 00:19:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-18 00:19:44 |
2020-09-18 00:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:44 | ------------------------------------ 2020-09-18 00:19:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "jids": [ "admin@test-domain.com" ] } 2020-09-18 00:19:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-09-18 00:19:45 |
2020-09-18 00:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:19:45 | ------------------------------------ 2020-09-18 00:19:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fd38aa7c-a907-4b5e-8085-62b0ec19f053", "jids": [ "admin@test-domain.com" ] } 2020-09-18 00:19:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |