Test duration : 9.243s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.127s |
2020-11-03 21:27:22 |
2020-11-03 21:27:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:22 | ------------------------------------ 2020-11-03 21:27:22 | [Mutex] waiting for: [configured:node:node-7b3653f8-e4ae-49ca-b613-46f345404621:node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3] 2020-11-03 21:27:22 | [Mutex] received everything. 2020-11-03 21:27:22 | [Mutex] isItemNotified: configured:node:node-7b3653f8-e4ae-49ca-b613-46f345404621:node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3 :: true 2020-11-03 21:27:23 | [Mutex] waiting for: [received:nodes:19be8176-4931-4764-8788-a1059fbeb0a0:localhost] 2020-11-03 21:27:23 | [Mutex] waiting for: [received:nodes:19be8176-4931-4764-8788-a1059fbeb0a0:localhost] 2020-11-03 21:27:23 | [Mutex] received everything. 2020-11-03 21:27:23 | [Mutex] isItemNotified: received:node:19be8176-4931-4764-8788-a1059fbeb0a0:localhost:node-7b3653f8-e4ae-49ca-b613-46f345404621:Node 7b3653f8-e4ae-49ca-b613-46f345404621 :: true 2020-11-03 21:27:23 | [Mutex] waiting for: [received:nodes:15caa534-af53-44df-b091-9cf7dbec15f1:localhost] 2020-11-03 21:27:23 | [Mutex] waiting for: [received:nodes:15caa534-af53-44df-b091-9cf7dbec15f1:localhost] 2020-11-03 21:27:23 | [Mutex] received everything. 2020-11-03 21:27:23 | [Mutex] isItemNotified: received:node:15caa534-af53-44df-b091-9cf7dbec15f1:localhost:node-7b3653f8-e4ae-49ca-b613-46f345404621:Node 7b3653f8-e4ae-49ca-b613-46f345404621 :: false |
createNodes | 1.688s |
2020-11-03 21:27:19 |
2020-11-03 21:27:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:19 | ------------------------------------ 2020-11-03 21:27:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "pubsub#title": "Node 7b3653f8-e4ae-49ca-b613-46f345404621" } 2020-11-03 21:27:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-03 21:27:21 | [Mutex] waiting for: [received:nodes:4e8fcf8f-6145-416f-acf8-b09e1e662fa4:localhost] 2020-11-03 21:27:21 | [Mutex] waiting for: [received:nodes:4e8fcf8f-6145-416f-acf8-b09e1e662fa4:localhost] 2020-11-03 21:27:21 | [Mutex] received everything. 2020-11-03 21:27:21 | [Mutex] isItemNotified: received:node:4e8fcf8f-6145-416f-acf8-b09e1e662fa4:localhost:node-7b3653f8-e4ae-49ca-b613-46f345404621:Node 7b3653f8-e4ae-49ca-b613-46f345404621 :: true |
createSubnodes | 1.035s |
2020-11-03 21:27:21 |
2020-11-03 21:27:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:21 | ------------------------------------ 2020-11-03 21:27:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3", "pubsub#title": "Node aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3" } 2020-11-03 21:27:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-03 21:27:22 | [Mutex] waiting for: [received:nodes:949362c5-8d48-4b92-80f6-8758df5f9700:localhost] 2020-11-03 21:27:22 | [Mutex] received everything. 2020-11-03 21:27:22 | [Mutex] isItemNotified: received:node:949362c5-8d48-4b92-80f6-8758df5f9700:localhost:node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3:Node aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3 :: true |
deleteNodes | 1.026s |
2020-11-03 21:27:26 |
2020-11-03 21:27:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:26 | ------------------------------------ 2020-11-03 21:27:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3" } 2020-11-03 21:27:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-03 21:27:27 | [Mutex] waiting for: [received:nodes:0f6a07d8-c2fa-4726-b96d-6e75bb06f030:localhost] 2020-11-03 21:27:27 | [Mutex] received everything. 2020-11-03 21:27:27 | [Mutex] isItemNotified: received:node:0f6a07d8-c2fa-4726-b96d-6e75bb06f030:localhost:node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3:Node aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3 :: false |
deleteSubnodes | 1.031s |
2020-11-03 21:27:25 |
2020-11-03 21:27:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:25 | ------------------------------------ 2020-11-03 21:27:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621" } 2020-11-03 21:27:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-03 21:27:26 | [Mutex] waiting for: [received:nodes:cc23856d-003e-4bb9-a470-1ff8d3bb1695:localhost] 2020-11-03 21:27:26 | [Mutex] received everything. 2020-11-03 21:27:26 | [Mutex] isItemNotified: received:node:cc23856d-003e-4bb9-a470-1ff8d3bb1695:localhost:node-7b3653f8-e4ae-49ca-b613-46f345404621:Node 7b3653f8-e4ae-49ca-b613-46f345404621 :: false 2020-11-03 21:27:26 | [Mutex] waiting for: [received:nodes:d51b19d0-1658-4194-907c-189f74d118c0:localhost] 2020-11-03 21:27:26 | [Mutex] received everything. 2020-11-03 21:27:26 | [Mutex] isItemNotified: received:node:d51b19d0-1658-4194-907c-189f74d118c0:localhost:node-7b3653f8-e4ae-49ca-b613-46f345404621:Node 7b3653f8-e4ae-49ca-b613-46f345404621 :: false |
publishItemsToNodes | 0.062s |
2020-11-03 21:27:24 |
2020-11-03 21:27:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:24 | ------------------------------------ 2020-11-03 21:27:24 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "entry": "<test>item-08ba2332-e31b-4cb2-8155-b48734b303a3</test>", "item-id": "item-08ba2332-e31b-4cb2-8155-b48734b303a3" } 2020-11-03 21:27:24 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-08ba2332-e31b-4cb2-8155-b48734b303a3" } 2020-11-03 21:27:24 | [Mutex] received everything. 2020-11-03 21:27:24 | [Mutex] isItemNotified: published:item:notifieditem-08ba2332-e31b-4cb2-8155-b48734b303a3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2020-11-03 21:27:24 |
2020-11-03 21:27:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:24 | ------------------------------------ 2020-11-03 21:27:24 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "item-id": "item-08ba2332-e31b-4cb2-8155-b48734b303a3" } 2020-11-03 21:27:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-08ba2332-e31b-4cb2-8155-b48734b303a3" } 2020-11-03 21:27:24 | [Mutex] received everything. 2020-11-03 21:27:24 | [Mutex] isItemNotified: retracted:item:notifieditem-08ba2332-e31b-4cb2-8155-b48734b303a3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.072s |
2020-11-03 21:27:24 |
2020-11-03 21:27:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:24 | ------------------------------------ 2020-11-03 21:27:24 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "item-id": "item-08ba2332-e31b-4cb2-8155-b48734b303a3" } 2020-11-03 21:27:24 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "item-id": "item-08ba2332-e31b-4cb2-8155-b48734b303a3", "item": [ "<item id=\"item-08ba2332-e31b-4cb2-8155-b48734b303a3\"><test>item-08ba2332-e31b-4cb2-8155-b48734b303a3</test></item>" ] } 2020-11-03 21:27:24 | [Mutex] notify: [retrieved:item:item-08ba2332-e31b-4cb2-8155-b48734b303a3:payload-matches:true:localhost] 2020-11-03 21:27:24 | [Mutex] received everything. 2020-11-03 21:27:24 | [Mutex] isItemNotified: retrieved:item:item-08ba2332-e31b-4cb2-8155-b48734b303a3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-11-03 21:27:24 |
2020-11-03 21:27:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:24 | ------------------------------------ 2020-11-03 21:27:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-03 21:27:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-aa2cb9ab-7d2b-4738-ac7a-d2e3bd529df3", "node-7b3653f8-e4ae-49ca-b613-46f345404621" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-03 21:27:24 |
2020-11-03 21:27:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:24 | ------------------------------------ 2020-11-03 21:27:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7b3653f8-e4ae-49ca-b613-46f345404621)" } 2020-11-03 21:27:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2020-11-03 21:27:23 |
2020-11-03 21:27:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:23 | ------------------------------------ 2020-11-03 21:27:23 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "jids": [ "admin@test-domain.com" ] } 2020-11-03 21:27:23 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.111s |
2020-11-03 21:27:24 |
2020-11-03 21:27:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-03 21:27:24 | ------------------------------------ 2020-11-03 21:27:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7b3653f8-e4ae-49ca-b613-46f345404621", "jids": [ "admin@test-domain.com" ] } 2020-11-03 21:27:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |