Test duration : 9.001s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-02-08 22:19:03 |
2022-02-08 22:19:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:03 | ------------------------------------ 2022-02-08 22:19:03 | [Mutex] waiting for: [configured:node:node-bececa0a-c725-4d66-a2c8-80ea663d2917:node-4a302a7c-22fe-4ba0-b244-da23f62194c0] 2022-02-08 22:19:03 | [Mutex] received everything. 2022-02-08 22:19:03 | [Mutex] isItemNotified: configured:node:node-bececa0a-c725-4d66-a2c8-80ea663d2917:node-4a302a7c-22fe-4ba0-b244-da23f62194c0 :: true 2022-02-08 22:19:04 | [Mutex] waiting for: [received:nodes:3f3f518c-5f16-4b79-973b-0928816114e7:localhost] 2022-02-08 22:19:04 | [Mutex] received everything. 2022-02-08 22:19:04 | [Mutex] isItemNotified: received:node:3f3f518c-5f16-4b79-973b-0928816114e7:localhost:node-bececa0a-c725-4d66-a2c8-80ea663d2917:Node bececa0a-c725-4d66-a2c8-80ea663d2917 :: true 2022-02-08 22:19:04 | [Mutex] waiting for: [received:nodes:ddb6a040-c3fe-439d-bd32-3be05c73ab00:localhost] 2022-02-08 22:19:04 | [Mutex] waiting for: [received:nodes:ddb6a040-c3fe-439d-bd32-3be05c73ab00:localhost] 2022-02-08 22:19:04 | [Mutex] received everything. 2022-02-08 22:19:04 | [Mutex] isItemNotified: received:node:ddb6a040-c3fe-439d-bd32-3be05c73ab00:localhost:node-bececa0a-c725-4d66-a2c8-80ea663d2917:Node bececa0a-c725-4d66-a2c8-80ea663d2917 :: false |
createNodes | 1.709s |
2022-02-08 22:19:00 |
2022-02-08 22:19:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:00 | ------------------------------------ 2022-02-08 22:19:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "pubsub#title": "Node bececa0a-c725-4d66-a2c8-80ea663d2917" } 2022-02-08 22:19:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-08 22:19:02 | [Mutex] waiting for: [received:nodes:8e03c511-e53f-446d-bdb9-5ba34e88831b:localhost] 2022-02-08 22:19:02 | [Mutex] waiting for: [received:nodes:8e03c511-e53f-446d-bdb9-5ba34e88831b:localhost] 2022-02-08 22:19:02 | [Mutex] waiting for: [received:nodes:8e03c511-e53f-446d-bdb9-5ba34e88831b:localhost] 2022-02-08 22:19:02 | [Mutex] received everything. 2022-02-08 22:19:02 | [Mutex] isItemNotified: received:node:8e03c511-e53f-446d-bdb9-5ba34e88831b:localhost:node-bececa0a-c725-4d66-a2c8-80ea663d2917:Node bececa0a-c725-4d66-a2c8-80ea663d2917 :: true |
createSubnodes | 1.026s |
2022-02-08 22:19:02 |
2022-02-08 22:19:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:02 | ------------------------------------ 2022-02-08 22:19:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4a302a7c-22fe-4ba0-b244-da23f62194c0", "pubsub#title": "Node 4a302a7c-22fe-4ba0-b244-da23f62194c0" } 2022-02-08 22:19:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-08 22:19:03 | [Mutex] waiting for: [received:nodes:dc250015-ca88-47f9-961a-181f5c8ce65c:localhost] 2022-02-08 22:19:03 | [Mutex] received everything. 2022-02-08 22:19:03 | [Mutex] isItemNotified: received:node:dc250015-ca88-47f9-961a-181f5c8ce65c:localhost:node-4a302a7c-22fe-4ba0-b244-da23f62194c0:Node 4a302a7c-22fe-4ba0-b244-da23f62194c0 :: true |
deleteNodes | 1.026s |
2022-02-08 22:19:08 |
2022-02-08 22:19:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:08 | ------------------------------------ 2022-02-08 22:19:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4a302a7c-22fe-4ba0-b244-da23f62194c0" } 2022-02-08 22:19:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-08 22:19:09 | [Mutex] waiting for: [received:nodes:97197b8f-cc24-4d97-a7b9-a47680a20008:localhost] 2022-02-08 22:19:09 | [Mutex] received everything. 2022-02-08 22:19:09 | [Mutex] isItemNotified: received:node:97197b8f-cc24-4d97-a7b9-a47680a20008:localhost:node-4a302a7c-22fe-4ba0-b244-da23f62194c0:Node 4a302a7c-22fe-4ba0-b244-da23f62194c0 :: false |
deleteSubnodes | 1.041s |
2022-02-08 22:19:07 |
2022-02-08 22:19:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:07 | ------------------------------------ 2022-02-08 22:19:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917" } 2022-02-08 22:19:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-08 22:19:08 | [Mutex] waiting for: [received:nodes:a95346a2-47d3-4827-a19d-2c5cc5611db9:localhost] 2022-02-08 22:19:08 | [Mutex] waiting for: [received:nodes:a95346a2-47d3-4827-a19d-2c5cc5611db9:localhost] 2022-02-08 22:19:08 | [Mutex] received everything. 2022-02-08 22:19:08 | [Mutex] isItemNotified: received:node:a95346a2-47d3-4827-a19d-2c5cc5611db9:localhost:node-bececa0a-c725-4d66-a2c8-80ea663d2917:Node bececa0a-c725-4d66-a2c8-80ea663d2917 :: false 2022-02-08 22:19:08 | [Mutex] waiting for: [received:nodes:ba5032b3-56e5-4bd3-8885-8eac95d3c57f:localhost] 2022-02-08 22:19:08 | [Mutex] received everything. 2022-02-08 22:19:08 | [Mutex] isItemNotified: received:node:ba5032b3-56e5-4bd3-8885-8eac95d3c57f:localhost:node-bececa0a-c725-4d66-a2c8-80ea663d2917:Node bececa0a-c725-4d66-a2c8-80ea663d2917 :: false |
publishItemsToNodes | 0.041s |
2022-02-08 22:19:05 |
2022-02-08 22:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:05 | ------------------------------------ 2022-02-08 22:19:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "entry": "<test>item-cf74e258-b023-4934-9aba-2407f8011ed9</test>", "item-id": "item-cf74e258-b023-4934-9aba-2407f8011ed9" } 2022-02-08 22:19:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cf74e258-b023-4934-9aba-2407f8011ed9" } 2022-02-08 22:19:05 | [Mutex] waiting for: [published:item:notifieditem-cf74e258-b023-4934-9aba-2407f8011ed9:admin@test-domain.com] 2022-02-08 22:19:05 | [Mutex] received everything. 2022-02-08 22:19:05 | [Mutex] isItemNotified: published:item:notifieditem-cf74e258-b023-4934-9aba-2407f8011ed9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-02-08 22:19:06 |
2022-02-08 22:19:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:06 | ------------------------------------ 2022-02-08 22:19:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "item-id": "item-cf74e258-b023-4934-9aba-2407f8011ed9" } 2022-02-08 22:19:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cf74e258-b023-4934-9aba-2407f8011ed9" } 2022-02-08 22:19:06 | [Mutex] received everything. 2022-02-08 22:19:06 | [Mutex] isItemNotified: retracted:item:notifieditem-cf74e258-b023-4934-9aba-2407f8011ed9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.094s |
2022-02-08 22:19:05 |
2022-02-08 22:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:05 | ------------------------------------ 2022-02-08 22:19:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "item-id": "item-cf74e258-b023-4934-9aba-2407f8011ed9" } 2022-02-08 22:19:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "item-id": "item-cf74e258-b023-4934-9aba-2407f8011ed9", "item": [ "<item id=\"item-cf74e258-b023-4934-9aba-2407f8011ed9\"><test>item-cf74e258-b023-4934-9aba-2407f8011ed9</test></item>" ] } 2022-02-08 22:19:05 | [Mutex] notify: [retrieved:item:item-cf74e258-b023-4934-9aba-2407f8011ed9:payload-matches:true:localhost] 2022-02-08 22:19:05 | [Mutex] received everything. 2022-02-08 22:19:05 | [Mutex] isItemNotified: retrieved:item:item-cf74e258-b023-4934-9aba-2407f8011ed9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-08 22:19:05 |
2022-02-08 22:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:05 | ------------------------------------ 2022-02-08 22:19:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-08 22:19:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "node-4a302a7c-22fe-4ba0-b244-da23f62194c0" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2022-02-08 22:19:05 |
2022-02-08 22:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:05 | ------------------------------------ 2022-02-08 22:19:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bececa0a-c725-4d66-a2c8-80ea663d2917)" } 2022-02-08 22:19:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-08 22:19:04 |
2022-02-08 22:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:04 | ------------------------------------ 2022-02-08 22:19:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "jids": [ "admin@test-domain.com" ] } 2022-02-08 22:19:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-02-08 22:19:06 |
2022-02-08 22:19:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-08 22:19:06 | ------------------------------------ 2022-02-08 22:19:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bececa0a-c725-4d66-a2c8-80ea663d2917", "jids": [ "admin@test-domain.com" ] } 2022-02-08 22:19:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |