Test duration : 8.888s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.040s |
2021-05-25 22:30:29 |
2021-05-25 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:29 | ------------------------------------ 2021-05-25 22:30:29 | [Mutex] waiting for: [configured:node:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:node-a2f7cf51-b99c-40db-9882-42b2ead4b005] 2021-05-25 22:30:29 | [Mutex] received everything. 2021-05-25 22:30:29 | [Mutex] isItemNotified: configured:node:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:node-a2f7cf51-b99c-40db-9882-42b2ead4b005 :: true 2021-05-25 22:30:30 | [Mutex] waiting for: [received:nodes:7e6da604-b48b-4120-92ae-0d889499ccdf:localhost] 2021-05-25 22:30:30 | [Mutex] received everything. 2021-05-25 22:30:30 | [Mutex] isItemNotified: received:node:7e6da604-b48b-4120-92ae-0d889499ccdf:localhost:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:Node 0af58aec-e57b-4ddc-8323-ec5e6be9adff :: true 2021-05-25 22:30:30 | [Mutex] waiting for: [received:nodes:b1038755-607d-4acf-8a1b-94f2dc17af44:localhost] 2021-05-25 22:30:30 | [Mutex] received everything. 2021-05-25 22:30:30 | [Mutex] isItemNotified: received:node:b1038755-607d-4acf-8a1b-94f2dc17af44:localhost:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:Node 0af58aec-e57b-4ddc-8323-ec5e6be9adff :: false |
createNodes | 1.664s |
2021-05-25 22:30:27 |
2021-05-25 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:27 | ------------------------------------ 2021-05-25 22:30:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "pubsub#title": "Node 0af58aec-e57b-4ddc-8323-ec5e6be9adff" } 2021-05-25 22:30:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:28 | [Mutex] waiting for: [received:nodes:fdd944a0-c920-4123-911e-2add2ad71382:localhost] 2021-05-25 22:30:28 | [Mutex] received everything. 2021-05-25 22:30:28 | [Mutex] isItemNotified: received:node:fdd944a0-c920-4123-911e-2add2ad71382:localhost:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:Node 0af58aec-e57b-4ddc-8323-ec5e6be9adff :: true |
createSubnodes | 1.029s |
2021-05-25 22:30:28 |
2021-05-25 22:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:28 | ------------------------------------ 2021-05-25 22:30:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a2f7cf51-b99c-40db-9882-42b2ead4b005", "pubsub#title": "Node a2f7cf51-b99c-40db-9882-42b2ead4b005" } 2021-05-25 22:30:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:29 | [Mutex] waiting for: [received:nodes:132556ae-f5a1-498c-9132-51ee72cafbe1:localhost] 2021-05-25 22:30:29 | [Mutex] received everything. 2021-05-25 22:30:29 | [Mutex] isItemNotified: received:node:132556ae-f5a1-498c-9132-51ee72cafbe1:localhost:node-a2f7cf51-b99c-40db-9882-42b2ead4b005:Node a2f7cf51-b99c-40db-9882-42b2ead4b005 :: true |
deleteNodes | 1.021s |
2021-05-25 22:30:34 |
2021-05-25 22:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:34 | ------------------------------------ 2021-05-25 22:30:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a2f7cf51-b99c-40db-9882-42b2ead4b005" } 2021-05-25 22:30:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:35 | [Mutex] waiting for: [received:nodes:434a4194-eff5-41e4-8e09-28acc7146ed7:localhost] 2021-05-25 22:30:35 | [Mutex] waiting for: [received:nodes:434a4194-eff5-41e4-8e09-28acc7146ed7:localhost] 2021-05-25 22:30:35 | [Mutex] received everything. 2021-05-25 22:30:35 | [Mutex] isItemNotified: received:node:434a4194-eff5-41e4-8e09-28acc7146ed7:localhost:node-a2f7cf51-b99c-40db-9882-42b2ead4b005:Node a2f7cf51-b99c-40db-9882-42b2ead4b005 :: false |
deleteSubnodes | 1.030s |
2021-05-25 22:30:33 |
2021-05-25 22:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:33 | ------------------------------------ 2021-05-25 22:30:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff" } 2021-05-25 22:30:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:34 | [Mutex] waiting for: [received:nodes:248ebd9a-1d83-49b0-b300-6f07332fe96b:localhost] 2021-05-25 22:30:34 | [Mutex] waiting for: [received:nodes:248ebd9a-1d83-49b0-b300-6f07332fe96b:localhost] 2021-05-25 22:30:34 | [Mutex] received everything. 2021-05-25 22:30:34 | [Mutex] isItemNotified: received:node:248ebd9a-1d83-49b0-b300-6f07332fe96b:localhost:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:Node 0af58aec-e57b-4ddc-8323-ec5e6be9adff :: false 2021-05-25 22:30:34 | [Mutex] waiting for: [received:nodes:13139d17-f086-494a-b88e-a554360c375d:localhost] 2021-05-25 22:30:34 | [Mutex] received everything. 2021-05-25 22:30:34 | [Mutex] isItemNotified: received:node:13139d17-f086-494a-b88e-a554360c375d:localhost:node-0af58aec-e57b-4ddc-8323-ec5e6be9adff:Node 0af58aec-e57b-4ddc-8323-ec5e6be9adff :: false |
publishItemsToNodes | 0.072s |
2021-05-25 22:30:31 |
2021-05-25 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:31 | ------------------------------------ 2021-05-25 22:30:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "entry": "<test>item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0</test>", "item-id": "item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0" } 2021-05-25 22:30:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0" } 2021-05-25 22:30:31 | [Mutex] waiting for: [published:item:notifieditem-2718a5dc-fb16-4059-99ae-ca2e9e8509a0:admin@test-domain.com] 2021-05-25 22:30:31 | [Mutex] received everything. 2021-05-25 22:30:31 | [Mutex] isItemNotified: published:item:notifieditem-2718a5dc-fb16-4059-99ae-ca2e9e8509a0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.092s |
2021-05-25 22:30:32 |
2021-05-25 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:32 | ------------------------------------ 2021-05-25 22:30:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "item-id": "item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0" } 2021-05-25 22:30:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0" } 2021-05-25 22:30:32 | [Mutex] waiting for: [retracted:item:notifieditem-2718a5dc-fb16-4059-99ae-ca2e9e8509a0:admin@test-domain.com] 2021-05-25 22:30:32 | [Mutex] received everything. 2021-05-25 22:30:32 | [Mutex] isItemNotified: retracted:item:notifieditem-2718a5dc-fb16-4059-99ae-ca2e9e8509a0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.025s |
2021-05-25 22:30:31 |
2021-05-25 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:31 | ------------------------------------ 2021-05-25 22:30:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "item-id": "item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0" } 2021-05-25 22:30:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "item-id": "item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0", "item": [ "<item id=\"item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0\"><test>item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0</test></item>" ] } 2021-05-25 22:30:31 | [Mutex] notify: [retrieved:item:item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0:payload-matches:true:localhost] 2021-05-25 22:30:31 | [Mutex] received everything. 2021-05-25 22:30:31 | [Mutex] isItemNotified: retrieved:item:item-2718a5dc-fb16-4059-99ae-ca2e9e8509a0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.076s |
2021-05-25 22:30:31 |
2021-05-25 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:31 | ------------------------------------ 2021-05-25 22:30:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-25 22:30:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "node-a2f7cf51-b99c-40db-9882-42b2ead4b005" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-05-25 22:30:31 |
2021-05-25 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:31 | ------------------------------------ 2021-05-25 22:30:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0af58aec-e57b-4ddc-8323-ec5e6be9adff)" } 2021-05-25 22:30:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-05-25 22:30:30 |
2021-05-25 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:30 | ------------------------------------ 2021-05-25 22:30:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "jids": [ "admin@test-domain.com" ] } 2021-05-25 22:30:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.018s |
2021-05-25 22:30:32 |
2021-05-25 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:32 | ------------------------------------ 2021-05-25 22:30:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0af58aec-e57b-4ddc-8323-ec5e6be9adff", "jids": [ "admin@test-domain.com" ] } 2021-05-25 22:30:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |