Test duration : 8.762s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2022-05-16 23:13:54 |
2022-05-16 23:13:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:54 | ------------------------------------ 2022-05-16 23:13:54 | [Mutex] waiting for: [configured:node:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:node-230e7235-90c3-4283-9dc7-5265983b908a] 2022-05-16 23:13:54 | [Mutex] received everything. 2022-05-16 23:13:54 | [Mutex] isItemNotified: configured:node:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:node-230e7235-90c3-4283-9dc7-5265983b908a :: true 2022-05-16 23:13:55 | [Mutex] waiting for: [received:nodes:1d945201-f3ee-4c2d-b3c3-e38ca875a7e5:localhost] 2022-05-16 23:13:55 | [Mutex] received everything. 2022-05-16 23:13:55 | [Mutex] isItemNotified: received:node:1d945201-f3ee-4c2d-b3c3-e38ca875a7e5:localhost:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:Node 17345ae8-75bf-4116-88ce-57b2bcffaa42 :: true 2022-05-16 23:13:55 | [Mutex] waiting for: [received:nodes:c67037ee-e92a-4b06-83dc-c40437e8caf2:localhost] 2022-05-16 23:13:55 | [Mutex] received everything. 2022-05-16 23:13:55 | [Mutex] isItemNotified: received:node:c67037ee-e92a-4b06-83dc-c40437e8caf2:localhost:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:Node 17345ae8-75bf-4116-88ce-57b2bcffaa42 :: false |
createNodes | 1.663s |
2022-05-16 23:13:51 |
2022-05-16 23:13:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:51 | ------------------------------------ 2022-05-16 23:13:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "pubsub#title": "Node 17345ae8-75bf-4116-88ce-57b2bcffaa42" } 2022-05-16 23:13:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 23:13:53 | [Mutex] waiting for: [received:nodes:c874e227-bd65-44b9-b78b-7db8b59ab08f:localhost] 2022-05-16 23:13:53 | [Mutex] received everything. 2022-05-16 23:13:53 | [Mutex] isItemNotified: received:node:c874e227-bd65-44b9-b78b-7db8b59ab08f:localhost:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:Node 17345ae8-75bf-4116-88ce-57b2bcffaa42 :: true |
createSubnodes | 1.024s |
2022-05-16 23:13:53 |
2022-05-16 23:13:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:53 | ------------------------------------ 2022-05-16 23:13:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-230e7235-90c3-4283-9dc7-5265983b908a", "pubsub#title": "Node 230e7235-90c3-4283-9dc7-5265983b908a" } 2022-05-16 23:13:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 23:13:54 | [Mutex] waiting for: [received:nodes:f7350b74-2158-4286-bb78-312c0c56ef0d:localhost] 2022-05-16 23:13:54 | [Mutex] received everything. 2022-05-16 23:13:54 | [Mutex] isItemNotified: received:node:f7350b74-2158-4286-bb78-312c0c56ef0d:localhost:node-230e7235-90c3-4283-9dc7-5265983b908a:Node 230e7235-90c3-4283-9dc7-5265983b908a :: true |
deleteNodes | 1.023s |
2022-05-16 23:13:58 |
2022-05-16 23:13:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:58 | ------------------------------------ 2022-05-16 23:13:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-230e7235-90c3-4283-9dc7-5265983b908a" } 2022-05-16 23:13:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 23:13:59 | [Mutex] waiting for: [received:nodes:6926c42e-7d60-430a-b6f8-1a7b558de67a:localhost] 2022-05-16 23:13:59 | [Mutex] waiting for: [received:nodes:6926c42e-7d60-430a-b6f8-1a7b558de67a:localhost] 2022-05-16 23:13:59 | [Mutex] received everything. 2022-05-16 23:13:59 | [Mutex] isItemNotified: received:node:6926c42e-7d60-430a-b6f8-1a7b558de67a:localhost:node-230e7235-90c3-4283-9dc7-5265983b908a:Node 230e7235-90c3-4283-9dc7-5265983b908a :: false |
deleteSubnodes | 1.028s |
2022-05-16 23:13:57 |
2022-05-16 23:13:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:57 | ------------------------------------ 2022-05-16 23:13:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42" } 2022-05-16 23:13:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 23:13:58 | [Mutex] waiting for: [received:nodes:0573d45b-b26c-454a-83ef-d9a409c2887e:localhost] 2022-05-16 23:13:58 | [Mutex] received everything. 2022-05-16 23:13:58 | [Mutex] isItemNotified: received:node:0573d45b-b26c-454a-83ef-d9a409c2887e:localhost:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:Node 17345ae8-75bf-4116-88ce-57b2bcffaa42 :: false 2022-05-16 23:13:58 | [Mutex] waiting for: [received:nodes:db79171d-d794-4565-9db4-44d09352e515:localhost] 2022-05-16 23:13:58 | [Mutex] received everything. 2022-05-16 23:13:58 | [Mutex] isItemNotified: received:node:db79171d-d794-4565-9db4-44d09352e515:localhost:node-17345ae8-75bf-4116-88ce-57b2bcffaa42:Node 17345ae8-75bf-4116-88ce-57b2bcffaa42 :: false |
publishItemsToNodes | 0.028s |
2022-05-16 23:13:56 |
2022-05-16 23:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:56 | ------------------------------------ 2022-05-16 23:13:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "entry": "<test>item-a56c1e29-21e7-47c2-9928-faa629aa22f3</test>", "item-id": "item-a56c1e29-21e7-47c2-9928-faa629aa22f3" } 2022-05-16 23:13:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a56c1e29-21e7-47c2-9928-faa629aa22f3" } 2022-05-16 23:13:56 | [Mutex] waiting for: [published:item:notifieditem-a56c1e29-21e7-47c2-9928-faa629aa22f3:admin@test-domain.com] 2022-05-16 23:13:56 | [Mutex] received everything. 2022-05-16 23:13:56 | [Mutex] isItemNotified: published:item:notifieditem-a56c1e29-21e7-47c2-9928-faa629aa22f3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-16 23:13:56 |
2022-05-16 23:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:56 | ------------------------------------ 2022-05-16 23:13:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "item-id": "item-a56c1e29-21e7-47c2-9928-faa629aa22f3" } 2022-05-16 23:13:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a56c1e29-21e7-47c2-9928-faa629aa22f3" } 2022-05-16 23:13:56 | [Mutex] received everything. 2022-05-16 23:13:56 | [Mutex] isItemNotified: retracted:item:notifieditem-a56c1e29-21e7-47c2-9928-faa629aa22f3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2022-05-16 23:13:56 |
2022-05-16 23:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:56 | ------------------------------------ 2022-05-16 23:13:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "item-id": "item-a56c1e29-21e7-47c2-9928-faa629aa22f3" } 2022-05-16 23:13:56 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "item-id": "item-a56c1e29-21e7-47c2-9928-faa629aa22f3", "item": [ "<item id=\"item-a56c1e29-21e7-47c2-9928-faa629aa22f3\"><test>item-a56c1e29-21e7-47c2-9928-faa629aa22f3</test></item>" ] } 2022-05-16 23:13:56 | [Mutex] notify: [retrieved:item:item-a56c1e29-21e7-47c2-9928-faa629aa22f3:payload-matches:true:localhost] 2022-05-16 23:13:56 | [Mutex] received everything. 2022-05-16 23:13:56 | [Mutex] isItemNotified: retrieved:item:item-a56c1e29-21e7-47c2-9928-faa629aa22f3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-16 23:13:56 |
2022-05-16 23:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:56 | ------------------------------------ 2022-05-16 23:13:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-16 23:13:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-230e7235-90c3-4283-9dc7-5265983b908a", "node-17345ae8-75bf-4116-88ce-57b2bcffaa42" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-05-16 23:13:56 |
2022-05-16 23:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:56 | ------------------------------------ 2022-05-16 23:13:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-17345ae8-75bf-4116-88ce-57b2bcffaa42)" } 2022-05-16 23:13:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-05-16 23:13:55 |
2022-05-16 23:13:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:55 | ------------------------------------ 2022-05-16 23:13:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "jids": [ "admin@test-domain.com" ] } 2022-05-16 23:13:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-05-16 23:13:56 |
2022-05-16 23:13:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 23:13:56 | ------------------------------------ 2022-05-16 23:13:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-17345ae8-75bf-4116-88ce-57b2bcffaa42", "jids": [ "admin@test-domain.com" ] } 2022-05-16 23:13:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |