Test duration : 8.981s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2020-08-25 23:27:55 |
2020-08-25 23:27:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:55 | ------------------------------------ 2020-08-25 23:27:55 | [Mutex] waiting for: [configured:node:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:node-6227ce71-efbe-4ba3-915e-287ecc3647a2] 2020-08-25 23:27:55 | [Mutex] received everything. 2020-08-25 23:27:55 | [Mutex] isItemNotified: configured:node:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:node-6227ce71-efbe-4ba3-915e-287ecc3647a2 :: true 2020-08-25 23:27:56 | [Mutex] waiting for: [received:nodes:0cdd8650-3dcd-4e57-b2d5-f08076cd25e9:localhost] 2020-08-25 23:27:56 | [Mutex] received everything. 2020-08-25 23:27:56 | [Mutex] isItemNotified: received:node:0cdd8650-3dcd-4e57-b2d5-f08076cd25e9:localhost:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:Node e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7 :: true 2020-08-25 23:27:56 | [Mutex] waiting for: [received:nodes:d146c644-ce39-4ba4-acd9-87b16cb113a3:localhost] 2020-08-25 23:27:56 | [Mutex] received everything. 2020-08-25 23:27:56 | [Mutex] isItemNotified: received:node:d146c644-ce39-4ba4-acd9-87b16cb113a3:localhost:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:Node e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7 :: false |
createNodes | 1.605s |
2020-08-25 23:27:52 |
2020-08-25 23:27:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:52 | ------------------------------------ 2020-08-25 23:27:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "pubsub#title": "Node e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7" } 2020-08-25 23:27:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 23:27:54 | [Mutex] waiting for: [received:nodes:b39af9fa-e977-4303-b6a5-50a5b37d18aa:localhost] 2020-08-25 23:27:54 | [Mutex] received everything. 2020-08-25 23:27:54 | [Mutex] isItemNotified: received:node:b39af9fa-e977-4303-b6a5-50a5b37d18aa:localhost:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:Node e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7 :: true |
createSubnodes | 1.029s |
2020-08-25 23:27:54 |
2020-08-25 23:27:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:54 | ------------------------------------ 2020-08-25 23:27:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6227ce71-efbe-4ba3-915e-287ecc3647a2", "pubsub#title": "Node 6227ce71-efbe-4ba3-915e-287ecc3647a2" } 2020-08-25 23:27:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 23:27:55 | [Mutex] waiting for: [received:nodes:d6398921-7604-4734-b8eb-53d704f7f948:localhost] 2020-08-25 23:27:55 | [Mutex] waiting for: [received:nodes:d6398921-7604-4734-b8eb-53d704f7f948:localhost] 2020-08-25 23:27:55 | [Mutex] received everything. 2020-08-25 23:27:55 | [Mutex] isItemNotified: received:node:d6398921-7604-4734-b8eb-53d704f7f948:localhost:node-6227ce71-efbe-4ba3-915e-287ecc3647a2:Node 6227ce71-efbe-4ba3-915e-287ecc3647a2 :: true |
deleteNodes | 1.019s |
2020-08-25 23:27:59 |
2020-08-25 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:59 | ------------------------------------ 2020-08-25 23:27:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6227ce71-efbe-4ba3-915e-287ecc3647a2" } 2020-08-25 23:27:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 23:28:00 | [Mutex] waiting for: [received:nodes:2a25b29b-f923-4148-b14f-c936829cd265:localhost] 2020-08-25 23:28:00 | [Mutex] waiting for: [received:nodes:2a25b29b-f923-4148-b14f-c936829cd265:localhost] 2020-08-25 23:28:00 | [Mutex] received everything. 2020-08-25 23:28:00 | [Mutex] isItemNotified: received:node:2a25b29b-f923-4148-b14f-c936829cd265:localhost:node-6227ce71-efbe-4ba3-915e-287ecc3647a2:Node 6227ce71-efbe-4ba3-915e-287ecc3647a2 :: false |
deleteSubnodes | 1.026s |
2020-08-25 23:27:58 |
2020-08-25 23:27:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:58 | ------------------------------------ 2020-08-25 23:27:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7" } 2020-08-25 23:27:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 23:27:59 | [Mutex] waiting for: [received:nodes:c1be1692-e36b-461f-9fba-4cc1b0dc5c10:localhost] 2020-08-25 23:27:59 | [Mutex] waiting for: [received:nodes:c1be1692-e36b-461f-9fba-4cc1b0dc5c10:localhost] 2020-08-25 23:27:59 | [Mutex] waiting for: [received:nodes:c1be1692-e36b-461f-9fba-4cc1b0dc5c10:localhost] 2020-08-25 23:27:59 | [Mutex] received everything. 2020-08-25 23:27:59 | [Mutex] isItemNotified: received:node:c1be1692-e36b-461f-9fba-4cc1b0dc5c10:localhost:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:Node e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7 :: false 2020-08-25 23:27:59 | [Mutex] waiting for: [received:nodes:b4a084a6-a020-46e0-a359-1bfcc85b6489:localhost] 2020-08-25 23:27:59 | [Mutex] received everything. 2020-08-25 23:27:59 | [Mutex] isItemNotified: received:node:b4a084a6-a020-46e0-a359-1bfcc85b6489:localhost:node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7:Node e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7 :: false |
publishItemsToNodes | 0.064s |
2020-08-25 23:27:57 |
2020-08-25 23:27:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:57 | ------------------------------------ 2020-08-25 23:27:57 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "entry": "<test>item-8eaffd05-e4b2-4c4b-a164-2f11712f2261</test>", "item-id": "item-8eaffd05-e4b2-4c4b-a164-2f11712f2261" } 2020-08-25 23:27:57 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8eaffd05-e4b2-4c4b-a164-2f11712f2261" } 2020-08-25 23:27:57 | [Mutex] waiting for: [published:item:notifieditem-8eaffd05-e4b2-4c4b-a164-2f11712f2261:admin@test-domain.com] 2020-08-25 23:27:57 | [Mutex] received everything. 2020-08-25 23:27:57 | [Mutex] isItemNotified: published:item:notifieditem-8eaffd05-e4b2-4c4b-a164-2f11712f2261:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-08-25 23:27:57 |
2020-08-25 23:27:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:57 | ------------------------------------ 2020-08-25 23:27:57 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "item-id": "item-8eaffd05-e4b2-4c4b-a164-2f11712f2261" } 2020-08-25 23:27:57 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8eaffd05-e4b2-4c4b-a164-2f11712f2261" } 2020-08-25 23:27:57 | [Mutex] received everything. 2020-08-25 23:27:57 | [Mutex] isItemNotified: retracted:item:notifieditem-8eaffd05-e4b2-4c4b-a164-2f11712f2261:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.081s |
2020-08-25 23:27:57 |
2020-08-25 23:27:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:57 | ------------------------------------ 2020-08-25 23:27:57 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "item-id": "item-8eaffd05-e4b2-4c4b-a164-2f11712f2261" } 2020-08-25 23:27:57 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "item-id": "item-8eaffd05-e4b2-4c4b-a164-2f11712f2261", "item": [ "<item id=\"item-8eaffd05-e4b2-4c4b-a164-2f11712f2261\"><test>item-8eaffd05-e4b2-4c4b-a164-2f11712f2261</test></item>" ] } 2020-08-25 23:27:57 | [Mutex] notify: [retrieved:item:item-8eaffd05-e4b2-4c4b-a164-2f11712f2261:payload-matches:true:localhost] 2020-08-25 23:27:57 | [Mutex] received everything. 2020-08-25 23:27:57 | [Mutex] isItemNotified: retrieved:item:item-8eaffd05-e4b2-4c4b-a164-2f11712f2261:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-08-25 23:27:57 |
2020-08-25 23:27:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:57 | ------------------------------------ 2020-08-25 23:27:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-25 23:27:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6227ce71-efbe-4ba3-915e-287ecc3647a2", "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-08-25 23:27:57 |
2020-08-25 23:27:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:57 | ------------------------------------ 2020-08-25 23:27:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7)" } 2020-08-25 23:27:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-08-25 23:27:56 |
2020-08-25 23:27:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:56 | ------------------------------------ 2020-08-25 23:27:56 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "jids": [ "admin@test-domain.com" ] } 2020-08-25 23:27:56 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2020-08-25 23:27:57 |
2020-08-25 23:27:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 23:27:57 | ------------------------------------ 2020-08-25 23:27:57 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e4b990ad-cd1b-4abe-bbe5-41c0c7d9a5c7", "jids": [ "admin@test-domain.com" ] } 2020-08-25 23:27:57 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |