Test duration : 8.642s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2023-03-29 23:01:42 |
2023-03-29 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:42 | ------------------------------------ 2023-03-29 23:01:42 | [Mutex] waiting for: [configured:node:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8] 2023-03-29 23:01:42 | [Mutex] received everything. 2023-03-29 23:01:42 | [Mutex] isItemNotified: configured:node:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8 :: true 2023-03-29 23:01:43 | [Mutex] waiting for: [received:nodes:7341a884-2ed1-4ef3-9f0a-f6052217361d:localhost] 2023-03-29 23:01:43 | [Mutex] received everything. 2023-03-29 23:01:43 | [Mutex] isItemNotified: received:node:7341a884-2ed1-4ef3-9f0a-f6052217361d:localhost:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:Node e10e3ff5-0e6d-4cea-acf5-c1348efbc38c :: true 2023-03-29 23:01:43 | [Mutex] waiting for: [received:nodes:64b6af34-0cbf-4890-bc14-26b4b9602ff7:localhost] 2023-03-29 23:01:43 | [Mutex] waiting for: [received:nodes:64b6af34-0cbf-4890-bc14-26b4b9602ff7:localhost] 2023-03-29 23:01:43 | [Mutex] waiting for: [received:nodes:64b6af34-0cbf-4890-bc14-26b4b9602ff7:localhost] 2023-03-29 23:01:43 | [Mutex] received everything. 2023-03-29 23:01:43 | [Mutex] isItemNotified: received:node:64b6af34-0cbf-4890-bc14-26b4b9602ff7:localhost:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:Node e10e3ff5-0e6d-4cea-acf5-c1348efbc38c :: false |
createNodes | 1.620s |
2023-03-29 23:01:40 |
2023-03-29 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:40 | ------------------------------------ 2023-03-29 23:01:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "pubsub#title": "Node e10e3ff5-0e6d-4cea-acf5-c1348efbc38c" } 2023-03-29 23:01:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-29 23:01:41 | [Mutex] waiting for: [received:nodes:4f8a6e1b-4696-4794-b42c-d285781b9bbb:localhost] 2023-03-29 23:01:41 | [Mutex] waiting for: [received:nodes:4f8a6e1b-4696-4794-b42c-d285781b9bbb:localhost] 2023-03-29 23:01:41 | [Mutex] waiting for: [received:nodes:4f8a6e1b-4696-4794-b42c-d285781b9bbb:localhost] 2023-03-29 23:01:41 | [Mutex] received everything. 2023-03-29 23:01:41 | [Mutex] isItemNotified: received:node:4f8a6e1b-4696-4794-b42c-d285781b9bbb:localhost:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:Node e10e3ff5-0e6d-4cea-acf5-c1348efbc38c :: true |
createSubnodes | 1.029s |
2023-03-29 23:01:41 |
2023-03-29 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:41 | ------------------------------------ 2023-03-29 23:01:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8", "pubsub#title": "Node 5ac5d777-0c35-4c06-9adc-f8bc34b90da8" } 2023-03-29 23:01:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-29 23:01:42 | [Mutex] waiting for: [received:nodes:ac29bd30-1cd0-4dfb-8b7b-3c6c7394f083:localhost] 2023-03-29 23:01:42 | [Mutex] received everything. 2023-03-29 23:01:42 | [Mutex] isItemNotified: received:node:ac29bd30-1cd0-4dfb-8b7b-3c6c7394f083:localhost:node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8:Node 5ac5d777-0c35-4c06-9adc-f8bc34b90da8 :: true |
deleteNodes | 1.020s |
2023-03-29 23:01:47 |
2023-03-29 23:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:47 | ------------------------------------ 2023-03-29 23:01:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8" } 2023-03-29 23:01:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-29 23:01:48 | [Mutex] waiting for: [received:nodes:24560cb2-f418-4e77-8403-aa7bcf91c0fb:localhost] 2023-03-29 23:01:48 | [Mutex] waiting for: [received:nodes:24560cb2-f418-4e77-8403-aa7bcf91c0fb:localhost] 2023-03-29 23:01:48 | [Mutex] waiting for: [received:nodes:24560cb2-f418-4e77-8403-aa7bcf91c0fb:localhost] 2023-03-29 23:01:48 | [Mutex] received everything. 2023-03-29 23:01:48 | [Mutex] isItemNotified: received:node:24560cb2-f418-4e77-8403-aa7bcf91c0fb:localhost:node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8:Node 5ac5d777-0c35-4c06-9adc-f8bc34b90da8 :: false |
deleteSubnodes | 1.027s |
2023-03-29 23:01:46 |
2023-03-29 23:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:46 | ------------------------------------ 2023-03-29 23:01:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c" } 2023-03-29 23:01:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-29 23:01:47 | [Mutex] waiting for: [received:nodes:67de8417-d367-4b78-b1fc-af09dd62602c:localhost] 2023-03-29 23:01:47 | [Mutex] waiting for: [received:nodes:67de8417-d367-4b78-b1fc-af09dd62602c:localhost] 2023-03-29 23:01:47 | [Mutex] waiting for: [received:nodes:67de8417-d367-4b78-b1fc-af09dd62602c:localhost] 2023-03-29 23:01:47 | [Mutex] received everything. 2023-03-29 23:01:47 | [Mutex] isItemNotified: received:node:67de8417-d367-4b78-b1fc-af09dd62602c:localhost:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:Node e10e3ff5-0e6d-4cea-acf5-c1348efbc38c :: false 2023-03-29 23:01:47 | [Mutex] waiting for: [received:nodes:eacb2450-40a5-4694-aaa5-e04b3a719c5c:localhost] 2023-03-29 23:01:47 | [Mutex] received everything. 2023-03-29 23:01:47 | [Mutex] isItemNotified: received:node:eacb2450-40a5-4694-aaa5-e04b3a719c5c:localhost:node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c:Node e10e3ff5-0e6d-4cea-acf5-c1348efbc38c :: false |
publishItemsToNodes | 0.041s |
2023-03-29 23:01:44 |
2023-03-29 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:44 | ------------------------------------ 2023-03-29 23:01:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "entry": "<test>item-aacece28-e937-4fde-b53c-f9b99197488b</test>", "item-id": "item-aacece28-e937-4fde-b53c-f9b99197488b" } 2023-03-29 23:01:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-aacece28-e937-4fde-b53c-f9b99197488b" } 2023-03-29 23:01:44 | [Mutex] waiting for: [published:item:notifieditem-aacece28-e937-4fde-b53c-f9b99197488b:admin@test-domain.com] 2023-03-29 23:01:44 | [Mutex] received everything. 2023-03-29 23:01:44 | [Mutex] isItemNotified: published:item:notifieditem-aacece28-e937-4fde-b53c-f9b99197488b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2023-03-29 23:01:45 |
2023-03-29 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:45 | ------------------------------------ 2023-03-29 23:01:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "item-id": "item-aacece28-e937-4fde-b53c-f9b99197488b" } 2023-03-29 23:01:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-aacece28-e937-4fde-b53c-f9b99197488b" } 2023-03-29 23:01:45 | [Mutex] waiting for: [retracted:item:notifieditem-aacece28-e937-4fde-b53c-f9b99197488b:admin@test-domain.com] 2023-03-29 23:01:45 | [Mutex] received everything. 2023-03-29 23:01:45 | [Mutex] isItemNotified: retracted:item:notifieditem-aacece28-e937-4fde-b53c-f9b99197488b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.044s |
2023-03-29 23:01:45 |
2023-03-29 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:45 | ------------------------------------ 2023-03-29 23:01:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "item-id": "item-aacece28-e937-4fde-b53c-f9b99197488b" } 2023-03-29 23:01:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "item-id": "item-aacece28-e937-4fde-b53c-f9b99197488b", "item": [ "<item id=\"item-aacece28-e937-4fde-b53c-f9b99197488b\"><test>item-aacece28-e937-4fde-b53c-f9b99197488b</test></item>" ] } 2023-03-29 23:01:45 | [Mutex] notify: [retrieved:item:item-aacece28-e937-4fde-b53c-f9b99197488b:payload-matches:true:localhost] 2023-03-29 23:01:45 | [Mutex] received everything. 2023-03-29 23:01:45 | [Mutex] isItemNotified: retrieved:item:item-aacece28-e937-4fde-b53c-f9b99197488b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2023-03-29 23:01:45 |
2023-03-29 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:45 | ------------------------------------ 2023-03-29 23:01:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-29 23:01:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "test", "node-5ac5d777-0c35-4c06-9adc-f8bc34b90da8" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-03-29 23:01:45 |
2023-03-29 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:45 | ------------------------------------ 2023-03-29 23:01:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c)" } 2023-03-29 23:01:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2023-03-29 23:01:43 |
2023-03-29 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:43 | ------------------------------------ 2023-03-29 23:01:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "jids": [ "admin@test-domain.com" ] } 2023-03-29 23:01:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2023-03-29 23:01:45 |
2023-03-29 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-29 23:01:45 | ------------------------------------ 2023-03-29 23:01:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e10e3ff5-0e6d-4cea-acf5-c1348efbc38c", "jids": [ "admin@test-domain.com" ] } 2023-03-29 23:01:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |