Test duration : 8.867s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.124s |
2021-05-03 22:30:59 |
2021-05-03 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:30:59 | ------------------------------------ 2021-05-03 22:30:59 | [Mutex] waiting for: [configured:node:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b] 2021-05-03 22:30:59 | [Mutex] received everything. 2021-05-03 22:30:59 | [Mutex] isItemNotified: configured:node:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b :: true 2021-05-03 22:31:00 | [Mutex] waiting for: [received:nodes:db04faf6-5de5-4cb1-a107-a7d4bac6984b:localhost] 2021-05-03 22:31:00 | [Mutex] received everything. 2021-05-03 22:31:00 | [Mutex] isItemNotified: received:node:db04faf6-5de5-4cb1-a107-a7d4bac6984b:localhost:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:Node eeb6a947-63cf-4afa-a27f-aec50bfa9c63 :: true 2021-05-03 22:31:00 | [Mutex] waiting for: [received:nodes:5b5a3258-b4f2-47a0-8110-869b13e935ec:localhost] 2021-05-03 22:31:00 | [Mutex] waiting for: [received:nodes:5b5a3258-b4f2-47a0-8110-869b13e935ec:localhost] 2021-05-03 22:31:00 | [Mutex] received everything. 2021-05-03 22:31:00 | [Mutex] isItemNotified: received:node:5b5a3258-b4f2-47a0-8110-869b13e935ec:localhost:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:Node eeb6a947-63cf-4afa-a27f-aec50bfa9c63 :: false |
createNodes | 1.599s |
2021-05-03 22:30:56 |
2021-05-03 22:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:30:56 | ------------------------------------ 2021-05-03 22:30:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "pubsub#title": "Node eeb6a947-63cf-4afa-a27f-aec50bfa9c63" } 2021-05-03 22:30:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:30:58 | [Mutex] waiting for: [received:nodes:e873478a-cb08-42b0-81f2-08dc4af15f91:localhost] 2021-05-03 22:30:58 | [Mutex] received everything. 2021-05-03 22:30:58 | [Mutex] isItemNotified: received:node:e873478a-cb08-42b0-81f2-08dc4af15f91:localhost:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:Node eeb6a947-63cf-4afa-a27f-aec50bfa9c63 :: true |
createSubnodes | 1.024s |
2021-05-03 22:30:58 |
2021-05-03 22:30:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:30:58 | ------------------------------------ 2021-05-03 22:30:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b", "pubsub#title": "Node 319b4c9e-dd57-492a-a4ca-7dba5ab5620b" } 2021-05-03 22:30:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:30:59 | [Mutex] waiting for: [received:nodes:817c3a58-6b88-4b44-9bcd-5897a704d032:localhost] 2021-05-03 22:30:59 | [Mutex] received everything. 2021-05-03 22:30:59 | [Mutex] isItemNotified: received:node:817c3a58-6b88-4b44-9bcd-5897a704d032:localhost:node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b:Node 319b4c9e-dd57-492a-a4ca-7dba5ab5620b :: true |
deleteNodes | 1.025s |
2021-05-03 22:31:03 |
2021-05-03 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:03 | ------------------------------------ 2021-05-03 22:31:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b" } 2021-05-03 22:31:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:31:04 | [Mutex] waiting for: [received:nodes:b95b9ca4-450c-4cf4-be43-eefa3b1b6225:localhost] 2021-05-03 22:31:04 | [Mutex] waiting for: [received:nodes:b95b9ca4-450c-4cf4-be43-eefa3b1b6225:localhost] 2021-05-03 22:31:04 | [Mutex] waiting for: [received:nodes:b95b9ca4-450c-4cf4-be43-eefa3b1b6225:localhost] 2021-05-03 22:31:04 | [Mutex] received everything. 2021-05-03 22:31:04 | [Mutex] isItemNotified: received:node:b95b9ca4-450c-4cf4-be43-eefa3b1b6225:localhost:node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b:Node 319b4c9e-dd57-492a-a4ca-7dba5ab5620b :: false |
deleteSubnodes | 1.026s |
2021-05-03 22:31:02 |
2021-05-03 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:02 | ------------------------------------ 2021-05-03 22:31:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63" } 2021-05-03 22:31:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:31:03 | [Mutex] waiting for: [received:nodes:e6a70134-ea51-484a-9507-04c04a81cb09:localhost] 2021-05-03 22:31:03 | [Mutex] received everything. 2021-05-03 22:31:03 | [Mutex] isItemNotified: received:node:e6a70134-ea51-484a-9507-04c04a81cb09:localhost:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:Node eeb6a947-63cf-4afa-a27f-aec50bfa9c63 :: false 2021-05-03 22:31:03 | [Mutex] waiting for: [received:nodes:fb7bacf8-12bb-4158-9648-2d4d24d0a2c2:localhost] 2021-05-03 22:31:03 | [Mutex] received everything. 2021-05-03 22:31:03 | [Mutex] isItemNotified: received:node:fb7bacf8-12bb-4158-9648-2d4d24d0a2c2:localhost:node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63:Node eeb6a947-63cf-4afa-a27f-aec50bfa9c63 :: false |
publishItemsToNodes | 0.042s |
2021-05-03 22:31:01 |
2021-05-03 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:01 | ------------------------------------ 2021-05-03 22:31:01 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "entry": "<test>item-7d47000b-da03-4f94-ae72-2e1b54e999eb</test>", "item-id": "item-7d47000b-da03-4f94-ae72-2e1b54e999eb" } 2021-05-03 22:31:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7d47000b-da03-4f94-ae72-2e1b54e999eb" } 2021-05-03 22:31:01 | [Mutex] waiting for: [published:item:notifieditem-7d47000b-da03-4f94-ae72-2e1b54e999eb:admin@test-domain.com] 2021-05-03 22:31:01 | [Mutex] received everything. 2021-05-03 22:31:01 | [Mutex] isItemNotified: published:item:notifieditem-7d47000b-da03-4f94-ae72-2e1b54e999eb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2021-05-03 22:31:01 |
2021-05-03 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:01 | ------------------------------------ 2021-05-03 22:31:01 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "item-id": "item-7d47000b-da03-4f94-ae72-2e1b54e999eb" } 2021-05-03 22:31:01 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7d47000b-da03-4f94-ae72-2e1b54e999eb" } 2021-05-03 22:31:01 | [Mutex] waiting for: [retracted:item:notifieditem-7d47000b-da03-4f94-ae72-2e1b54e999eb:admin@test-domain.com] 2021-05-03 22:31:01 | [Mutex] received everything. 2021-05-03 22:31:01 | [Mutex] isItemNotified: retracted:item:notifieditem-7d47000b-da03-4f94-ae72-2e1b54e999eb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.092s |
2021-05-03 22:31:01 |
2021-05-03 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:01 | ------------------------------------ 2021-05-03 22:31:01 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "item-id": "item-7d47000b-da03-4f94-ae72-2e1b54e999eb" } 2021-05-03 22:31:01 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "item-id": "item-7d47000b-da03-4f94-ae72-2e1b54e999eb", "item": [ "<item id=\"item-7d47000b-da03-4f94-ae72-2e1b54e999eb\"><test>item-7d47000b-da03-4f94-ae72-2e1b54e999eb</test></item>" ] } 2021-05-03 22:31:01 | [Mutex] notify: [retrieved:item:item-7d47000b-da03-4f94-ae72-2e1b54e999eb:payload-matches:true:localhost] 2021-05-03 22:31:01 | [Mutex] received everything. 2021-05-03 22:31:01 | [Mutex] isItemNotified: retrieved:item:item-7d47000b-da03-4f94-ae72-2e1b54e999eb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-05-03 22:31:01 |
2021-05-03 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:01 | ------------------------------------ 2021-05-03 22:31:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-03 22:31:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-319b4c9e-dd57-492a-a4ca-7dba5ab5620b", "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-05-03 22:31:01 |
2021-05-03 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:01 | ------------------------------------ 2021-05-03 22:31:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63)" } 2021-05-03 22:31:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-05-03 22:31:00 |
2021-05-03 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:00 | ------------------------------------ 2021-05-03 22:31:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "jids": [ "admin@test-domain.com" ] } 2021-05-03 22:31:00 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.058s |
2021-05-03 22:31:01 |
2021-05-03 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:31:01 | ------------------------------------ 2021-05-03 22:31:01 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-eeb6a947-63cf-4afa-a27f-aec50bfa9c63", "jids": [ "admin@test-domain.com" ] } 2021-05-03 22:31:01 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |