Test duration : 9.279s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.157s |
2021-01-14 21:44:36 |
2021-01-14 21:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:36 | ------------------------------------ 2021-01-14 21:44:36 | [Mutex] waiting for: [configured:node:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef] 2021-01-14 21:44:36 | [Mutex] received everything. 2021-01-14 21:44:36 | [Mutex] isItemNotified: configured:node:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef :: true 2021-01-14 21:44:37 | [Mutex] waiting for: [received:nodes:63af07f1-63eb-4907-b317-c0adcb41d1f9:localhost] 2021-01-14 21:44:37 | [Mutex] received everything. 2021-01-14 21:44:37 | [Mutex] isItemNotified: received:node:63af07f1-63eb-4907-b317-c0adcb41d1f9:localhost:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:Node 245d89a6-89ec-4580-a6d7-f2bd0d81519f :: true 2021-01-14 21:44:37 | [Mutex] waiting for: [received:nodes:9df754f1-33ac-4a32-93a5-4bd2de7bbb7b:localhost] 2021-01-14 21:44:37 | [Mutex] received everything. 2021-01-14 21:44:37 | [Mutex] isItemNotified: received:node:9df754f1-33ac-4a32-93a5-4bd2de7bbb7b:localhost:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:Node 245d89a6-89ec-4580-a6d7-f2bd0d81519f :: false |
createNodes | 1.773s |
2021-01-14 21:44:33 |
2021-01-14 21:44:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:33 | ------------------------------------ 2021-01-14 21:44:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "pubsub#title": "Node 245d89a6-89ec-4580-a6d7-f2bd0d81519f" } 2021-01-14 21:44:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-14 21:44:35 | [Mutex] waiting for: [received:nodes:4c2d4abe-aa8a-44fe-822c-4da584491705:localhost] 2021-01-14 21:44:35 | [Mutex] waiting for: [received:nodes:4c2d4abe-aa8a-44fe-822c-4da584491705:localhost] 2021-01-14 21:44:35 | [Mutex] received everything. 2021-01-14 21:44:35 | [Mutex] isItemNotified: received:node:4c2d4abe-aa8a-44fe-822c-4da584491705:localhost:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:Node 245d89a6-89ec-4580-a6d7-f2bd0d81519f :: true |
createSubnodes | 1.030s |
2021-01-14 21:44:35 |
2021-01-14 21:44:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:35 | ------------------------------------ 2021-01-14 21:44:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef", "pubsub#title": "Node c23424be-0ef2-4b2e-aa1b-4d78ad4148ef" } 2021-01-14 21:44:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-14 21:44:36 | [Mutex] waiting for: [received:nodes:c8090ba7-ae98-48ce-8d9a-b2fa0e685c92:localhost] 2021-01-14 21:44:36 | [Mutex] received everything. 2021-01-14 21:44:36 | [Mutex] isItemNotified: received:node:c8090ba7-ae98-48ce-8d9a-b2fa0e685c92:localhost:node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef:Node c23424be-0ef2-4b2e-aa1b-4d78ad4148ef :: true |
deleteNodes | 1.030s |
2021-01-14 21:44:40 |
2021-01-14 21:44:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:40 | ------------------------------------ 2021-01-14 21:44:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef" } 2021-01-14 21:44:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-14 21:44:41 | [Mutex] waiting for: [received:nodes:30942e12-d95e-46a4-b57f-7b3469ee418a:localhost] 2021-01-14 21:44:41 | [Mutex] waiting for: [received:nodes:30942e12-d95e-46a4-b57f-7b3469ee418a:localhost] 2021-01-14 21:44:41 | [Mutex] received everything. 2021-01-14 21:44:41 | [Mutex] isItemNotified: received:node:30942e12-d95e-46a4-b57f-7b3469ee418a:localhost:node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef:Node c23424be-0ef2-4b2e-aa1b-4d78ad4148ef :: false |
deleteSubnodes | 1.034s |
2021-01-14 21:44:39 |
2021-01-14 21:44:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:39 | ------------------------------------ 2021-01-14 21:44:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f" } 2021-01-14 21:44:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-14 21:44:40 | [Mutex] waiting for: [received:nodes:43669d2e-2883-47f8-82ce-5f25b0980d9f:localhost] 2021-01-14 21:44:40 | [Mutex] waiting for: [received:nodes:43669d2e-2883-47f8-82ce-5f25b0980d9f:localhost] 2021-01-14 21:44:40 | [Mutex] received everything. 2021-01-14 21:44:40 | [Mutex] isItemNotified: received:node:43669d2e-2883-47f8-82ce-5f25b0980d9f:localhost:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:Node 245d89a6-89ec-4580-a6d7-f2bd0d81519f :: false 2021-01-14 21:44:40 | [Mutex] waiting for: [received:nodes:acb2821b-6cf9-4c34-9cd9-356104b51979:localhost] 2021-01-14 21:44:40 | [Mutex] received everything. 2021-01-14 21:44:40 | [Mutex] isItemNotified: received:node:acb2821b-6cf9-4c34-9cd9-356104b51979:localhost:node-245d89a6-89ec-4580-a6d7-f2bd0d81519f:Node 245d89a6-89ec-4580-a6d7-f2bd0d81519f :: false |
publishItemsToNodes | 0.064s |
2021-01-14 21:44:38 |
2021-01-14 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:38 | ------------------------------------ 2021-01-14 21:44:38 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "entry": "<test>item-40a82432-312a-4ea3-8a57-de274e4ac6dd</test>", "item-id": "item-40a82432-312a-4ea3-8a57-de274e4ac6dd" } 2021-01-14 21:44:38 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40a82432-312a-4ea3-8a57-de274e4ac6dd" } 2021-01-14 21:44:38 | [Mutex] waiting for: [published:item:notifieditem-40a82432-312a-4ea3-8a57-de274e4ac6dd:admin@test-domain.com] 2021-01-14 21:44:38 | [Mutex] received everything. 2021-01-14 21:44:38 | [Mutex] isItemNotified: published:item:notifieditem-40a82432-312a-4ea3-8a57-de274e4ac6dd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.103s |
2021-01-14 21:44:38 |
2021-01-14 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:38 | ------------------------------------ 2021-01-14 21:44:38 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "item-id": "item-40a82432-312a-4ea3-8a57-de274e4ac6dd" } 2021-01-14 21:44:38 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40a82432-312a-4ea3-8a57-de274e4ac6dd" } 2021-01-14 21:44:38 | [Mutex] waiting for: [retracted:item:notifieditem-40a82432-312a-4ea3-8a57-de274e4ac6dd:admin@test-domain.com] 2021-01-14 21:44:38 | [Mutex] received everything. 2021-01-14 21:44:38 | [Mutex] isItemNotified: retracted:item:notifieditem-40a82432-312a-4ea3-8a57-de274e4ac6dd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2021-01-14 21:44:38 |
2021-01-14 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:38 | ------------------------------------ 2021-01-14 21:44:38 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "item-id": "item-40a82432-312a-4ea3-8a57-de274e4ac6dd" } 2021-01-14 21:44:38 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "item-id": "item-40a82432-312a-4ea3-8a57-de274e4ac6dd", "item": [ "<item id=\"item-40a82432-312a-4ea3-8a57-de274e4ac6dd\"><test>item-40a82432-312a-4ea3-8a57-de274e4ac6dd</test></item>" ] } 2021-01-14 21:44:38 | [Mutex] notify: [retrieved:item:item-40a82432-312a-4ea3-8a57-de274e4ac6dd:payload-matches:true:localhost] 2021-01-14 21:44:38 | [Mutex] received everything. 2021-01-14 21:44:38 | [Mutex] isItemNotified: retrieved:item:item-40a82432-312a-4ea3-8a57-de274e4ac6dd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2021-01-14 21:44:38 |
2021-01-14 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:38 | ------------------------------------ 2021-01-14 21:44:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-14 21:44:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c23424be-0ef2-4b2e-aa1b-4d78ad4148ef", "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-01-14 21:44:38 |
2021-01-14 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:38 | ------------------------------------ 2021-01-14 21:44:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-245d89a6-89ec-4580-a6d7-f2bd0d81519f)" } 2021-01-14 21:44:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-01-14 21:44:37 |
2021-01-14 21:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:37 | ------------------------------------ 2021-01-14 21:44:37 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "jids": [ "admin@test-domain.com" ] } 2021-01-14 21:44:37 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.070s |
2021-01-14 21:44:38 |
2021-01-14 21:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-14 21:44:38 | ------------------------------------ 2021-01-14 21:44:38 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-245d89a6-89ec-4580-a6d7-f2bd0d81519f", "jids": [ "admin@test-domain.com" ] } 2021-01-14 21:44:38 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |