Test duration : 8.755s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2022-08-31 22:34:48 |
2022-08-31 22:34:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:48 | ------------------------------------ 2022-08-31 22:34:48 | [Mutex] waiting for: [configured:node:node-4fef954e-2998-4d7f-923d-ee230a628763:node-83d8679b-a301-42fa-b62d-0250fc825fbd] 2022-08-31 22:34:48 | [Mutex] received everything. 2022-08-31 22:34:48 | [Mutex] isItemNotified: configured:node:node-4fef954e-2998-4d7f-923d-ee230a628763:node-83d8679b-a301-42fa-b62d-0250fc825fbd :: true 2022-08-31 22:34:49 | [Mutex] waiting for: [received:nodes:a880d201-fefc-487e-b417-aa63bbfa17f1:localhost] 2022-08-31 22:34:49 | [Mutex] received everything. 2022-08-31 22:34:49 | [Mutex] isItemNotified: received:node:a880d201-fefc-487e-b417-aa63bbfa17f1:localhost:node-4fef954e-2998-4d7f-923d-ee230a628763:Node 4fef954e-2998-4d7f-923d-ee230a628763 :: true 2022-08-31 22:34:49 | [Mutex] waiting for: [received:nodes:dfaa8423-3084-4f00-879f-e696c637ebf5:localhost] 2022-08-31 22:34:49 | [Mutex] received everything. 2022-08-31 22:34:49 | [Mutex] isItemNotified: received:node:dfaa8423-3084-4f00-879f-e696c637ebf5:localhost:node-4fef954e-2998-4d7f-923d-ee230a628763:Node 4fef954e-2998-4d7f-923d-ee230a628763 :: false |
createNodes | 1.605s |
2022-08-31 22:34:46 |
2022-08-31 22:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:46 | ------------------------------------ 2022-08-31 22:34:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "pubsub#title": "Node 4fef954e-2998-4d7f-923d-ee230a628763" } 2022-08-31 22:34:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 22:34:47 | [Mutex] waiting for: [received:nodes:8a16648c-d5ab-4aec-81c5-01f07c35b794:localhost] 2022-08-31 22:34:47 | [Mutex] waiting for: [received:nodes:8a16648c-d5ab-4aec-81c5-01f07c35b794:localhost] 2022-08-31 22:34:47 | [Mutex] received everything. 2022-08-31 22:34:47 | [Mutex] isItemNotified: received:node:8a16648c-d5ab-4aec-81c5-01f07c35b794:localhost:node-4fef954e-2998-4d7f-923d-ee230a628763:Node 4fef954e-2998-4d7f-923d-ee230a628763 :: true |
createSubnodes | 1.021s |
2022-08-31 22:34:47 |
2022-08-31 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:47 | ------------------------------------ 2022-08-31 22:34:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-83d8679b-a301-42fa-b62d-0250fc825fbd", "pubsub#title": "Node 83d8679b-a301-42fa-b62d-0250fc825fbd" } 2022-08-31 22:34:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 22:34:48 | [Mutex] waiting for: [received:nodes:5b28078a-9669-4d91-9b56-7d42d4704990:localhost] 2022-08-31 22:34:48 | [Mutex] received everything. 2022-08-31 22:34:48 | [Mutex] isItemNotified: received:node:5b28078a-9669-4d91-9b56-7d42d4704990:localhost:node-83d8679b-a301-42fa-b62d-0250fc825fbd:Node 83d8679b-a301-42fa-b62d-0250fc825fbd :: true |
deleteNodes | 1.020s |
2022-08-31 22:34:53 |
2022-08-31 22:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:53 | ------------------------------------ 2022-08-31 22:34:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-83d8679b-a301-42fa-b62d-0250fc825fbd" } 2022-08-31 22:34:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 22:34:54 | [Mutex] waiting for: [received:nodes:3a0bfde0-1f4d-4af0-986c-c79e21e62915:localhost] 2022-08-31 22:34:54 | [Mutex] received everything. 2022-08-31 22:34:54 | [Mutex] isItemNotified: received:node:3a0bfde0-1f4d-4af0-986c-c79e21e62915:localhost:node-83d8679b-a301-42fa-b62d-0250fc825fbd:Node 83d8679b-a301-42fa-b62d-0250fc825fbd :: false |
deleteSubnodes | 1.029s |
2022-08-31 22:34:52 |
2022-08-31 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:52 | ------------------------------------ 2022-08-31 22:34:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4fef954e-2998-4d7f-923d-ee230a628763" } 2022-08-31 22:34:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 22:34:53 | [Mutex] waiting for: [received:nodes:cc84f192-b1a6-4c87-a717-8cc5319b2a34:localhost] 2022-08-31 22:34:53 | [Mutex] received everything. 2022-08-31 22:34:53 | [Mutex] isItemNotified: received:node:cc84f192-b1a6-4c87-a717-8cc5319b2a34:localhost:node-4fef954e-2998-4d7f-923d-ee230a628763:Node 4fef954e-2998-4d7f-923d-ee230a628763 :: false 2022-08-31 22:34:53 | [Mutex] waiting for: [received:nodes:f17043d9-48ce-4618-a242-d7e3554f3926:localhost] 2022-08-31 22:34:53 | [Mutex] received everything. 2022-08-31 22:34:53 | [Mutex] isItemNotified: received:node:f17043d9-48ce-4618-a242-d7e3554f3926:localhost:node-4fef954e-2998-4d7f-923d-ee230a628763:Node 4fef954e-2998-4d7f-923d-ee230a628763 :: false |
publishItemsToNodes | 0.044s |
2022-08-31 22:34:50 |
2022-08-31 22:34:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:50 | ------------------------------------ 2022-08-31 22:34:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "entry": "<test>item-60399177-e1fb-414d-bf0b-55a840b73d6a</test>", "item-id": "item-60399177-e1fb-414d-bf0b-55a840b73d6a" } 2022-08-31 22:34:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-60399177-e1fb-414d-bf0b-55a840b73d6a" } 2022-08-31 22:34:50 | [Mutex] waiting for: [published:item:notifieditem-60399177-e1fb-414d-bf0b-55a840b73d6a:admin@test-domain.com] 2022-08-31 22:34:50 | [Mutex] received everything. 2022-08-31 22:34:50 | [Mutex] isItemNotified: published:item:notifieditem-60399177-e1fb-414d-bf0b-55a840b73d6a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-08-31 22:34:51 |
2022-08-31 22:34:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:51 | ------------------------------------ 2022-08-31 22:34:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "item-id": "item-60399177-e1fb-414d-bf0b-55a840b73d6a" } 2022-08-31 22:34:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-60399177-e1fb-414d-bf0b-55a840b73d6a" } 2022-08-31 22:34:51 | [Mutex] received everything. 2022-08-31 22:34:51 | [Mutex] isItemNotified: retracted:item:notifieditem-60399177-e1fb-414d-bf0b-55a840b73d6a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.088s |
2022-08-31 22:34:50 |
2022-08-31 22:34:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:50 | ------------------------------------ 2022-08-31 22:34:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "item-id": "item-60399177-e1fb-414d-bf0b-55a840b73d6a" } 2022-08-31 22:34:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "item-id": "item-60399177-e1fb-414d-bf0b-55a840b73d6a", "item": [ "<item id=\"item-60399177-e1fb-414d-bf0b-55a840b73d6a\"><test>item-60399177-e1fb-414d-bf0b-55a840b73d6a</test></item>" ] } 2022-08-31 22:34:50 | [Mutex] notify: [retrieved:item:item-60399177-e1fb-414d-bf0b-55a840b73d6a:payload-matches:true:localhost] 2022-08-31 22:34:50 | [Mutex] received everything. 2022-08-31 22:34:50 | [Mutex] isItemNotified: retrieved:item:item-60399177-e1fb-414d-bf0b-55a840b73d6a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-08-31 22:34:50 |
2022-08-31 22:34:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:50 | ------------------------------------ 2022-08-31 22:34:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-31 22:34:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4fef954e-2998-4d7f-923d-ee230a628763", "node-83d8679b-a301-42fa-b62d-0250fc825fbd" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-08-31 22:34:51 |
2022-08-31 22:34:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:51 | ------------------------------------ 2022-08-31 22:34:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4fef954e-2998-4d7f-923d-ee230a628763)" } 2022-08-31 22:34:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-31 22:34:49 |
2022-08-31 22:34:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:49 | ------------------------------------ 2022-08-31 22:34:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "jids": [ "admin@test-domain.com" ] } 2022-08-31 22:34:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.095s |
2022-08-31 22:34:51 |
2022-08-31 22:34:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 22:34:51 | ------------------------------------ 2022-08-31 22:34:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4fef954e-2998-4d7f-923d-ee230a628763", "jids": [ "admin@test-domain.com" ] } 2022-08-31 22:34:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |