Test duration : 8.596s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2022-07-07 22:32:10 |
2022-07-07 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:10 | ------------------------------------ 2022-07-07 22:32:10 | [Mutex] waiting for: [configured:node:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:node-e795326d-fcfb-46d0-90ce-4ce6586bfb36] 2022-07-07 22:32:10 | [Mutex] received everything. 2022-07-07 22:32:10 | [Mutex] isItemNotified: configured:node:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:node-e795326d-fcfb-46d0-90ce-4ce6586bfb36 :: true 2022-07-07 22:32:11 | [Mutex] waiting for: [received:nodes:429dd304-0bb7-4784-901e-e0973f4307cd:localhost] 2022-07-07 22:32:11 | [Mutex] received everything. 2022-07-07 22:32:11 | [Mutex] isItemNotified: received:node:429dd304-0bb7-4784-901e-e0973f4307cd:localhost:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:Node 90e74071-678c-4e8e-940e-6f4cc1d2d498 :: true 2022-07-07 22:32:11 | [Mutex] waiting for: [received:nodes:99e82a5c-0a9a-469e-b1ef-867487b6c0bb:localhost] 2022-07-07 22:32:11 | [Mutex] received everything. 2022-07-07 22:32:11 | [Mutex] isItemNotified: received:node:99e82a5c-0a9a-469e-b1ef-867487b6c0bb:localhost:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:Node 90e74071-678c-4e8e-940e-6f4cc1d2d498 :: false |
createNodes | 1.551s |
2022-07-07 22:32:07 |
2022-07-07 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:07 | ------------------------------------ 2022-07-07 22:32:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "pubsub#title": "Node 90e74071-678c-4e8e-940e-6f4cc1d2d498" } 2022-07-07 22:32:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:32:09 | [Mutex] waiting for: [received:nodes:744bc3a6-2e86-451a-af82-14ebb8c7c978:localhost] 2022-07-07 22:32:09 | [Mutex] waiting for: [received:nodes:744bc3a6-2e86-451a-af82-14ebb8c7c978:localhost] 2022-07-07 22:32:09 | [Mutex] received everything. 2022-07-07 22:32:09 | [Mutex] isItemNotified: received:node:744bc3a6-2e86-451a-af82-14ebb8c7c978:localhost:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:Node 90e74071-678c-4e8e-940e-6f4cc1d2d498 :: true |
createSubnodes | 1.025s |
2022-07-07 22:32:09 |
2022-07-07 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:09 | ------------------------------------ 2022-07-07 22:32:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e795326d-fcfb-46d0-90ce-4ce6586bfb36", "pubsub#title": "Node e795326d-fcfb-46d0-90ce-4ce6586bfb36" } 2022-07-07 22:32:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:32:10 | [Mutex] waiting for: [received:nodes:4053f3ec-2779-42c6-9514-c6de7531de8e:localhost] 2022-07-07 22:32:10 | [Mutex] received everything. 2022-07-07 22:32:10 | [Mutex] isItemNotified: received:node:4053f3ec-2779-42c6-9514-c6de7531de8e:localhost:node-e795326d-fcfb-46d0-90ce-4ce6586bfb36:Node e795326d-fcfb-46d0-90ce-4ce6586bfb36 :: true |
deleteNodes | 1.022s |
2022-07-07 22:32:14 |
2022-07-07 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:14 | ------------------------------------ 2022-07-07 22:32:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e795326d-fcfb-46d0-90ce-4ce6586bfb36" } 2022-07-07 22:32:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:32:15 | [Mutex] waiting for: [received:nodes:b7b663ce-b4e8-45e9-8593-364e1a2e2b44:localhost] 2022-07-07 22:32:15 | [Mutex] received everything. 2022-07-07 22:32:15 | [Mutex] isItemNotified: received:node:b7b663ce-b4e8-45e9-8593-364e1a2e2b44:localhost:node-e795326d-fcfb-46d0-90ce-4ce6586bfb36:Node e795326d-fcfb-46d0-90ce-4ce6586bfb36 :: false |
deleteSubnodes | 1.031s |
2022-07-07 22:32:13 |
2022-07-07 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:13 | ------------------------------------ 2022-07-07 22:32:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498" } 2022-07-07 22:32:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:32:14 | [Mutex] waiting for: [received:nodes:7134e975-10d7-46a4-9ef7-01e0c864e97b:localhost] 2022-07-07 22:32:14 | [Mutex] waiting for: [received:nodes:7134e975-10d7-46a4-9ef7-01e0c864e97b:localhost] 2022-07-07 22:32:14 | [Mutex] received everything. 2022-07-07 22:32:14 | [Mutex] isItemNotified: received:node:7134e975-10d7-46a4-9ef7-01e0c864e97b:localhost:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:Node 90e74071-678c-4e8e-940e-6f4cc1d2d498 :: false 2022-07-07 22:32:14 | [Mutex] waiting for: [received:nodes:64f5e779-dbd9-4187-8d8c-9379305d3a30:localhost] 2022-07-07 22:32:14 | [Mutex] received everything. 2022-07-07 22:32:14 | [Mutex] isItemNotified: received:node:64f5e779-dbd9-4187-8d8c-9379305d3a30:localhost:node-90e74071-678c-4e8e-940e-6f4cc1d2d498:Node 90e74071-678c-4e8e-940e-6f4cc1d2d498 :: false |
publishItemsToNodes | 0.055s |
2022-07-07 22:32:12 |
2022-07-07 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:12 | ------------------------------------ 2022-07-07 22:32:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "entry": "<test>item-808a1513-f626-47ae-9b07-fedd7d524ead</test>", "item-id": "item-808a1513-f626-47ae-9b07-fedd7d524ead" } 2022-07-07 22:32:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-808a1513-f626-47ae-9b07-fedd7d524ead" } 2022-07-07 22:32:12 | [Mutex] waiting for: [published:item:notifieditem-808a1513-f626-47ae-9b07-fedd7d524ead:admin@test-domain.com] 2022-07-07 22:32:12 | [Mutex] received everything. 2022-07-07 22:32:12 | [Mutex] isItemNotified: published:item:notifieditem-808a1513-f626-47ae-9b07-fedd7d524ead:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-07-07 22:32:12 |
2022-07-07 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:12 | ------------------------------------ 2022-07-07 22:32:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "item-id": "item-808a1513-f626-47ae-9b07-fedd7d524ead" } 2022-07-07 22:32:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-808a1513-f626-47ae-9b07-fedd7d524ead" } 2022-07-07 22:32:12 | [Mutex] received everything. 2022-07-07 22:32:12 | [Mutex] isItemNotified: retracted:item:notifieditem-808a1513-f626-47ae-9b07-fedd7d524ead:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.013s |
2022-07-07 22:32:12 |
2022-07-07 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:12 | ------------------------------------ 2022-07-07 22:32:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "item-id": "item-808a1513-f626-47ae-9b07-fedd7d524ead" } 2022-07-07 22:32:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "item-id": "item-808a1513-f626-47ae-9b07-fedd7d524ead", "item": [ "<item id=\"item-808a1513-f626-47ae-9b07-fedd7d524ead\"><test>item-808a1513-f626-47ae-9b07-fedd7d524ead</test></item>" ] } 2022-07-07 22:32:12 | [Mutex] notify: [retrieved:item:item-808a1513-f626-47ae-9b07-fedd7d524ead:payload-matches:true:localhost] 2022-07-07 22:32:12 | [Mutex] received everything. 2022-07-07 22:32:12 | [Mutex] isItemNotified: retrieved:item:item-808a1513-f626-47ae-9b07-fedd7d524ead:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-07-07 22:32:12 |
2022-07-07 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:12 | ------------------------------------ 2022-07-07 22:32:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-07 22:32:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e795326d-fcfb-46d0-90ce-4ce6586bfb36", "test", "node-90e74071-678c-4e8e-940e-6f4cc1d2d498" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-07 22:32:12 |
2022-07-07 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:12 | ------------------------------------ 2022-07-07 22:32:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-90e74071-678c-4e8e-940e-6f4cc1d2d498)" } 2022-07-07 22:32:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-07-07 22:32:11 |
2022-07-07 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:11 | ------------------------------------ 2022-07-07 22:32:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "jids": [ "admin@test-domain.com" ] } 2022-07-07 22:32:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-07-07 22:32:12 |
2022-07-07 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:32:12 | ------------------------------------ 2022-07-07 22:32:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-90e74071-678c-4e8e-940e-6f4cc1d2d498", "jids": [ "admin@test-domain.com" ] } 2022-07-07 22:32:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |