Test duration : 8.715s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.085s |
2022-09-22 22:34:50 |
2022-09-22 22:34:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:50 | ------------------------------------ 2022-09-22 22:34:50 | [Mutex] waiting for: [configured:node:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:node-4fd60418-2d42-44e4-9964-eb09a42da412] 2022-09-22 22:34:50 | [Mutex] received everything. 2022-09-22 22:34:50 | [Mutex] isItemNotified: configured:node:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:node-4fd60418-2d42-44e4-9964-eb09a42da412 :: true 2022-09-22 22:34:51 | [Mutex] waiting for: [received:nodes:459785f1-76e2-4ce8-a301-72228c979a88:localhost] 2022-09-22 22:34:51 | [Mutex] received everything. 2022-09-22 22:34:51 | [Mutex] isItemNotified: received:node:459785f1-76e2-4ce8-a301-72228c979a88:localhost:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:Node 0dd8965a-bab9-40a1-9346-0dec10820fbe :: true 2022-09-22 22:34:51 | [Mutex] waiting for: [received:nodes:ddd057cd-e82f-4ae4-9bf1-a8fcdbfe8491:localhost] 2022-09-22 22:34:51 | [Mutex] received everything. 2022-09-22 22:34:51 | [Mutex] isItemNotified: received:node:ddd057cd-e82f-4ae4-9bf1-a8fcdbfe8491:localhost:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:Node 0dd8965a-bab9-40a1-9346-0dec10820fbe :: false |
createNodes | 1.644s |
2022-09-22 22:34:47 |
2022-09-22 22:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:47 | ------------------------------------ 2022-09-22 22:34:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "pubsub#title": "Node 0dd8965a-bab9-40a1-9346-0dec10820fbe" } 2022-09-22 22:34:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:34:49 | [Mutex] waiting for: [received:nodes:35d6128f-2d47-49eb-bcde-fa5dcf58400f:localhost] 2022-09-22 22:34:49 | [Mutex] waiting for: [received:nodes:35d6128f-2d47-49eb-bcde-fa5dcf58400f:localhost] 2022-09-22 22:34:49 | [Mutex] received everything. 2022-09-22 22:34:49 | [Mutex] isItemNotified: received:node:35d6128f-2d47-49eb-bcde-fa5dcf58400f:localhost:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:Node 0dd8965a-bab9-40a1-9346-0dec10820fbe :: true |
createSubnodes | 1.024s |
2022-09-22 22:34:49 |
2022-09-22 22:34:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:49 | ------------------------------------ 2022-09-22 22:34:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4fd60418-2d42-44e4-9964-eb09a42da412", "pubsub#title": "Node 4fd60418-2d42-44e4-9964-eb09a42da412" } 2022-09-22 22:34:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:34:50 | [Mutex] waiting for: [received:nodes:85bb77fc-33d9-4f0b-a779-ca7b5ebb8e54:localhost] 2022-09-22 22:34:50 | [Mutex] received everything. 2022-09-22 22:34:50 | [Mutex] isItemNotified: received:node:85bb77fc-33d9-4f0b-a779-ca7b5ebb8e54:localhost:node-4fd60418-2d42-44e4-9964-eb09a42da412:Node 4fd60418-2d42-44e4-9964-eb09a42da412 :: true |
deleteNodes | 1.022s |
2022-09-22 22:34:54 |
2022-09-22 22:34:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:54 | ------------------------------------ 2022-09-22 22:34:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4fd60418-2d42-44e4-9964-eb09a42da412" } 2022-09-22 22:34:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:34:55 | [Mutex] waiting for: [received:nodes:b95182fa-1289-41a3-90c4-521f8bf98dfa:localhost] 2022-09-22 22:34:55 | [Mutex] waiting for: [received:nodes:b95182fa-1289-41a3-90c4-521f8bf98dfa:localhost] 2022-09-22 22:34:55 | [Mutex] waiting for: [received:nodes:b95182fa-1289-41a3-90c4-521f8bf98dfa:localhost] 2022-09-22 22:34:55 | [Mutex] received everything. 2022-09-22 22:34:55 | [Mutex] isItemNotified: received:node:b95182fa-1289-41a3-90c4-521f8bf98dfa:localhost:node-4fd60418-2d42-44e4-9964-eb09a42da412:Node 4fd60418-2d42-44e4-9964-eb09a42da412 :: false |
deleteSubnodes | 1.034s |
2022-09-22 22:34:53 |
2022-09-22 22:34:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:53 | ------------------------------------ 2022-09-22 22:34:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe" } 2022-09-22 22:34:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:34:54 | [Mutex] waiting for: [received:nodes:3ad33415-6e22-4656-9ea4-38ac73c1fc87:localhost] 2022-09-22 22:34:54 | [Mutex] received everything. 2022-09-22 22:34:54 | [Mutex] isItemNotified: received:node:3ad33415-6e22-4656-9ea4-38ac73c1fc87:localhost:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:Node 0dd8965a-bab9-40a1-9346-0dec10820fbe :: false 2022-09-22 22:34:54 | [Mutex] waiting for: [received:nodes:96915187-1536-4319-9ff7-7c2a4a19b63c:localhost] 2022-09-22 22:34:54 | [Mutex] received everything. 2022-09-22 22:34:54 | [Mutex] isItemNotified: received:node:96915187-1536-4319-9ff7-7c2a4a19b63c:localhost:node-0dd8965a-bab9-40a1-9346-0dec10820fbe:Node 0dd8965a-bab9-40a1-9346-0dec10820fbe :: false |
publishItemsToNodes | 0.044s |
2022-09-22 22:34:52 |
2022-09-22 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:52 | ------------------------------------ 2022-09-22 22:34:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "entry": "<test>item-645916a0-8669-4cb1-aab6-98de7b10cdec</test>", "item-id": "item-645916a0-8669-4cb1-aab6-98de7b10cdec" } 2022-09-22 22:34:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-645916a0-8669-4cb1-aab6-98de7b10cdec" } 2022-09-22 22:34:52 | [Mutex] waiting for: [published:item:notifieditem-645916a0-8669-4cb1-aab6-98de7b10cdec:admin@test-domain.com] 2022-09-22 22:34:52 | [Mutex] received everything. 2022-09-22 22:34:52 | [Mutex] isItemNotified: published:item:notifieditem-645916a0-8669-4cb1-aab6-98de7b10cdec:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-09-22 22:34:52 |
2022-09-22 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:52 | ------------------------------------ 2022-09-22 22:34:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "item-id": "item-645916a0-8669-4cb1-aab6-98de7b10cdec" } 2022-09-22 22:34:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-645916a0-8669-4cb1-aab6-98de7b10cdec" } 2022-09-22 22:34:52 | [Mutex] received everything. 2022-09-22 22:34:52 | [Mutex] isItemNotified: retracted:item:notifieditem-645916a0-8669-4cb1-aab6-98de7b10cdec:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.071s |
2022-09-22 22:34:52 |
2022-09-22 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:52 | ------------------------------------ 2022-09-22 22:34:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "item-id": "item-645916a0-8669-4cb1-aab6-98de7b10cdec" } 2022-09-22 22:34:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "item-id": "item-645916a0-8669-4cb1-aab6-98de7b10cdec", "item": [ "<item id=\"item-645916a0-8669-4cb1-aab6-98de7b10cdec\"><test>item-645916a0-8669-4cb1-aab6-98de7b10cdec</test></item>" ] } 2022-09-22 22:34:52 | [Mutex] notify: [retrieved:item:item-645916a0-8669-4cb1-aab6-98de7b10cdec:payload-matches:true:localhost] 2022-09-22 22:34:52 | [Mutex] received everything. 2022-09-22 22:34:52 | [Mutex] isItemNotified: retrieved:item:item-645916a0-8669-4cb1-aab6-98de7b10cdec:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-09-22 22:34:52 |
2022-09-22 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:52 | ------------------------------------ 2022-09-22 22:34:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-22 22:34:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4fd60418-2d42-44e4-9964-eb09a42da412", "test", "node-0dd8965a-bab9-40a1-9346-0dec10820fbe" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-09-22 22:34:52 |
2022-09-22 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:52 | ------------------------------------ 2022-09-22 22:34:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0dd8965a-bab9-40a1-9346-0dec10820fbe)" } 2022-09-22 22:34:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-09-22 22:34:51 |
2022-09-22 22:34:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:51 | ------------------------------------ 2022-09-22 22:34:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "jids": [ "admin@test-domain.com" ] } 2022-09-22 22:34:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-09-22 22:34:52 |
2022-09-22 22:34:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:34:52 | ------------------------------------ 2022-09-22 22:34:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0dd8965a-bab9-40a1-9346-0dec10820fbe", "jids": [ "admin@test-domain.com" ] } 2022-09-22 22:34:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |