Test duration: 8.831s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2019-11-24 19:12:01 |
2019-11-24 19:12:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:01 | ------------------------------------ 2019-11-24 19:12:01 | [Mutex] waiting for: [configured:node:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:node-621df19e-1e2c-4fb9-8453-ea3b90fed238] 2019-11-24 19:12:01 | [Mutex] received everything. 2019-11-24 19:12:01 | [Mutex] isItemNotified: configured:node:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:node-621df19e-1e2c-4fb9-8453-ea3b90fed238 :: true 2019-11-24 19:12:02 | [Mutex] waiting for: [received:nodes:8dbea066-210b-461b-9da8-49af79c20b49:localhost] 2019-11-24 19:12:02 | [Mutex] received everything. 2019-11-24 19:12:02 | [Mutex] isItemNotified: received:node:8dbea066-210b-461b-9da8-49af79c20b49:localhost:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:Node ac3f91c2-4851-46e0-9f46-e2425450ebd6 :: true 2019-11-24 19:12:02 | [Mutex] waiting for: [received:nodes:801ce4d5-363b-4b15-9d82-da656f5d2ce9:localhost] 2019-11-24 19:12:02 | [Mutex] received everything. 2019-11-24 19:12:02 | [Mutex] isItemNotified: received:node:801ce4d5-363b-4b15-9d82-da656f5d2ce9:localhost:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:Node ac3f91c2-4851-46e0-9f46-e2425450ebd6 :: false |
createNodes | 1.592s |
2019-11-24 19:11:59 |
2019-11-24 19:11:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:11:59 | ------------------------------------ 2019-11-24 19:11:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "pubsub#title": "Node ac3f91c2-4851-46e0-9f46-e2425450ebd6" } 2019-11-24 19:11:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-24 19:12:00 | [Mutex] waiting for: [received:nodes:f98cf48e-a6f6-495c-aa18-4105a8ef10f5:localhost] 2019-11-24 19:12:00 | [Mutex] received everything. 2019-11-24 19:12:00 | [Mutex] isItemNotified: received:node:f98cf48e-a6f6-495c-aa18-4105a8ef10f5:localhost:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:Node ac3f91c2-4851-46e0-9f46-e2425450ebd6 :: true |
createSubnodes | 1.026s |
2019-11-24 19:12:00 |
2019-11-24 19:12:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:00 | ------------------------------------ 2019-11-24 19:12:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-621df19e-1e2c-4fb9-8453-ea3b90fed238", "pubsub#title": "Node 621df19e-1e2c-4fb9-8453-ea3b90fed238" } 2019-11-24 19:12:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-24 19:12:01 | [Mutex] waiting for: [received:nodes:ee99642e-bfed-4e74-ab4a-51717e315d4e:localhost] 2019-11-24 19:12:01 | [Mutex] received everything. 2019-11-24 19:12:01 | [Mutex] isItemNotified: received:node:ee99642e-bfed-4e74-ab4a-51717e315d4e:localhost:node-621df19e-1e2c-4fb9-8453-ea3b90fed238:Node 621df19e-1e2c-4fb9-8453-ea3b90fed238 :: true |
deleteNodes | 1.025s |
2019-11-24 19:12:06 |
2019-11-24 19:12:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:06 | ------------------------------------ 2019-11-24 19:12:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-621df19e-1e2c-4fb9-8453-ea3b90fed238" } 2019-11-24 19:12:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-24 19:12:07 | [Mutex] waiting for: [received:nodes:503d3bf5-855f-40ed-83f9-40735c72689b:localhost] 2019-11-24 19:12:07 | [Mutex] received everything. 2019-11-24 19:12:07 | [Mutex] isItemNotified: received:node:503d3bf5-855f-40ed-83f9-40735c72689b:localhost:node-621df19e-1e2c-4fb9-8453-ea3b90fed238:Node 621df19e-1e2c-4fb9-8453-ea3b90fed238 :: false |
deleteSubnodes | 1.039s |
2019-11-24 19:12:05 |
2019-11-24 19:12:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:05 | ------------------------------------ 2019-11-24 19:12:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6" } 2019-11-24 19:12:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-24 19:12:06 | [Mutex] waiting for: [received:nodes:16ef7a26-8326-4bed-bfa4-7ffeed310971:localhost] 2019-11-24 19:12:06 | [Mutex] received everything. 2019-11-24 19:12:06 | [Mutex] isItemNotified: received:node:16ef7a26-8326-4bed-bfa4-7ffeed310971:localhost:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:Node ac3f91c2-4851-46e0-9f46-e2425450ebd6 :: false 2019-11-24 19:12:06 | [Mutex] waiting for: [received:nodes:4525c51c-bbe6-4ecc-975c-fcef6c7d5509:localhost] 2019-11-24 19:12:06 | [Mutex] received everything. 2019-11-24 19:12:06 | [Mutex] isItemNotified: received:node:4525c51c-bbe6-4ecc-975c-fcef6c7d5509:localhost:node-ac3f91c2-4851-46e0-9f46-e2425450ebd6:Node ac3f91c2-4851-46e0-9f46-e2425450ebd6 :: false |
publishItemsToNodes | 0.034s |
2019-11-24 19:12:03 |
2019-11-24 19:12:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:03 | ------------------------------------ 2019-11-24 19:12:03 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "entry": "<test>item-17f59790-7894-47e2-8769-443dd37f7063</test>", "item-id": "item-17f59790-7894-47e2-8769-443dd37f7063" } 2019-11-24 19:12:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-17f59790-7894-47e2-8769-443dd37f7063" } 2019-11-24 19:12:04 | [Mutex] waiting for: [published:item:notifieditem-17f59790-7894-47e2-8769-443dd37f7063:admin@localhost] 2019-11-24 19:12:04 | [Mutex] received everything. 2019-11-24 19:12:04 | [Mutex] isItemNotified: published:item:notifieditem-17f59790-7894-47e2-8769-443dd37f7063:admin@localhost :: true |
retractItemsFromNodes | 0.062s |
2019-11-24 19:12:04 |
2019-11-24 19:12:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:04 | ------------------------------------ 2019-11-24 19:12:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "item-id": "item-17f59790-7894-47e2-8769-443dd37f7063" } 2019-11-24 19:12:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-17f59790-7894-47e2-8769-443dd37f7063" } 2019-11-24 19:12:04 | [Mutex] waiting for: [retracted:item:notifieditem-17f59790-7894-47e2-8769-443dd37f7063:admin@localhost] 2019-11-24 19:12:04 | [Mutex] received everything. 2019-11-24 19:12:04 | [Mutex] isItemNotified: retracted:item:notifieditem-17f59790-7894-47e2-8769-443dd37f7063:admin@localhost :: true |
retrieveItemsFromNodes | 0.074s |
2019-11-24 19:12:04 |
2019-11-24 19:12:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:04 | ------------------------------------ 2019-11-24 19:12:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "item-id": "item-17f59790-7894-47e2-8769-443dd37f7063" } 2019-11-24 19:12:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "item-id": "item-17f59790-7894-47e2-8769-443dd37f7063", "item": [ "<item id=\"item-17f59790-7894-47e2-8769-443dd37f7063\"><test>item-17f59790-7894-47e2-8769-443dd37f7063</test></item>" ] } 2019-11-24 19:12:04 | [Mutex] notify: [retrieved:item:item-17f59790-7894-47e2-8769-443dd37f7063:payload-matches:true:localhost] 2019-11-24 19:12:04 | [Mutex] received everything. 2019-11-24 19:12:04 | [Mutex] isItemNotified: retrieved:item:item-17f59790-7894-47e2-8769-443dd37f7063:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2019-11-24 19:12:04 |
2019-11-24 19:12:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:04 | ------------------------------------ 2019-11-24 19:12:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-24 19:12:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "node-621df19e-1e2c-4fb9-8453-ea3b90fed238" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2019-11-24 19:12:04 |
2019-11-24 19:12:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:04 | ------------------------------------ 2019-11-24 19:12:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-ac3f91c2-4851-46e0-9f46-e2425450ebd6)" } 2019-11-24 19:12:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2019-11-24 19:12:02 |
2019-11-24 19:12:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:02 | ------------------------------------ 2019-11-24 19:12:02 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "jids": [ "admin@localhost" ] } 2019-11-24 19:12:02 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2019-11-24 19:12:04 |
2019-11-24 19:12:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-24 19:12:04 | ------------------------------------ 2019-11-24 19:12:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ac3f91c2-4851-46e0-9f46-e2425450ebd6", "jids": [ "admin@localhost" ] } 2019-11-24 19:12:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |