Test duration : 8.798s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-02-10 21:47:32 |
2022-02-10 21:47:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:32 | ------------------------------------ 2022-02-10 21:47:32 | [Mutex] waiting for: [configured:node:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25] 2022-02-10 21:47:32 | [Mutex] received everything. 2022-02-10 21:47:32 | [Mutex] isItemNotified: configured:node:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25 :: true 2022-02-10 21:47:33 | [Mutex] waiting for: [received:nodes:95b3ec4e-26e1-4621-8e49-9daef6f264f5:localhost] 2022-02-10 21:47:33 | [Mutex] received everything. 2022-02-10 21:47:33 | [Mutex] isItemNotified: received:node:95b3ec4e-26e1-4621-8e49-9daef6f264f5:localhost:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:Node 29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5 :: true 2022-02-10 21:47:33 | [Mutex] waiting for: [received:nodes:ce31c068-087a-4124-8608-9b18de6a2bf6:localhost] 2022-02-10 21:47:33 | [Mutex] received everything. 2022-02-10 21:47:33 | [Mutex] isItemNotified: received:node:ce31c068-087a-4124-8608-9b18de6a2bf6:localhost:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:Node 29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5 :: false |
createNodes | 1.559s |
2022-02-10 21:47:29 |
2022-02-10 21:47:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:29 | ------------------------------------ 2022-02-10 21:47:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "pubsub#title": "Node 29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5" } 2022-02-10 21:47:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-10 21:47:30 | [Mutex] waiting for: [received:nodes:149355b2-7fb4-49d2-8ab7-1a7623c1565d:localhost] 2022-02-10 21:47:30 | [Mutex] waiting for: [received:nodes:149355b2-7fb4-49d2-8ab7-1a7623c1565d:localhost] 2022-02-10 21:47:30 | [Mutex] received everything. 2022-02-10 21:47:30 | [Mutex] isItemNotified: received:node:149355b2-7fb4-49d2-8ab7-1a7623c1565d:localhost:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:Node 29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5 :: true |
createSubnodes | 1.030s |
2022-02-10 21:47:30 |
2022-02-10 21:47:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:30 | ------------------------------------ 2022-02-10 21:47:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25", "pubsub#title": "Node e13fe7d8-d641-4aa0-adbf-9878a0f3ec25" } 2022-02-10 21:47:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-10 21:47:32 | [Mutex] waiting for: [received:nodes:7f4434f4-8261-4a4b-9db0-c4f7bdb554ef:localhost] 2022-02-10 21:47:32 | [Mutex] waiting for: [received:nodes:7f4434f4-8261-4a4b-9db0-c4f7bdb554ef:localhost] 2022-02-10 21:47:32 | [Mutex] received everything. 2022-02-10 21:47:32 | [Mutex] isItemNotified: received:node:7f4434f4-8261-4a4b-9db0-c4f7bdb554ef:localhost:node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25:Node e13fe7d8-d641-4aa0-adbf-9878a0f3ec25 :: true |
deleteNodes | 1.024s |
2022-02-10 21:47:36 |
2022-02-10 21:47:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:36 | ------------------------------------ 2022-02-10 21:47:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25" } 2022-02-10 21:47:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-10 21:47:37 | [Mutex] waiting for: [received:nodes:d33785f9-58dd-42be-92fc-67c20587dbc3:localhost] 2022-02-10 21:47:37 | [Mutex] waiting for: [received:nodes:d33785f9-58dd-42be-92fc-67c20587dbc3:localhost] 2022-02-10 21:47:37 | [Mutex] received everything. 2022-02-10 21:47:37 | [Mutex] isItemNotified: received:node:d33785f9-58dd-42be-92fc-67c20587dbc3:localhost:node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25:Node e13fe7d8-d641-4aa0-adbf-9878a0f3ec25 :: false |
deleteSubnodes | 1.029s |
2022-02-10 21:47:35 |
2022-02-10 21:47:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:35 | ------------------------------------ 2022-02-10 21:47:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5" } 2022-02-10 21:47:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-10 21:47:36 | [Mutex] waiting for: [received:nodes:20793199-aa9c-4f58-abc3-e3feb13ae9ef:localhost] 2022-02-10 21:47:36 | [Mutex] received everything. 2022-02-10 21:47:36 | [Mutex] isItemNotified: received:node:20793199-aa9c-4f58-abc3-e3feb13ae9ef:localhost:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:Node 29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5 :: false 2022-02-10 21:47:36 | [Mutex] waiting for: [received:nodes:96b4e6ea-64e0-4316-a880-01c57c060108:localhost] 2022-02-10 21:47:36 | [Mutex] received everything. 2022-02-10 21:47:36 | [Mutex] isItemNotified: received:node:96b4e6ea-64e0-4316-a880-01c57c060108:localhost:node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5:Node 29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5 :: false |
publishItemsToNodes | 0.045s |
2022-02-10 21:47:34 |
2022-02-10 21:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:34 | ------------------------------------ 2022-02-10 21:47:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "entry": "<test>item-a3f9e282-6293-4261-ab04-17ff072ae3ea</test>", "item-id": "item-a3f9e282-6293-4261-ab04-17ff072ae3ea" } 2022-02-10 21:47:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a3f9e282-6293-4261-ab04-17ff072ae3ea" } 2022-02-10 21:47:34 | [Mutex] waiting for: [published:item:notifieditem-a3f9e282-6293-4261-ab04-17ff072ae3ea:admin@test-domain.com] 2022-02-10 21:47:34 | [Mutex] received everything. 2022-02-10 21:47:34 | [Mutex] isItemNotified: published:item:notifieditem-a3f9e282-6293-4261-ab04-17ff072ae3ea:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-02-10 21:47:34 |
2022-02-10 21:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:34 | ------------------------------------ 2022-02-10 21:47:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "item-id": "item-a3f9e282-6293-4261-ab04-17ff072ae3ea" } 2022-02-10 21:47:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a3f9e282-6293-4261-ab04-17ff072ae3ea" } 2022-02-10 21:47:34 | [Mutex] waiting for: [retracted:item:notifieditem-a3f9e282-6293-4261-ab04-17ff072ae3ea:admin@test-domain.com] 2022-02-10 21:47:34 | [Mutex] received everything. 2022-02-10 21:47:34 | [Mutex] isItemNotified: retracted:item:notifieditem-a3f9e282-6293-4261-ab04-17ff072ae3ea:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2022-02-10 21:47:34 |
2022-02-10 21:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:34 | ------------------------------------ 2022-02-10 21:47:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "item-id": "item-a3f9e282-6293-4261-ab04-17ff072ae3ea" } 2022-02-10 21:47:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "item-id": "item-a3f9e282-6293-4261-ab04-17ff072ae3ea", "item": [ "<item id=\"item-a3f9e282-6293-4261-ab04-17ff072ae3ea\"><test>item-a3f9e282-6293-4261-ab04-17ff072ae3ea</test></item>" ] } 2022-02-10 21:47:34 | [Mutex] notify: [retrieved:item:item-a3f9e282-6293-4261-ab04-17ff072ae3ea:payload-matches:true:localhost] 2022-02-10 21:47:34 | [Mutex] received everything. 2022-02-10 21:47:34 | [Mutex] isItemNotified: retrieved:item:item-a3f9e282-6293-4261-ab04-17ff072ae3ea:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2022-02-10 21:47:34 |
2022-02-10 21:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:34 | ------------------------------------ 2022-02-10 21:47:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-10 21:47:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e13fe7d8-d641-4aa0-adbf-9878a0f3ec25", "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-10 21:47:34 |
2022-02-10 21:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:34 | ------------------------------------ 2022-02-10 21:47:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5)" } 2022-02-10 21:47:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-10 21:47:33 |
2022-02-10 21:47:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:33 | ------------------------------------ 2022-02-10 21:47:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "jids": [ "admin@test-domain.com" ] } 2022-02-10 21:47:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-02-10 21:47:34 |
2022-02-10 21:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-10 21:47:34 | ------------------------------------ 2022-02-10 21:47:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-29b1ba9e-2fca-4bbe-9cfa-3cc1dc6dd3b5", "jids": [ "admin@test-domain.com" ] } 2022-02-10 21:47:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |