Test duration : 9.051s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2022-02-17 22:03:03 |
2022-02-17 22:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:03 | ------------------------------------ 2022-02-17 22:03:03 | [Mutex] waiting for: [configured:node:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:node-367ad992-c4cf-43ec-bdb4-5177b9b184b4] 2022-02-17 22:03:03 | [Mutex] received everything. 2022-02-17 22:03:03 | [Mutex] isItemNotified: configured:node:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:node-367ad992-c4cf-43ec-bdb4-5177b9b184b4 :: true 2022-02-17 22:03:04 | [Mutex] waiting for: [received:nodes:1cad0e14-88fd-4b32-85f9-b1f5578e6b82:localhost] 2022-02-17 22:03:04 | [Mutex] waiting for: [received:nodes:1cad0e14-88fd-4b32-85f9-b1f5578e6b82:localhost] 2022-02-17 22:03:04 | [Mutex] received everything. 2022-02-17 22:03:04 | [Mutex] isItemNotified: received:node:1cad0e14-88fd-4b32-85f9-b1f5578e6b82:localhost:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:Node f2fa1042-a47a-435e-84f8-2eeac33dabf8 :: true 2022-02-17 22:03:04 | [Mutex] waiting for: [received:nodes:021bd5f4-dbf5-43c7-a48d-d0321861d507:localhost] 2022-02-17 22:03:04 | [Mutex] received everything. 2022-02-17 22:03:04 | [Mutex] isItemNotified: received:node:021bd5f4-dbf5-43c7-a48d-d0321861d507:localhost:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:Node f2fa1042-a47a-435e-84f8-2eeac33dabf8 :: false |
createNodes | 1.737s |
2022-02-17 22:03:00 |
2022-02-17 22:03:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:00 | ------------------------------------ 2022-02-17 22:03:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "pubsub#title": "Node f2fa1042-a47a-435e-84f8-2eeac33dabf8" } 2022-02-17 22:03:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 22:03:01 | [Mutex] waiting for: [received:nodes:a73c7f3b-aba4-4772-9cb7-c0a99f4d79ef:localhost] 2022-02-17 22:03:02 | [Mutex] received everything. 2022-02-17 22:03:02 | [Mutex] isItemNotified: received:node:a73c7f3b-aba4-4772-9cb7-c0a99f4d79ef:localhost:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:Node f2fa1042-a47a-435e-84f8-2eeac33dabf8 :: true |
createSubnodes | 1.026s |
2022-02-17 22:03:02 |
2022-02-17 22:03:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:02 | ------------------------------------ 2022-02-17 22:03:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-367ad992-c4cf-43ec-bdb4-5177b9b184b4", "pubsub#title": "Node 367ad992-c4cf-43ec-bdb4-5177b9b184b4" } 2022-02-17 22:03:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 22:03:03 | [Mutex] waiting for: [received:nodes:62aca920-adb8-41c9-9a7a-5aef5916ea01:localhost] 2022-02-17 22:03:03 | [Mutex] waiting for: [received:nodes:62aca920-adb8-41c9-9a7a-5aef5916ea01:localhost] 2022-02-17 22:03:03 | [Mutex] received everything. 2022-02-17 22:03:03 | [Mutex] isItemNotified: received:node:62aca920-adb8-41c9-9a7a-5aef5916ea01:localhost:node-367ad992-c4cf-43ec-bdb4-5177b9b184b4:Node 367ad992-c4cf-43ec-bdb4-5177b9b184b4 :: true |
deleteNodes | 1.021s |
2022-02-17 22:03:07 |
2022-02-17 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:07 | ------------------------------------ 2022-02-17 22:03:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-367ad992-c4cf-43ec-bdb4-5177b9b184b4" } 2022-02-17 22:03:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 22:03:08 | [Mutex] waiting for: [received:nodes:ef853089-d460-48b4-b845-36e755e128c5:localhost] 2022-02-17 22:03:08 | [Mutex] waiting for: [received:nodes:ef853089-d460-48b4-b845-36e755e128c5:localhost] 2022-02-17 22:03:08 | [Mutex] received everything. 2022-02-17 22:03:08 | [Mutex] isItemNotified: received:node:ef853089-d460-48b4-b845-36e755e128c5:localhost:node-367ad992-c4cf-43ec-bdb4-5177b9b184b4:Node 367ad992-c4cf-43ec-bdb4-5177b9b184b4 :: false |
deleteSubnodes | 1.027s |
2022-02-17 22:03:06 |
2022-02-17 22:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:06 | ------------------------------------ 2022-02-17 22:03:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8" } 2022-02-17 22:03:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 22:03:07 | [Mutex] waiting for: [received:nodes:6efbf1b1-93b0-482a-8818-fb20ec7b2824:localhost] 2022-02-17 22:03:07 | [Mutex] received everything. 2022-02-17 22:03:07 | [Mutex] isItemNotified: received:node:6efbf1b1-93b0-482a-8818-fb20ec7b2824:localhost:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:Node f2fa1042-a47a-435e-84f8-2eeac33dabf8 :: false 2022-02-17 22:03:07 | [Mutex] waiting for: [received:nodes:e61fe740-9a75-4ca7-93b7-320697ab714a:localhost] 2022-02-17 22:03:07 | [Mutex] received everything. 2022-02-17 22:03:07 | [Mutex] isItemNotified: received:node:e61fe740-9a75-4ca7-93b7-320697ab714a:localhost:node-f2fa1042-a47a-435e-84f8-2eeac33dabf8:Node f2fa1042-a47a-435e-84f8-2eeac33dabf8 :: false |
publishItemsToNodes | 0.061s |
2022-02-17 22:03:05 |
2022-02-17 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:05 | ------------------------------------ 2022-02-17 22:03:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "entry": "<test>item-3b2d6f50-7819-4b48-a8e7-76303286bc2d</test>", "item-id": "item-3b2d6f50-7819-4b48-a8e7-76303286bc2d" } 2022-02-17 22:03:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3b2d6f50-7819-4b48-a8e7-76303286bc2d" } 2022-02-17 22:03:05 | [Mutex] waiting for: [published:item:notifieditem-3b2d6f50-7819-4b48-a8e7-76303286bc2d:admin@test-domain.com] 2022-02-17 22:03:05 | [Mutex] received everything. 2022-02-17 22:03:05 | [Mutex] isItemNotified: published:item:notifieditem-3b2d6f50-7819-4b48-a8e7-76303286bc2d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2022-02-17 22:03:05 |
2022-02-17 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:05 | ------------------------------------ 2022-02-17 22:03:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "item-id": "item-3b2d6f50-7819-4b48-a8e7-76303286bc2d" } 2022-02-17 22:03:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3b2d6f50-7819-4b48-a8e7-76303286bc2d" } 2022-02-17 22:03:05 | [Mutex] received everything. 2022-02-17 22:03:05 | [Mutex] isItemNotified: retracted:item:notifieditem-3b2d6f50-7819-4b48-a8e7-76303286bc2d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.043s |
2022-02-17 22:03:05 |
2022-02-17 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:05 | ------------------------------------ 2022-02-17 22:03:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "item-id": "item-3b2d6f50-7819-4b48-a8e7-76303286bc2d" } 2022-02-17 22:03:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "item-id": "item-3b2d6f50-7819-4b48-a8e7-76303286bc2d", "item": [ "<item id=\"item-3b2d6f50-7819-4b48-a8e7-76303286bc2d\"><test>item-3b2d6f50-7819-4b48-a8e7-76303286bc2d</test></item>" ] } 2022-02-17 22:03:05 | [Mutex] notify: [retrieved:item:item-3b2d6f50-7819-4b48-a8e7-76303286bc2d:payload-matches:true:localhost] 2022-02-17 22:03:05 | [Mutex] received everything. 2022-02-17 22:03:05 | [Mutex] isItemNotified: retrieved:item:item-3b2d6f50-7819-4b48-a8e7-76303286bc2d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.056s |
2022-02-17 22:03:05 |
2022-02-17 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:05 | ------------------------------------ 2022-02-17 22:03:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-17 22:03:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "node-367ad992-c4cf-43ec-bdb4-5177b9b184b4" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-17 22:03:05 |
2022-02-17 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:05 | ------------------------------------ 2022-02-17 22:03:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f2fa1042-a47a-435e-84f8-2eeac33dabf8)" } 2022-02-17 22:03:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-02-17 22:03:04 |
2022-02-17 22:03:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:04 | ------------------------------------ 2022-02-17 22:03:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "jids": [ "admin@test-domain.com" ] } 2022-02-17 22:03:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.057s |
2022-02-17 22:03:05 |
2022-02-17 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 22:03:05 | ------------------------------------ 2022-02-17 22:03:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f2fa1042-a47a-435e-84f8-2eeac33dabf8", "jids": [ "admin@test-domain.com" ] } 2022-02-17 22:03:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |