Test duration : 8.873s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2021-05-05 22:58:04 |
2021-05-05 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:04 | ------------------------------------ 2021-05-05 22:58:04 | [Mutex] waiting for: [configured:node:node-f0d373ef-788f-43e1-ad24-12fd667d635c:node-febff4ff-fee8-4a55-a13a-39551516f8cd] 2021-05-05 22:58:04 | [Mutex] received everything. 2021-05-05 22:58:04 | [Mutex] isItemNotified: configured:node:node-f0d373ef-788f-43e1-ad24-12fd667d635c:node-febff4ff-fee8-4a55-a13a-39551516f8cd :: true 2021-05-05 22:58:05 | [Mutex] waiting for: [received:nodes:c12ec40e-7700-4cf8-9771-ade049e670be:localhost] 2021-05-05 22:58:05 | [Mutex] received everything. 2021-05-05 22:58:05 | [Mutex] isItemNotified: received:node:c12ec40e-7700-4cf8-9771-ade049e670be:localhost:node-f0d373ef-788f-43e1-ad24-12fd667d635c:Node f0d373ef-788f-43e1-ad24-12fd667d635c :: true 2021-05-05 22:58:05 | [Mutex] waiting for: [received:nodes:fc38c6df-8c0c-41cf-95d8-fa92160d7538:localhost] 2021-05-05 22:58:05 | [Mutex] waiting for: [received:nodes:fc38c6df-8c0c-41cf-95d8-fa92160d7538:localhost] 2021-05-05 22:58:05 | [Mutex] waiting for: [received:nodes:fc38c6df-8c0c-41cf-95d8-fa92160d7538:localhost] 2021-05-05 22:58:05 | [Mutex] received everything. 2021-05-05 22:58:05 | [Mutex] isItemNotified: received:node:fc38c6df-8c0c-41cf-95d8-fa92160d7538:localhost:node-f0d373ef-788f-43e1-ad24-12fd667d635c:Node f0d373ef-788f-43e1-ad24-12fd667d635c :: false |
createNodes | 1.569s |
2021-05-05 22:58:01 |
2021-05-05 22:58:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:01 | ------------------------------------ 2021-05-05 22:58:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "pubsub#title": "Node f0d373ef-788f-43e1-ad24-12fd667d635c" } 2021-05-05 22:58:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:58:03 | [Mutex] waiting for: [received:nodes:d7ce7e44-cff7-43c1-ac88-499a27dc9e1c:localhost] 2021-05-05 22:58:03 | [Mutex] received everything. 2021-05-05 22:58:03 | [Mutex] isItemNotified: received:node:d7ce7e44-cff7-43c1-ac88-499a27dc9e1c:localhost:node-f0d373ef-788f-43e1-ad24-12fd667d635c:Node f0d373ef-788f-43e1-ad24-12fd667d635c :: true |
createSubnodes | 1.033s |
2021-05-05 22:58:03 |
2021-05-05 22:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:03 | ------------------------------------ 2021-05-05 22:58:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-febff4ff-fee8-4a55-a13a-39551516f8cd", "pubsub#title": "Node febff4ff-fee8-4a55-a13a-39551516f8cd" } 2021-05-05 22:58:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:58:04 | [Mutex] waiting for: [received:nodes:38a5bd47-d146-4d7c-b32d-b2ad9b358841:localhost] 2021-05-05 22:58:04 | [Mutex] received everything. 2021-05-05 22:58:04 | [Mutex] isItemNotified: received:node:38a5bd47-d146-4d7c-b32d-b2ad9b358841:localhost:node-febff4ff-fee8-4a55-a13a-39551516f8cd:Node febff4ff-fee8-4a55-a13a-39551516f8cd :: true |
deleteNodes | 1.027s |
2021-05-05 22:58:09 |
2021-05-05 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:09 | ------------------------------------ 2021-05-05 22:58:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-febff4ff-fee8-4a55-a13a-39551516f8cd" } 2021-05-05 22:58:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:58:10 | [Mutex] waiting for: [received:nodes:6b2eb0bc-2cc3-4472-963e-9b4042d8f6dc:localhost] 2021-05-05 22:58:10 | [Mutex] received everything. 2021-05-05 22:58:10 | [Mutex] isItemNotified: received:node:6b2eb0bc-2cc3-4472-963e-9b4042d8f6dc:localhost:node-febff4ff-fee8-4a55-a13a-39551516f8cd:Node febff4ff-fee8-4a55-a13a-39551516f8cd :: false |
deleteSubnodes | 1.031s |
2021-05-05 22:58:08 |
2021-05-05 22:58:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:08 | ------------------------------------ 2021-05-05 22:58:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c" } 2021-05-05 22:58:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:58:09 | [Mutex] waiting for: [received:nodes:3ce53252-2656-47a5-899c-33b51eed8ca6:localhost] 2021-05-05 22:58:09 | [Mutex] waiting for: [received:nodes:3ce53252-2656-47a5-899c-33b51eed8ca6:localhost] 2021-05-05 22:58:09 | [Mutex] received everything. 2021-05-05 22:58:09 | [Mutex] isItemNotified: received:node:3ce53252-2656-47a5-899c-33b51eed8ca6:localhost:node-f0d373ef-788f-43e1-ad24-12fd667d635c:Node f0d373ef-788f-43e1-ad24-12fd667d635c :: false 2021-05-05 22:58:09 | [Mutex] waiting for: [received:nodes:895c8a41-2573-49ef-be81-dff287575765:localhost] 2021-05-05 22:58:09 | [Mutex] received everything. 2021-05-05 22:58:09 | [Mutex] isItemNotified: received:node:895c8a41-2573-49ef-be81-dff287575765:localhost:node-f0d373ef-788f-43e1-ad24-12fd667d635c:Node f0d373ef-788f-43e1-ad24-12fd667d635c :: false |
publishItemsToNodes | 0.049s |
2021-05-05 22:58:06 |
2021-05-05 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:06 | ------------------------------------ 2021-05-05 22:58:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "entry": "<test>item-38937d73-6441-48d3-8697-381c8cedb4b2</test>", "item-id": "item-38937d73-6441-48d3-8697-381c8cedb4b2" } 2021-05-05 22:58:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-38937d73-6441-48d3-8697-381c8cedb4b2" } 2021-05-05 22:58:06 | [Mutex] waiting for: [published:item:notifieditem-38937d73-6441-48d3-8697-381c8cedb4b2:admin@test-domain.com] 2021-05-05 22:58:06 | [Mutex] received everything. 2021-05-05 22:58:06 | [Mutex] isItemNotified: published:item:notifieditem-38937d73-6441-48d3-8697-381c8cedb4b2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-05-05 22:58:06 |
2021-05-05 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:06 | ------------------------------------ 2021-05-05 22:58:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "item-id": "item-38937d73-6441-48d3-8697-381c8cedb4b2" } 2021-05-05 22:58:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-38937d73-6441-48d3-8697-381c8cedb4b2" } 2021-05-05 22:58:06 | [Mutex] received everything. 2021-05-05 22:58:06 | [Mutex] isItemNotified: retracted:item:notifieditem-38937d73-6441-48d3-8697-381c8cedb4b2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.071s |
2021-05-05 22:58:06 |
2021-05-05 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:06 | ------------------------------------ 2021-05-05 22:58:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "item-id": "item-38937d73-6441-48d3-8697-381c8cedb4b2" } 2021-05-05 22:58:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "item-id": "item-38937d73-6441-48d3-8697-381c8cedb4b2", "item": [ "<item id=\"item-38937d73-6441-48d3-8697-381c8cedb4b2\"><test>item-38937d73-6441-48d3-8697-381c8cedb4b2</test></item>" ] } 2021-05-05 22:58:06 | [Mutex] notify: [retrieved:item:item-38937d73-6441-48d3-8697-381c8cedb4b2:payload-matches:true:localhost] 2021-05-05 22:58:06 | [Mutex] received everything. 2021-05-05 22:58:06 | [Mutex] isItemNotified: retrieved:item:item-38937d73-6441-48d3-8697-381c8cedb4b2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-05-05 22:58:06 |
2021-05-05 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:06 | ------------------------------------ 2021-05-05 22:58:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-05 22:58:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "test", "node-febff4ff-fee8-4a55-a13a-39551516f8cd" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-05-05 22:58:06 |
2021-05-05 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:06 | ------------------------------------ 2021-05-05 22:58:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f0d373ef-788f-43e1-ad24-12fd667d635c)" } 2021-05-05 22:58:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-05-05 22:58:05 |
2021-05-05 22:58:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:05 | ------------------------------------ 2021-05-05 22:58:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "jids": [ "admin@test-domain.com" ] } 2021-05-05 22:58:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2021-05-05 22:58:06 |
2021-05-05 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:58:06 | ------------------------------------ 2021-05-05 22:58:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f0d373ef-788f-43e1-ad24-12fd667d635c", "jids": [ "admin@test-domain.com" ] } 2021-05-05 22:58:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |