Test duration : 9.202s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2021-04-23 10:01:41 |
2021-04-23 10:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:41 | ------------------------------------ 2021-04-23 10:01:41 | [Mutex] waiting for: [configured:node:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:node-77fd3924-12a6-4bdd-9dca-900534a1a14b] 2021-04-23 10:01:41 | [Mutex] received everything. 2021-04-23 10:01:41 | [Mutex] isItemNotified: configured:node:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:node-77fd3924-12a6-4bdd-9dca-900534a1a14b :: true 2021-04-23 10:01:42 | [Mutex] waiting for: [received:nodes:3d7f66d9-ae6c-4b5a-bbad-a8caccedf222:localhost] 2021-04-23 10:01:42 | [Mutex] received everything. 2021-04-23 10:01:42 | [Mutex] isItemNotified: received:node:3d7f66d9-ae6c-4b5a-bbad-a8caccedf222:localhost:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:Node db5f5136-f8ac-4b7d-8b83-d94d857c7a57 :: true 2021-04-23 10:01:42 | [Mutex] waiting for: [received:nodes:b260e5b6-694f-48e3-8741-03dc0d9cb847:localhost] 2021-04-23 10:01:42 | [Mutex] received everything. 2021-04-23 10:01:42 | [Mutex] isItemNotified: received:node:b260e5b6-694f-48e3-8741-03dc0d9cb847:localhost:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:Node db5f5136-f8ac-4b7d-8b83-d94d857c7a57 :: false |
createNodes | 1.655s |
2021-04-23 10:01:38 |
2021-04-23 10:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:38 | ------------------------------------ 2021-04-23 10:01:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "pubsub#title": "Node db5f5136-f8ac-4b7d-8b83-d94d857c7a57" } 2021-04-23 10:01:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:01:40 | [Mutex] waiting for: [received:nodes:d0f5c31e-a4a4-499e-bc49-86953b788e54:localhost] 2021-04-23 10:01:40 | [Mutex] received everything. 2021-04-23 10:01:40 | [Mutex] isItemNotified: received:node:d0f5c31e-a4a4-499e-bc49-86953b788e54:localhost:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:Node db5f5136-f8ac-4b7d-8b83-d94d857c7a57 :: true |
createSubnodes | 1.034s |
2021-04-23 10:01:40 |
2021-04-23 10:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:40 | ------------------------------------ 2021-04-23 10:01:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-77fd3924-12a6-4bdd-9dca-900534a1a14b", "pubsub#title": "Node 77fd3924-12a6-4bdd-9dca-900534a1a14b" } 2021-04-23 10:01:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:01:41 | [Mutex] waiting for: [received:nodes:0c7cf180-10f4-4a96-9489-b1c6f1ca6827:localhost] 2021-04-23 10:01:41 | [Mutex] received everything. 2021-04-23 10:01:41 | [Mutex] isItemNotified: received:node:0c7cf180-10f4-4a96-9489-b1c6f1ca6827:localhost:node-77fd3924-12a6-4bdd-9dca-900534a1a14b:Node 77fd3924-12a6-4bdd-9dca-900534a1a14b :: true |
deleteNodes | 1.021s |
2021-04-23 10:01:45 |
2021-04-23 10:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:45 | ------------------------------------ 2021-04-23 10:01:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-77fd3924-12a6-4bdd-9dca-900534a1a14b" } 2021-04-23 10:01:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:01:46 | [Mutex] waiting for: [received:nodes:b3b782d2-855f-432a-9500-1f291b0c3017:localhost] 2021-04-23 10:01:46 | [Mutex] waiting for: [received:nodes:b3b782d2-855f-432a-9500-1f291b0c3017:localhost] 2021-04-23 10:01:46 | [Mutex] received everything. 2021-04-23 10:01:46 | [Mutex] isItemNotified: received:node:b3b782d2-855f-432a-9500-1f291b0c3017:localhost:node-77fd3924-12a6-4bdd-9dca-900534a1a14b:Node 77fd3924-12a6-4bdd-9dca-900534a1a14b :: false |
deleteSubnodes | 1.028s |
2021-04-23 10:01:44 |
2021-04-23 10:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:44 | ------------------------------------ 2021-04-23 10:01:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57" } 2021-04-23 10:01:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:01:45 | [Mutex] waiting for: [received:nodes:a43cc5e4-5dd8-42fc-bd18-c3c670b646e1:localhost] 2021-04-23 10:01:45 | [Mutex] waiting for: [received:nodes:a43cc5e4-5dd8-42fc-bd18-c3c670b646e1:localhost] 2021-04-23 10:01:45 | [Mutex] received everything. 2021-04-23 10:01:45 | [Mutex] isItemNotified: received:node:a43cc5e4-5dd8-42fc-bd18-c3c670b646e1:localhost:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:Node db5f5136-f8ac-4b7d-8b83-d94d857c7a57 :: false 2021-04-23 10:01:45 | [Mutex] waiting for: [received:nodes:1b7dcaf3-885a-4766-87c9-5bc93cfbec1a:localhost] 2021-04-23 10:01:45 | [Mutex] received everything. 2021-04-23 10:01:45 | [Mutex] isItemNotified: received:node:1b7dcaf3-885a-4766-87c9-5bc93cfbec1a:localhost:node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57:Node db5f5136-f8ac-4b7d-8b83-d94d857c7a57 :: false |
publishItemsToNodes | 0.067s |
2021-04-23 10:01:43 |
2021-04-23 10:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:43 | ------------------------------------ 2021-04-23 10:01:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "entry": "<test>item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4</test>", "item-id": "item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4" } 2021-04-23 10:01:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4" } 2021-04-23 10:01:43 | [Mutex] waiting for: [published:item:notifieditem-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4:admin@test-domain.com] 2021-04-23 10:01:43 | [Mutex] received everything. 2021-04-23 10:01:43 | [Mutex] isItemNotified: published:item:notifieditem-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-04-23 10:01:43 |
2021-04-23 10:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:43 | ------------------------------------ 2021-04-23 10:01:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "item-id": "item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4" } 2021-04-23 10:01:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4" } 2021-04-23 10:01:43 | [Mutex] received everything. 2021-04-23 10:01:43 | [Mutex] isItemNotified: retracted:item:notifieditem-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.028s |
2021-04-23 10:01:43 |
2021-04-23 10:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:43 | ------------------------------------ 2021-04-23 10:01:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "item-id": "item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4" } 2021-04-23 10:01:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "item-id": "item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4", "item": [ "<item id=\"item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4\"><test>item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4</test></item>" ] } 2021-04-23 10:01:43 | [Mutex] notify: [retrieved:item:item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4:payload-matches:true:localhost] 2021-04-23 10:01:43 | [Mutex] received everything. 2021-04-23 10:01:43 | [Mutex] isItemNotified: retrieved:item:item-32cf59bf-63e4-4a97-b0a9-0a55c5fba9e4:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2021-04-23 10:01:43 |
2021-04-23 10:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:43 | ------------------------------------ 2021-04-23 10:01:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-23 10:01:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-77fd3924-12a6-4bdd-9dca-900534a1a14b", "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-04-23 10:01:43 |
2021-04-23 10:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:43 | ------------------------------------ 2021-04-23 10:01:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57)" } 2021-04-23 10:01:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2021-04-23 10:01:42 |
2021-04-23 10:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:42 | ------------------------------------ 2021-04-23 10:01:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "jids": [ "admin@test-domain.com" ] } 2021-04-23 10:01:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.171s |
2021-04-23 10:01:43 |
2021-04-23 10:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:01:43 | ------------------------------------ 2021-04-23 10:01:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-db5f5136-f8ac-4b7d-8b83-d94d857c7a57", "jids": [ "admin@test-domain.com" ] } 2021-04-23 10:01:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |