Test duration : 9.085s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2020-09-19 00:35:02 |
2020-09-19 00:35:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:02 | ------------------------------------ 2020-09-19 00:35:02 | [Mutex] waiting for: [configured:node:node-9fb3d847-e8cf-47bc-af4f-75350064b034:node-75a4e921-e502-46cb-a2f2-dfd80a70ef18] 2020-09-19 00:35:02 | [Mutex] received everything. 2020-09-19 00:35:02 | [Mutex] isItemNotified: configured:node:node-9fb3d847-e8cf-47bc-af4f-75350064b034:node-75a4e921-e502-46cb-a2f2-dfd80a70ef18 :: true 2020-09-19 00:35:03 | [Mutex] waiting for: [received:nodes:ae7a743f-1ed5-4b34-9988-4b9e63e3eb4b:localhost] 2020-09-19 00:35:03 | [Mutex] received everything. 2020-09-19 00:35:03 | [Mutex] isItemNotified: received:node:ae7a743f-1ed5-4b34-9988-4b9e63e3eb4b:localhost:node-9fb3d847-e8cf-47bc-af4f-75350064b034:Node 9fb3d847-e8cf-47bc-af4f-75350064b034 :: true 2020-09-19 00:35:03 | [Mutex] waiting for: [received:nodes:09388bac-9f78-47fd-bde7-5bee7645fa48:localhost] 2020-09-19 00:35:03 | [Mutex] received everything. 2020-09-19 00:35:03 | [Mutex] isItemNotified: received:node:09388bac-9f78-47fd-bde7-5bee7645fa48:localhost:node-9fb3d847-e8cf-47bc-af4f-75350064b034:Node 9fb3d847-e8cf-47bc-af4f-75350064b034 :: false |
createNodes | 1.717s |
2020-09-19 00:34:59 |
2020-09-19 00:34:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:34:59 | ------------------------------------ 2020-09-19 00:34:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "pubsub#title": "Node 9fb3d847-e8cf-47bc-af4f-75350064b034" } 2020-09-19 00:35:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 00:35:01 | [Mutex] waiting for: [received:nodes:8c5b4cac-f878-4e80-bde9-f5651751b394:localhost] 2020-09-19 00:35:01 | [Mutex] received everything. 2020-09-19 00:35:01 | [Mutex] isItemNotified: received:node:8c5b4cac-f878-4e80-bde9-f5651751b394:localhost:node-9fb3d847-e8cf-47bc-af4f-75350064b034:Node 9fb3d847-e8cf-47bc-af4f-75350064b034 :: true |
createSubnodes | 1.031s |
2020-09-19 00:35:01 |
2020-09-19 00:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:01 | ------------------------------------ 2020-09-19 00:35:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-75a4e921-e502-46cb-a2f2-dfd80a70ef18", "pubsub#title": "Node 75a4e921-e502-46cb-a2f2-dfd80a70ef18" } 2020-09-19 00:35:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 00:35:02 | [Mutex] waiting for: [received:nodes:638c62c4-e495-4f58-8b57-28d9eebec793:localhost] 2020-09-19 00:35:02 | [Mutex] received everything. 2020-09-19 00:35:02 | [Mutex] isItemNotified: received:node:638c62c4-e495-4f58-8b57-28d9eebec793:localhost:node-75a4e921-e502-46cb-a2f2-dfd80a70ef18:Node 75a4e921-e502-46cb-a2f2-dfd80a70ef18 :: true |
deleteNodes | 1.022s |
2020-09-19 00:35:06 |
2020-09-19 00:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:06 | ------------------------------------ 2020-09-19 00:35:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-75a4e921-e502-46cb-a2f2-dfd80a70ef18" } 2020-09-19 00:35:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 00:35:07 | [Mutex] waiting for: [received:nodes:9e676826-1dbb-4a1d-a27b-81965275d4d5:localhost] 2020-09-19 00:35:07 | [Mutex] received everything. 2020-09-19 00:35:07 | [Mutex] isItemNotified: received:node:9e676826-1dbb-4a1d-a27b-81965275d4d5:localhost:node-75a4e921-e502-46cb-a2f2-dfd80a70ef18:Node 75a4e921-e502-46cb-a2f2-dfd80a70ef18 :: false |
deleteSubnodes | 1.025s |
2020-09-19 00:35:05 |
2020-09-19 00:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:05 | ------------------------------------ 2020-09-19 00:35:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034" } 2020-09-19 00:35:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-19 00:35:06 | [Mutex] waiting for: [received:nodes:3836bb0f-fcaa-40ca-b74f-1986df1305dc:localhost] 2020-09-19 00:35:06 | [Mutex] received everything. 2020-09-19 00:35:06 | [Mutex] isItemNotified: received:node:3836bb0f-fcaa-40ca-b74f-1986df1305dc:localhost:node-9fb3d847-e8cf-47bc-af4f-75350064b034:Node 9fb3d847-e8cf-47bc-af4f-75350064b034 :: false 2020-09-19 00:35:06 | [Mutex] waiting for: [received:nodes:8dafb6eb-5252-4dd4-8692-874d51c4efbc:localhost] 2020-09-19 00:35:06 | [Mutex] received everything. 2020-09-19 00:35:06 | [Mutex] isItemNotified: received:node:8dafb6eb-5252-4dd4-8692-874d51c4efbc:localhost:node-9fb3d847-e8cf-47bc-af4f-75350064b034:Node 9fb3d847-e8cf-47bc-af4f-75350064b034 :: false |
publishItemsToNodes | 0.024s |
2020-09-19 00:35:04 |
2020-09-19 00:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:04 | ------------------------------------ 2020-09-19 00:35:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "entry": "<test>item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74</test>", "item-id": "item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74" } 2020-09-19 00:35:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74" } 2020-09-19 00:35:04 | [Mutex] received everything. 2020-09-19 00:35:04 | [Mutex] isItemNotified: published:item:notifieditem-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-09-19 00:35:04 |
2020-09-19 00:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:04 | ------------------------------------ 2020-09-19 00:35:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "item-id": "item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74" } 2020-09-19 00:35:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74" } 2020-09-19 00:35:04 | [Mutex] received everything. 2020-09-19 00:35:04 | [Mutex] isItemNotified: retracted:item:notifieditem-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2020-09-19 00:35:04 |
2020-09-19 00:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:04 | ------------------------------------ 2020-09-19 00:35:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "item-id": "item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74" } 2020-09-19 00:35:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "item-id": "item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74", "item": [ "<item id=\"item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74\"><test>item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74</test></item>" ] } 2020-09-19 00:35:04 | [Mutex] notify: [retrieved:item:item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74:payload-matches:true:localhost] 2020-09-19 00:35:04 | [Mutex] received everything. 2020-09-19 00:35:04 | [Mutex] isItemNotified: retrieved:item:item-dcb1c43f-6d3c-4aaa-b84b-78c9c941fc74:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2020-09-19 00:35:04 |
2020-09-19 00:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:04 | ------------------------------------ 2020-09-19 00:35:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-19 00:35:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "node-75a4e921-e502-46cb-a2f2-dfd80a70ef18" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-19 00:35:04 |
2020-09-19 00:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:04 | ------------------------------------ 2020-09-19 00:35:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9fb3d847-e8cf-47bc-af4f-75350064b034)" } 2020-09-19 00:35:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-09-19 00:35:03 |
2020-09-19 00:35:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:03 | ------------------------------------ 2020-09-19 00:35:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "jids": [ "admin@test-domain.com" ] } 2020-09-19 00:35:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-19 00:35:04 |
2020-09-19 00:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-19 00:35:04 | ------------------------------------ 2020-09-19 00:35:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9fb3d847-e8cf-47bc-af4f-75350064b034", "jids": [ "admin@test-domain.com" ] } 2020-09-19 00:35:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |