Test duration : 8.982s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2022-01-16 22:13:02 |
2022-01-16 22:13:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:02 | ------------------------------------ 2022-01-16 22:13:02 | [Mutex] waiting for: [configured:node:node-70646af9-a642-4d30-aa88-e8db904c8efd:node-a8c08fd2-2c38-493f-a646-235b8c5ba33f] 2022-01-16 22:13:02 | [Mutex] received everything. 2022-01-16 22:13:02 | [Mutex] isItemNotified: configured:node:node-70646af9-a642-4d30-aa88-e8db904c8efd:node-a8c08fd2-2c38-493f-a646-235b8c5ba33f :: true 2022-01-16 22:13:03 | [Mutex] waiting for: [received:nodes:b4a2a8d5-8d2c-4342-aec3-d51eca227734:localhost] 2022-01-16 22:13:03 | [Mutex] received everything. 2022-01-16 22:13:03 | [Mutex] isItemNotified: received:node:b4a2a8d5-8d2c-4342-aec3-d51eca227734:localhost:node-70646af9-a642-4d30-aa88-e8db904c8efd:Node 70646af9-a642-4d30-aa88-e8db904c8efd :: true 2022-01-16 22:13:03 | [Mutex] waiting for: [received:nodes:453731fe-ae93-4a28-a69b-d78fff693d2f:localhost] 2022-01-16 22:13:03 | [Mutex] received everything. 2022-01-16 22:13:03 | [Mutex] isItemNotified: received:node:453731fe-ae93-4a28-a69b-d78fff693d2f:localhost:node-70646af9-a642-4d30-aa88-e8db904c8efd:Node 70646af9-a642-4d30-aa88-e8db904c8efd :: false |
createNodes | 1.547s |
2022-01-16 22:13:00 |
2022-01-16 22:13:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:00 | ------------------------------------ 2022-01-16 22:13:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "pubsub#title": "Node 70646af9-a642-4d30-aa88-e8db904c8efd" } 2022-01-16 22:13:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:13:01 | [Mutex] waiting for: [received:nodes:84276138-6dbc-44d4-8aec-48b2f6219cd5:localhost] 2022-01-16 22:13:01 | [Mutex] waiting for: [received:nodes:84276138-6dbc-44d4-8aec-48b2f6219cd5:localhost] 2022-01-16 22:13:01 | [Mutex] received everything. 2022-01-16 22:13:01 | [Mutex] isItemNotified: received:node:84276138-6dbc-44d4-8aec-48b2f6219cd5:localhost:node-70646af9-a642-4d30-aa88-e8db904c8efd:Node 70646af9-a642-4d30-aa88-e8db904c8efd :: true |
createSubnodes | 1.024s |
2022-01-16 22:13:01 |
2022-01-16 22:13:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:01 | ------------------------------------ 2022-01-16 22:13: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-a8c08fd2-2c38-493f-a646-235b8c5ba33f", "pubsub#title": "Node a8c08fd2-2c38-493f-a646-235b8c5ba33f" } 2022-01-16 22:13:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:13:02 | [Mutex] waiting for: [received:nodes:c4cc6b81-640c-4a9e-8231-6875adea8c83:localhost] 2022-01-16 22:13:02 | [Mutex] waiting for: [received:nodes:c4cc6b81-640c-4a9e-8231-6875adea8c83:localhost] 2022-01-16 22:13:02 | [Mutex] received everything. 2022-01-16 22:13:02 | [Mutex] isItemNotified: received:node:c4cc6b81-640c-4a9e-8231-6875adea8c83:localhost:node-a8c08fd2-2c38-493f-a646-235b8c5ba33f:Node a8c08fd2-2c38-493f-a646-235b8c5ba33f :: true |
deleteNodes | 1.026s |
2022-01-16 22:13:07 |
2022-01-16 22:13:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:07 | ------------------------------------ 2022-01-16 22:13:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a8c08fd2-2c38-493f-a646-235b8c5ba33f" } 2022-01-16 22:13:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:13:08 | [Mutex] waiting for: [received:nodes:ed9dacb6-0159-43ab-ac76-0f1106068264:localhost] 2022-01-16 22:13:08 | [Mutex] received everything. 2022-01-16 22:13:08 | [Mutex] isItemNotified: received:node:ed9dacb6-0159-43ab-ac76-0f1106068264:localhost:node-a8c08fd2-2c38-493f-a646-235b8c5ba33f:Node a8c08fd2-2c38-493f-a646-235b8c5ba33f :: false |
deleteSubnodes | 1.029s |
2022-01-16 22:13:06 |
2022-01-16 22:13:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:06 | ------------------------------------ 2022-01-16 22:13:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd" } 2022-01-16 22:13:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:13:07 | [Mutex] waiting for: [received:nodes:c46f1c48-44b2-4231-89d0-87666f47222a:localhost] 2022-01-16 22:13:07 | [Mutex] received everything. 2022-01-16 22:13:07 | [Mutex] isItemNotified: received:node:c46f1c48-44b2-4231-89d0-87666f47222a:localhost:node-70646af9-a642-4d30-aa88-e8db904c8efd:Node 70646af9-a642-4d30-aa88-e8db904c8efd :: false 2022-01-16 22:13:07 | [Mutex] waiting for: [received:nodes:9ca6a214-df19-4204-be81-132bd0bc6d7c:localhost] 2022-01-16 22:13:07 | [Mutex] received everything. 2022-01-16 22:13:07 | [Mutex] isItemNotified: received:node:9ca6a214-df19-4204-be81-132bd0bc6d7c:localhost:node-70646af9-a642-4d30-aa88-e8db904c8efd:Node 70646af9-a642-4d30-aa88-e8db904c8efd :: false |
publishItemsToNodes | 0.117s |
2022-01-16 22:13:05 |
2022-01-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:05 | ------------------------------------ 2022-01-16 22:13:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "entry": "<test>item-81eca488-d517-484f-a81d-7e44df87f46b</test>", "item-id": "item-81eca488-d517-484f-a81d-7e44df87f46b" } 2022-01-16 22:13:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-81eca488-d517-484f-a81d-7e44df87f46b" } 2022-01-16 22:13:05 | [Mutex] waiting for: [published:item:notifieditem-81eca488-d517-484f-a81d-7e44df87f46b:admin@test-domain.com] 2022-01-16 22:13:05 | [Mutex] received everything. 2022-01-16 22:13:05 | [Mutex] isItemNotified: published:item:notifieditem-81eca488-d517-484f-a81d-7e44df87f46b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2022-01-16 22:13:05 |
2022-01-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:05 | ------------------------------------ 2022-01-16 22:13:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "item-id": "item-81eca488-d517-484f-a81d-7e44df87f46b" } 2022-01-16 22:13:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-81eca488-d517-484f-a81d-7e44df87f46b" } 2022-01-16 22:13:05 | [Mutex] waiting for: [retracted:item:notifieditem-81eca488-d517-484f-a81d-7e44df87f46b:admin@test-domain.com] 2022-01-16 22:13:05 | [Mutex] received everything. 2022-01-16 22:13:05 | [Mutex] isItemNotified: retracted:item:notifieditem-81eca488-d517-484f-a81d-7e44df87f46b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2022-01-16 22:13:05 |
2022-01-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:05 | ------------------------------------ 2022-01-16 22:13:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "item-id": "item-81eca488-d517-484f-a81d-7e44df87f46b" } 2022-01-16 22:13:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "item-id": "item-81eca488-d517-484f-a81d-7e44df87f46b", "item": [ "<item id=\"item-81eca488-d517-484f-a81d-7e44df87f46b\"><test>item-81eca488-d517-484f-a81d-7e44df87f46b</test></item>" ] } 2022-01-16 22:13:05 | [Mutex] notify: [retrieved:item:item-81eca488-d517-484f-a81d-7e44df87f46b:payload-matches:true:localhost] 2022-01-16 22:13:05 | [Mutex] received everything. 2022-01-16 22:13:05 | [Mutex] isItemNotified: retrieved:item:item-81eca488-d517-484f-a81d-7e44df87f46b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.074s |
2022-01-16 22:13:05 |
2022-01-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:05 | ------------------------------------ 2022-01-16 22:13:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-01-16 22:13:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a8c08fd2-2c38-493f-a646-235b8c5ba33f", "test", "node-70646af9-a642-4d30-aa88-e8db904c8efd" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2022-01-16 22:13:05 |
2022-01-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:05 | ------------------------------------ 2022-01-16 22:13:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-70646af9-a642-4d30-aa88-e8db904c8efd)" } 2022-01-16 22:13:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.022s |
2022-01-16 22:13:03 |
2022-01-16 22:13:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:03 | ------------------------------------ 2022-01-16 22:13:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "jids": [ "admin@test-domain.com" ] } 2022-01-16 22:13:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.089s |
2022-01-16 22:13:05 |
2022-01-16 22:13:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:13:05 | ------------------------------------ 2022-01-16 22:13:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-70646af9-a642-4d30-aa88-e8db904c8efd", "jids": [ "admin@test-domain.com" ] } 2022-01-16 22:13:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |