Test duration : 8.995s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2021-06-24 22:28:42 |
2021-06-24 22:28:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:42 | ------------------------------------ 2021-06-24 22:28:42 | [Mutex] waiting for: [configured:node:node-6b573714-8302-4ab5-ad0a-220142845238:node-29a94f2c-3fd6-4a07-9736-e3ed70815806] 2021-06-24 22:28:42 | [Mutex] received everything. 2021-06-24 22:28:42 | [Mutex] isItemNotified: configured:node:node-6b573714-8302-4ab5-ad0a-220142845238:node-29a94f2c-3fd6-4a07-9736-e3ed70815806 :: true 2021-06-24 22:28:43 | [Mutex] waiting for: [received:nodes:1bc7162f-a85e-4d92-980a-774ac7ea2743:localhost] 2021-06-24 22:28:43 | [Mutex] waiting for: [received:nodes:1bc7162f-a85e-4d92-980a-774ac7ea2743:localhost] 2021-06-24 22:28:43 | [Mutex] received everything. 2021-06-24 22:28:43 | [Mutex] isItemNotified: received:node:1bc7162f-a85e-4d92-980a-774ac7ea2743:localhost:node-6b573714-8302-4ab5-ad0a-220142845238:Node 6b573714-8302-4ab5-ad0a-220142845238 :: true 2021-06-24 22:28:43 | [Mutex] waiting for: [received:nodes:bed03de8-8497-412e-9e29-68b5c40b93d4:localhost] 2021-06-24 22:28:43 | [Mutex] waiting for: [received:nodes:bed03de8-8497-412e-9e29-68b5c40b93d4:localhost] 2021-06-24 22:28:43 | [Mutex] waiting for: [received:nodes:bed03de8-8497-412e-9e29-68b5c40b93d4:localhost] 2021-06-24 22:28:43 | [Mutex] received everything. 2021-06-24 22:28:43 | [Mutex] isItemNotified: received:node:bed03de8-8497-412e-9e29-68b5c40b93d4:localhost:node-6b573714-8302-4ab5-ad0a-220142845238:Node 6b573714-8302-4ab5-ad0a-220142845238 :: false |
createNodes | 1.780s |
2021-06-24 22:28:39 |
2021-06-24 22:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:39 | ------------------------------------ 2021-06-24 22:28: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-6b573714-8302-4ab5-ad0a-220142845238", "pubsub#title": "Node 6b573714-8302-4ab5-ad0a-220142845238" } 2021-06-24 22:28:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:28:41 | [Mutex] waiting for: [received:nodes:9eb19228-d751-4e55-b705-26e4bbb8a7e2:localhost] 2021-06-24 22:28:41 | [Mutex] received everything. 2021-06-24 22:28:41 | [Mutex] isItemNotified: received:node:9eb19228-d751-4e55-b705-26e4bbb8a7e2:localhost:node-6b573714-8302-4ab5-ad0a-220142845238:Node 6b573714-8302-4ab5-ad0a-220142845238 :: true |
createSubnodes | 1.038s |
2021-06-24 22:28:41 |
2021-06-24 22:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:41 | ------------------------------------ 2021-06-24 22:28: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-29a94f2c-3fd6-4a07-9736-e3ed70815806", "pubsub#title": "Node 29a94f2c-3fd6-4a07-9736-e3ed70815806" } 2021-06-24 22:28:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:28:42 | [Mutex] waiting for: [received:nodes:8b775768-2f6c-42db-a115-e773f7a100f8:localhost] 2021-06-24 22:28:42 | [Mutex] received everything. 2021-06-24 22:28:42 | [Mutex] isItemNotified: received:node:8b775768-2f6c-42db-a115-e773f7a100f8:localhost:node-29a94f2c-3fd6-4a07-9736-e3ed70815806:Node 29a94f2c-3fd6-4a07-9736-e3ed70815806 :: true |
deleteNodes | 1.024s |
2021-06-24 22:28:47 |
2021-06-24 22:28:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:47 | ------------------------------------ 2021-06-24 22:28:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-29a94f2c-3fd6-4a07-9736-e3ed70815806" } 2021-06-24 22:28:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:28:48 | [Mutex] waiting for: [received:nodes:84be80dc-e121-4768-ae20-dba5a229993e:localhost] 2021-06-24 22:28:48 | [Mutex] received everything. 2021-06-24 22:28:48 | [Mutex] isItemNotified: received:node:84be80dc-e121-4768-ae20-dba5a229993e:localhost:node-29a94f2c-3fd6-4a07-9736-e3ed70815806:Node 29a94f2c-3fd6-4a07-9736-e3ed70815806 :: false |
deleteSubnodes | 1.029s |
2021-06-24 22:28:45 |
2021-06-24 22:28:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:45 | ------------------------------------ 2021-06-24 22:28:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6b573714-8302-4ab5-ad0a-220142845238" } 2021-06-24 22:28:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:28:46 | [Mutex] waiting for: [received:nodes:e8fd468b-e035-45be-9f8d-260faa194eb0:localhost] 2021-06-24 22:28:46 | [Mutex] received everything. 2021-06-24 22:28:46 | [Mutex] isItemNotified: received:node:e8fd468b-e035-45be-9f8d-260faa194eb0:localhost:node-6b573714-8302-4ab5-ad0a-220142845238:Node 6b573714-8302-4ab5-ad0a-220142845238 :: false 2021-06-24 22:28:46 | [Mutex] waiting for: [received:nodes:34f008c8-8dcd-488f-9d31-0a39c972f3c3:localhost] 2021-06-24 22:28:46 | [Mutex] received everything. 2021-06-24 22:28:46 | [Mutex] isItemNotified: received:node:34f008c8-8dcd-488f-9d31-0a39c972f3c3:localhost:node-6b573714-8302-4ab5-ad0a-220142845238:Node 6b573714-8302-4ab5-ad0a-220142845238 :: false |
publishItemsToNodes | 0.030s |
2021-06-24 22:28:44 |
2021-06-24 22:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:44 | ------------------------------------ 2021-06-24 22:28:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6b573714-8302-4ab5-ad0a-220142845238", "entry": "<test>item-edaa4222-aaa6-40c8-bea6-0579ee78870e</test>", "item-id": "item-edaa4222-aaa6-40c8-bea6-0579ee78870e" } 2021-06-24 22:28:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-edaa4222-aaa6-40c8-bea6-0579ee78870e" } 2021-06-24 22:28:44 | [Mutex] waiting for: [published:item:notifieditem-edaa4222-aaa6-40c8-bea6-0579ee78870e:admin@test-domain.com] 2021-06-24 22:28:44 | [Mutex] received everything. 2021-06-24 22:28:44 | [Mutex] isItemNotified: published:item:notifieditem-edaa4222-aaa6-40c8-bea6-0579ee78870e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.106s |
2021-06-24 22:28:44 |
2021-06-24 22:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:44 | ------------------------------------ 2021-06-24 22:28:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6b573714-8302-4ab5-ad0a-220142845238", "item-id": "item-edaa4222-aaa6-40c8-bea6-0579ee78870e" } 2021-06-24 22:28:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-edaa4222-aaa6-40c8-bea6-0579ee78870e" } 2021-06-24 22:28:44 | [Mutex] waiting for: [retracted:item:notifieditem-edaa4222-aaa6-40c8-bea6-0579ee78870e:admin@test-domain.com] 2021-06-24 22:28:44 | [Mutex] received everything. 2021-06-24 22:28:44 | [Mutex] isItemNotified: retracted:item:notifieditem-edaa4222-aaa6-40c8-bea6-0579ee78870e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2021-06-24 22:28:44 |
2021-06-24 22:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:44 | ------------------------------------ 2021-06-24 22:28:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6b573714-8302-4ab5-ad0a-220142845238", "item-id": "item-edaa4222-aaa6-40c8-bea6-0579ee78870e" } 2021-06-24 22:28:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6b573714-8302-4ab5-ad0a-220142845238", "item-id": "item-edaa4222-aaa6-40c8-bea6-0579ee78870e", "item": [ "<item id=\"item-edaa4222-aaa6-40c8-bea6-0579ee78870e\"><test>item-edaa4222-aaa6-40c8-bea6-0579ee78870e</test></item>" ] } 2021-06-24 22:28:44 | [Mutex] notify: [retrieved:item:item-edaa4222-aaa6-40c8-bea6-0579ee78870e:payload-matches:true:localhost] 2021-06-24 22:28:44 | [Mutex] received everything. 2021-06-24 22:28:44 | [Mutex] isItemNotified: retrieved:item:item-edaa4222-aaa6-40c8-bea6-0579ee78870e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-06-24 22:28:44 |
2021-06-24 22:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:44 | ------------------------------------ 2021-06-24 22:28:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-24 22:28:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6b573714-8302-4ab5-ad0a-220142845238", "node-29a94f2c-3fd6-4a07-9736-e3ed70815806" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-06-24 22:28:44 |
2021-06-24 22:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:44 | ------------------------------------ 2021-06-24 22:28:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6b573714-8302-4ab5-ad0a-220142845238)" } 2021-06-24 22:28:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-06-24 22:28:43 |
2021-06-24 22:28:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:43 | ------------------------------------ 2021-06-24 22:28:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6b573714-8302-4ab5-ad0a-220142845238", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:28:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.040s |
2021-06-24 22:28:44 |
2021-06-24 22:28:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:28:44 | ------------------------------------ 2021-06-24 22:28:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6b573714-8302-4ab5-ad0a-220142845238", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:28:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |