Test duration : 9.132s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2020-09-19 23:14:53 |
2020-09-19 23:14:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:53 | ------------------------------------ 2020-09-19 23:14:53 | [Mutex] waiting for: [configured:node:node-77081061-1bfc-4a84-9312-d1cca0f81c57:node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4] 2020-09-19 23:14:53 | [Mutex] received everything. 2020-09-19 23:14:53 | [Mutex] isItemNotified: configured:node:node-77081061-1bfc-4a84-9312-d1cca0f81c57:node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4 :: true 2020-09-19 23:14:54 | [Mutex] waiting for: [received:nodes:4e2d2ac5-382b-4300-8168-935e1e53ed11:localhost] 2020-09-19 23:14:54 | [Mutex] received everything. 2020-09-19 23:14:54 | [Mutex] isItemNotified: received:node:4e2d2ac5-382b-4300-8168-935e1e53ed11:localhost:node-77081061-1bfc-4a84-9312-d1cca0f81c57:Node 77081061-1bfc-4a84-9312-d1cca0f81c57 :: true 2020-09-19 23:14:54 | [Mutex] waiting for: [received:nodes:8a812c1e-f15f-42f5-a292-ee81e3e914ad:localhost] 2020-09-19 23:14:54 | [Mutex] waiting for: [received:nodes:8a812c1e-f15f-42f5-a292-ee81e3e914ad:localhost] 2020-09-19 23:14:54 | [Mutex] received everything. 2020-09-19 23:14:54 | [Mutex] isItemNotified: received:node:8a812c1e-f15f-42f5-a292-ee81e3e914ad:localhost:node-77081061-1bfc-4a84-9312-d1cca0f81c57:Node 77081061-1bfc-4a84-9312-d1cca0f81c57 :: false |
createNodes | 1.801s |
2020-09-19 23:14:50 |
2020-09-19 23:14:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:50 | ------------------------------------ 2020-09-19 23:14:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "pubsub#title": "Node 77081061-1bfc-4a84-9312-d1cca0f81c57" } 2020-09-19 23:14:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 23:14:52 | [Mutex] waiting for: [received:nodes:5e591729-a1b8-4878-8d49-6cce28951085:localhost] 2020-09-19 23:14:52 | [Mutex] received everything. 2020-09-19 23:14:52 | [Mutex] isItemNotified: received:node:5e591729-a1b8-4878-8d49-6cce28951085:localhost:node-77081061-1bfc-4a84-9312-d1cca0f81c57:Node 77081061-1bfc-4a84-9312-d1cca0f81c57 :: true |
createSubnodes | 1.021s |
2020-09-19 23:14:52 |
2020-09-19 23:14:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:52 | ------------------------------------ 2020-09-19 23:14:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4", "pubsub#title": "Node e254ed32-8abd-46a3-bcb8-9afb8d70cde4" } 2020-09-19 23:14:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 23:14:53 | [Mutex] waiting for: [received:nodes:e9f6c673-1044-4c8e-b0ef-c6fa35a84af8:localhost] 2020-09-19 23:14:53 | [Mutex] received everything. 2020-09-19 23:14:53 | [Mutex] isItemNotified: received:node:e9f6c673-1044-4c8e-b0ef-c6fa35a84af8:localhost:node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4:Node e254ed32-8abd-46a3-bcb8-9afb8d70cde4 :: true |
deleteNodes | 1.019s |
2020-09-19 23:14:57 |
2020-09-19 23:14:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:57 | ------------------------------------ 2020-09-19 23:14:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4" } 2020-09-19 23:14:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 23:14:58 | [Mutex] waiting for: [received:nodes:f79bf74b-3019-40ec-a7c8-507c6bfb3d05:localhost] 2020-09-19 23:14:58 | [Mutex] received everything. 2020-09-19 23:14:58 | [Mutex] isItemNotified: received:node:f79bf74b-3019-40ec-a7c8-507c6bfb3d05:localhost:node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4:Node e254ed32-8abd-46a3-bcb8-9afb8d70cde4 :: false |
deleteSubnodes | 1.024s |
2020-09-19 23:14:56 |
2020-09-19 23:14:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:56 | ------------------------------------ 2020-09-19 23:14:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57" } 2020-09-19 23:14:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 23:14:57 | [Mutex] waiting for: [received:nodes:81bec080-4bbe-48e8-9d45-086264f9f6c0:localhost] 2020-09-19 23:14:57 | [Mutex] waiting for: [received:nodes:81bec080-4bbe-48e8-9d45-086264f9f6c0:localhost] 2020-09-19 23:14:57 | [Mutex] received everything. 2020-09-19 23:14:57 | [Mutex] isItemNotified: received:node:81bec080-4bbe-48e8-9d45-086264f9f6c0:localhost:node-77081061-1bfc-4a84-9312-d1cca0f81c57:Node 77081061-1bfc-4a84-9312-d1cca0f81c57 :: false 2020-09-19 23:14:57 | [Mutex] waiting for: [received:nodes:b32b17d8-2ab1-4e5b-80e1-8fbf33ffc645:localhost] 2020-09-19 23:14:57 | [Mutex] received everything. 2020-09-19 23:14:57 | [Mutex] isItemNotified: received:node:b32b17d8-2ab1-4e5b-80e1-8fbf33ffc645:localhost:node-77081061-1bfc-4a84-9312-d1cca0f81c57:Node 77081061-1bfc-4a84-9312-d1cca0f81c57 :: false |
publishItemsToNodes | 0.042s |
2020-09-19 23:14:55 |
2020-09-19 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:55 | ------------------------------------ 2020-09-19 23:14:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "entry": "<test>item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3</test>", "item-id": "item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3" } 2020-09-19 23:14:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3" } 2020-09-19 23:14:55 | [Mutex] waiting for: [published:item:notifieditem-9638acd4-a2af-4ca9-ba2a-d7d7531938f3:admin@test-domain.com] 2020-09-19 23:14:55 | [Mutex] received everything. 2020-09-19 23:14:55 | [Mutex] isItemNotified: published:item:notifieditem-9638acd4-a2af-4ca9-ba2a-d7d7531938f3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.073s |
2020-09-19 23:14:55 |
2020-09-19 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:55 | ------------------------------------ 2020-09-19 23:14:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "item-id": "item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3" } 2020-09-19 23:14:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3" } 2020-09-19 23:14:55 | [Mutex] received everything. 2020-09-19 23:14:55 | [Mutex] isItemNotified: retracted:item:notifieditem-9638acd4-a2af-4ca9-ba2a-d7d7531938f3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2020-09-19 23:14:55 |
2020-09-19 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:55 | ------------------------------------ 2020-09-19 23:14:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "item-id": "item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3" } 2020-09-19 23:14:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "item-id": "item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3", "item": [ "<item id=\"item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3\"><test>item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3</test></item>" ] } 2020-09-19 23:14:55 | [Mutex] notify: [retrieved:item:item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3:payload-matches:true:localhost] 2020-09-19 23:14:55 | [Mutex] received everything. 2020-09-19 23:14:55 | [Mutex] isItemNotified: retrieved:item:item-9638acd4-a2af-4ca9-ba2a-d7d7531938f3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-09-19 23:14:55 |
2020-09-19 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:55 | ------------------------------------ 2020-09-19 23:14:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-19 23:14:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e254ed32-8abd-46a3-bcb8-9afb8d70cde4", "node-77081061-1bfc-4a84-9312-d1cca0f81c57" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-19 23:14:55 |
2020-09-19 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:55 | ------------------------------------ 2020-09-19 23:14:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-77081061-1bfc-4a84-9312-d1cca0f81c57)" } 2020-09-19 23:14:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-09-19 23:14:54 |
2020-09-19 23:14:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:54 | ------------------------------------ 2020-09-19 23:14:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "jids": [ "admin@test-domain.com" ] } 2020-09-19 23:14:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2020-09-19 23:14:55 |
2020-09-19 23:14:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 23:14:55 | ------------------------------------ 2020-09-19 23:14:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-77081061-1bfc-4a84-9312-d1cca0f81c57", "jids": [ "admin@test-domain.com" ] } 2020-09-19 23:14:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |