Test duration: 8.851s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2019-11-22 20:42:51 |
2019-11-22 20:42:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:51 | ------------------------------------ 2019-11-22 20:42:51 | [Mutex] waiting for: [configured:node:node-94d023e7-352e-477e-ad65-ac6065da26b2:node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9] 2019-11-22 20:42:52 | [Mutex] received everything. 2019-11-22 20:42:52 | [Mutex] isItemNotified: configured:node:node-94d023e7-352e-477e-ad65-ac6065da26b2:node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9 :: true 2019-11-22 20:42:53 | [Mutex] waiting for: [received:nodes:346573c1-7f48-4198-8451-1e8636ca5ca1:localhost] 2019-11-22 20:42:53 | [Mutex] received everything. 2019-11-22 20:42:53 | [Mutex] isItemNotified: received:node:346573c1-7f48-4198-8451-1e8636ca5ca1:localhost:node-94d023e7-352e-477e-ad65-ac6065da26b2:Node 94d023e7-352e-477e-ad65-ac6065da26b2 :: true 2019-11-22 20:42:53 | [Mutex] waiting for: [received:nodes:04eb252e-10ea-42ae-9506-0d9727d4c3dd:localhost] 2019-11-22 20:42:53 | [Mutex] received everything. 2019-11-22 20:42:53 | [Mutex] isItemNotified: received:node:04eb252e-10ea-42ae-9506-0d9727d4c3dd:localhost:node-94d023e7-352e-477e-ad65-ac6065da26b2:Node 94d023e7-352e-477e-ad65-ac6065da26b2 :: false |
createNodes | 1.600s |
2019-11-22 20:42:49 |
2019-11-22 20:42:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:49 | ------------------------------------ 2019-11-22 20:42:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "pubsub#title": "Node 94d023e7-352e-477e-ad65-ac6065da26b2" } 2019-11-22 20:42:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 20:42:50 | [Mutex] waiting for: [received:nodes:08c8ae5c-985b-423e-b4fa-3cc9989a1508:localhost] 2019-11-22 20:42:50 | [Mutex] received everything. 2019-11-22 20:42:50 | [Mutex] isItemNotified: received:node:08c8ae5c-985b-423e-b4fa-3cc9989a1508:localhost:node-94d023e7-352e-477e-ad65-ac6065da26b2:Node 94d023e7-352e-477e-ad65-ac6065da26b2 :: true |
createSubnodes | 1.022s |
2019-11-22 20:42:50 |
2019-11-22 20:42:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:50 | ------------------------------------ 2019-11-22 20:42:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9", "pubsub#title": "Node 456d0b54-66ba-4fc9-8ed3-02bd3d73bff9" } 2019-11-22 20:42:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 20:42:51 | [Mutex] waiting for: [received:nodes:35bec97b-befb-4e62-b672-0d45034bcc0f:localhost] 2019-11-22 20:42:51 | [Mutex] received everything. 2019-11-22 20:42:51 | [Mutex] isItemNotified: received:node:35bec97b-befb-4e62-b672-0d45034bcc0f:localhost:node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9:Node 456d0b54-66ba-4fc9-8ed3-02bd3d73bff9 :: true |
deleteNodes | 1.017s |
2019-11-22 20:42:56 |
2019-11-22 20:42:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:56 | ------------------------------------ 2019-11-22 20:42:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9" } 2019-11-22 20:42:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 20:42:57 | [Mutex] waiting for: [received:nodes:346ecf2c-624f-4bfd-b240-b297890529d1:localhost] 2019-11-22 20:42:57 | [Mutex] received everything. 2019-11-22 20:42:57 | [Mutex] isItemNotified: received:node:346ecf2c-624f-4bfd-b240-b297890529d1:localhost:node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9:Node 456d0b54-66ba-4fc9-8ed3-02bd3d73bff9 :: false |
deleteSubnodes | 1.024s |
2019-11-22 20:42:55 |
2019-11-22 20:42:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:55 | ------------------------------------ 2019-11-22 20:42:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2" } 2019-11-22 20:42:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 20:42:56 | [Mutex] waiting for: [received:nodes:af5b2a75-f7eb-479c-999d-ff3906c4b090:localhost] 2019-11-22 20:42:56 | [Mutex] received everything. 2019-11-22 20:42:56 | [Mutex] isItemNotified: received:node:af5b2a75-f7eb-479c-999d-ff3906c4b090:localhost:node-94d023e7-352e-477e-ad65-ac6065da26b2:Node 94d023e7-352e-477e-ad65-ac6065da26b2 :: false 2019-11-22 20:42:56 | [Mutex] waiting for: [received:nodes:617f9a15-6662-4329-9f04-3f4ae1b3bd5c:localhost] 2019-11-22 20:42:56 | [Mutex] received everything. 2019-11-22 20:42:56 | [Mutex] isItemNotified: received:node:617f9a15-6662-4329-9f04-3f4ae1b3bd5c:localhost:node-94d023e7-352e-477e-ad65-ac6065da26b2:Node 94d023e7-352e-477e-ad65-ac6065da26b2 :: false |
publishItemsToNodes | 0.040s |
2019-11-22 20:42:54 |
2019-11-22 20:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:54 | ------------------------------------ 2019-11-22 20:42:54 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "entry": "<test>item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57</test>", "item-id": "item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57" } 2019-11-22 20:42:54 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57" } 2019-11-22 20:42:54 | [Mutex] waiting for: [published:item:notifieditem-4bcfa4eb-f42d-4f62-b030-f37d7e785a57:admin@localhost] 2019-11-22 20:42:54 | [Mutex] received everything. 2019-11-22 20:42:54 | [Mutex] isItemNotified: published:item:notifieditem-4bcfa4eb-f42d-4f62-b030-f37d7e785a57:admin@localhost :: true |
retractItemsFromNodes | 0.055s |
2019-11-22 20:42:54 |
2019-11-22 20:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:54 | ------------------------------------ 2019-11-22 20:42:54 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "item-id": "item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57" } 2019-11-22 20:42:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57" } 2019-11-22 20:42:54 | [Mutex] received everything. 2019-11-22 20:42:54 | [Mutex] isItemNotified: retracted:item:notifieditem-4bcfa4eb-f42d-4f62-b030-f37d7e785a57:admin@localhost :: true |
retrieveItemsFromNodes | 0.061s |
2019-11-22 20:42:54 |
2019-11-22 20:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:54 | ------------------------------------ 2019-11-22 20:42:54 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "item-id": "item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57" } 2019-11-22 20:42:54 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "item-id": "item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57", "item": [ "<item id=\"item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57\"><test>item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57</test></item>" ] } 2019-11-22 20:42:54 | [Mutex] notify: [retrieved:item:item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57:payload-matches:true:localhost] 2019-11-22 20:42:54 | [Mutex] received everything. 2019-11-22 20:42:54 | [Mutex] isItemNotified: retrieved:item:item-4bcfa4eb-f42d-4f62-b030-f37d7e785a57:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-11-22 20:42:54 |
2019-11-22 20:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:54 | ------------------------------------ 2019-11-22 20:42:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-22 20:42:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-456d0b54-66ba-4fc9-8ed3-02bd3d73bff9", "node-94d023e7-352e-477e-ad65-ac6065da26b2" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2019-11-22 20:42:54 |
2019-11-22 20:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:54 | ------------------------------------ 2019-11-22 20:42:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-94d023e7-352e-477e-ad65-ac6065da26b2)" } 2019-11-22 20:42:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2019-11-22 20:42:53 |
2019-11-22 20:42:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:53 | ------------------------------------ 2019-11-22 20:42:53 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "jids": [ "admin@localhost" ] } 2019-11-22 20:42:53 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2019-11-22 20:42:54 |
2019-11-22 20:42:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 20:42:54 | ------------------------------------ 2019-11-22 20:42:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-94d023e7-352e-477e-ad65-ac6065da26b2", "jids": [ "admin@localhost" ] } 2019-11-22 20:42:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |