Test duration : 8.937s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2021-10-27 08:27:26 |
2021-10-27 08:27:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:26 | ------------------------------------ 2021-10-27 08:27:26 | [Mutex] waiting for: [configured:node:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5] 2021-10-27 08:27:26 | [Mutex] received everything. 2021-10-27 08:27:26 | [Mutex] isItemNotified: configured:node:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5 :: true 2021-10-27 08:27:27 | [Mutex] waiting for: [received:nodes:e16d98d1-9736-40f4-8ac1-d8a21a4b0322:localhost] 2021-10-27 08:27:27 | [Mutex] received everything. 2021-10-27 08:27:27 | [Mutex] isItemNotified: received:node:e16d98d1-9736-40f4-8ac1-d8a21a4b0322:localhost:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:Node 4051fd47-4ef9-4d92-9bd3-74cdb6a492f1 :: true 2021-10-27 08:27:27 | [Mutex] waiting for: [received:nodes:b03db6de-e1f7-4772-b0c9-46e020a1aeab:localhost] 2021-10-27 08:27:27 | [Mutex] waiting for: [received:nodes:b03db6de-e1f7-4772-b0c9-46e020a1aeab:localhost] 2021-10-27 08:27:27 | [Mutex] received everything. 2021-10-27 08:27:27 | [Mutex] isItemNotified: received:node:b03db6de-e1f7-4772-b0c9-46e020a1aeab:localhost:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:Node 4051fd47-4ef9-4d92-9bd3-74cdb6a492f1 :: false |
createNodes | 1.653s |
2021-10-27 08:27:23 |
2021-10-27 08:27:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:23 | ------------------------------------ 2021-10-27 08:27:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "pubsub#title": "Node 4051fd47-4ef9-4d92-9bd3-74cdb6a492f1" } 2021-10-27 08:27:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-27 08:27:25 | [Mutex] waiting for: [received:nodes:db3063f9-50ea-4fa7-a992-029ecdbc6c1f:localhost] 2021-10-27 08:27:25 | [Mutex] waiting for: [received:nodes:db3063f9-50ea-4fa7-a992-029ecdbc6c1f:localhost] 2021-10-27 08:27:25 | [Mutex] received everything. 2021-10-27 08:27:25 | [Mutex] isItemNotified: received:node:db3063f9-50ea-4fa7-a992-029ecdbc6c1f:localhost:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:Node 4051fd47-4ef9-4d92-9bd3-74cdb6a492f1 :: true |
createSubnodes | 1.032s |
2021-10-27 08:27:25 |
2021-10-27 08:27:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:25 | ------------------------------------ 2021-10-27 08:27:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5", "pubsub#title": "Node 8252f1f9-bc26-4ed2-b76f-2c174d760ce5" } 2021-10-27 08:27:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-27 08:27:26 | [Mutex] waiting for: [received:nodes:4cab0a0a-3074-48a1-80fe-011e0438bfbc:localhost] 2021-10-27 08:27:26 | [Mutex] waiting for: [received:nodes:4cab0a0a-3074-48a1-80fe-011e0438bfbc:localhost] 2021-10-27 08:27:26 | [Mutex] waiting for: [received:nodes:4cab0a0a-3074-48a1-80fe-011e0438bfbc:localhost] 2021-10-27 08:27:26 | [Mutex] received everything. 2021-10-27 08:27:26 | [Mutex] isItemNotified: received:node:4cab0a0a-3074-48a1-80fe-011e0438bfbc:localhost:node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5:Node 8252f1f9-bc26-4ed2-b76f-2c174d760ce5 :: true |
deleteNodes | 1.024s |
2021-10-27 08:27:30 |
2021-10-27 08:27:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:30 | ------------------------------------ 2021-10-27 08:27:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5" } 2021-10-27 08:27:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-27 08:27:31 | [Mutex] waiting for: [received:nodes:e07ccf7c-0099-4767-abb2-179681989915:localhost] 2021-10-27 08:27:31 | [Mutex] received everything. 2021-10-27 08:27:31 | [Mutex] isItemNotified: received:node:e07ccf7c-0099-4767-abb2-179681989915:localhost:node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5:Node 8252f1f9-bc26-4ed2-b76f-2c174d760ce5 :: false |
deleteSubnodes | 1.029s |
2021-10-27 08:27:29 |
2021-10-27 08:27:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:29 | ------------------------------------ 2021-10-27 08:27:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1" } 2021-10-27 08:27:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-27 08:27:30 | [Mutex] waiting for: [received:nodes:c1171880-9f1e-475a-a4aa-36c3b43c3fe5:localhost] 2021-10-27 08:27:30 | [Mutex] waiting for: [received:nodes:c1171880-9f1e-475a-a4aa-36c3b43c3fe5:localhost] 2021-10-27 08:27:30 | [Mutex] received everything. 2021-10-27 08:27:30 | [Mutex] isItemNotified: received:node:c1171880-9f1e-475a-a4aa-36c3b43c3fe5:localhost:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:Node 4051fd47-4ef9-4d92-9bd3-74cdb6a492f1 :: false 2021-10-27 08:27:30 | [Mutex] waiting for: [received:nodes:9b63e564-e9db-4709-a69b-41c425abaca7:localhost] 2021-10-27 08:27:30 | [Mutex] received everything. 2021-10-27 08:27:30 | [Mutex] isItemNotified: received:node:9b63e564-e9db-4709-a69b-41c425abaca7:localhost:node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1:Node 4051fd47-4ef9-4d92-9bd3-74cdb6a492f1 :: false |
publishItemsToNodes | 0.050s |
2021-10-27 08:27:28 |
2021-10-27 08:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:28 | ------------------------------------ 2021-10-27 08:27:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "entry": "<test>item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7</test>", "item-id": "item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7" } 2021-10-27 08:27:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7" } 2021-10-27 08:27:28 | [Mutex] waiting for: [published:item:notifieditem-ad29b287-11f1-4b0f-9369-b1a9221fd6e7:admin@test-domain.com] 2021-10-27 08:27:28 | [Mutex] received everything. 2021-10-27 08:27:28 | [Mutex] isItemNotified: published:item:notifieditem-ad29b287-11f1-4b0f-9369-b1a9221fd6e7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-10-27 08:27:28 |
2021-10-27 08:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:28 | ------------------------------------ 2021-10-27 08:27:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "item-id": "item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7" } 2021-10-27 08:27:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7" } 2021-10-27 08:27:28 | [Mutex] received everything. 2021-10-27 08:27:28 | [Mutex] isItemNotified: retracted:item:notifieditem-ad29b287-11f1-4b0f-9369-b1a9221fd6e7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2021-10-27 08:27:28 |
2021-10-27 08:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:28 | ------------------------------------ 2021-10-27 08:27:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "item-id": "item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7" } 2021-10-27 08:27:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "item-id": "item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7", "item": [ "<item id=\"item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7\"><test>item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7</test></item>" ] } 2021-10-27 08:27:28 | [Mutex] notify: [retrieved:item:item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7:payload-matches:true:localhost] 2021-10-27 08:27:28 | [Mutex] received everything. 2021-10-27 08:27:28 | [Mutex] isItemNotified: retrieved:item:item-ad29b287-11f1-4b0f-9369-b1a9221fd6e7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-10-27 08:27:28 |
2021-10-27 08:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:28 | ------------------------------------ 2021-10-27 08:27:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-27 08:27:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "node-8252f1f9-bc26-4ed2-b76f-2c174d760ce5" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-10-27 08:27:28 |
2021-10-27 08:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:28 | ------------------------------------ 2021-10-27 08:27:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1)" } 2021-10-27 08:27:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-10-27 08:27:27 |
2021-10-27 08:27:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:27 | ------------------------------------ 2021-10-27 08:27:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "jids": [ "admin@test-domain.com" ] } 2021-10-27 08:27:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-10-27 08:27:28 |
2021-10-27 08:27:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-27 08:27:28 | ------------------------------------ 2021-10-27 08:27:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4051fd47-4ef9-4d92-9bd3-74cdb6a492f1", "jids": [ "admin@test-domain.com" ] } 2021-10-27 08:27:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |