Test duration : 9.191s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2022-02-13 22:12:05 |
2022-02-13 22:12:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:05 | ------------------------------------ 2022-02-13 22:12:05 | [Mutex] waiting for: [configured:node:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:node-066c1b6e-bd16-414d-8319-76c0cdb098f3] 2022-02-13 22:12:05 | [Mutex] received everything. 2022-02-13 22:12:05 | [Mutex] isItemNotified: configured:node:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:node-066c1b6e-bd16-414d-8319-76c0cdb098f3 :: true 2022-02-13 22:12:06 | [Mutex] waiting for: [received:nodes:b97af669-d188-4ee8-9697-743d5e64043a:localhost] 2022-02-13 22:12:06 | [Mutex] received everything. 2022-02-13 22:12:06 | [Mutex] isItemNotified: received:node:b97af669-d188-4ee8-9697-743d5e64043a:localhost:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:Node 6eec45f5-e9f5-4714-a84a-97c857f11b93 :: true 2022-02-13 22:12:06 | [Mutex] waiting for: [received:nodes:9bdbe4b9-f66d-420b-86c4-6634d45cb8e5:localhost] 2022-02-13 22:12:06 | [Mutex] received everything. 2022-02-13 22:12:06 | [Mutex] isItemNotified: received:node:9bdbe4b9-f66d-420b-86c4-6634d45cb8e5:localhost:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:Node 6eec45f5-e9f5-4714-a84a-97c857f11b93 :: false |
createNodes | 1.908s |
2022-02-13 22:12:02 |
2022-02-13 22:12:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:02 | ------------------------------------ 2022-02-13 22:12:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "pubsub#title": "Node 6eec45f5-e9f5-4714-a84a-97c857f11b93" } 2022-02-13 22:12:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 22:12:04 | [Mutex] waiting for: [received:nodes:d1eb2f9e-54ab-4d54-845a-328776055820:localhost] 2022-02-13 22:12:04 | [Mutex] received everything. 2022-02-13 22:12:04 | [Mutex] isItemNotified: received:node:d1eb2f9e-54ab-4d54-845a-328776055820:localhost:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:Node 6eec45f5-e9f5-4714-a84a-97c857f11b93 :: true |
createSubnodes | 1.029s |
2022-02-13 22:12:04 |
2022-02-13 22:12:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:04 | ------------------------------------ 2022-02-13 22:12:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-066c1b6e-bd16-414d-8319-76c0cdb098f3", "pubsub#title": "Node 066c1b6e-bd16-414d-8319-76c0cdb098f3" } 2022-02-13 22:12:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 22:12:05 | [Mutex] waiting for: [received:nodes:235c2b30-1a69-4742-8a5c-d223c7d9ac78:localhost] 2022-02-13 22:12:05 | [Mutex] waiting for: [received:nodes:235c2b30-1a69-4742-8a5c-d223c7d9ac78:localhost] 2022-02-13 22:12:05 | [Mutex] received everything. 2022-02-13 22:12:05 | [Mutex] isItemNotified: received:node:235c2b30-1a69-4742-8a5c-d223c7d9ac78:localhost:node-066c1b6e-bd16-414d-8319-76c0cdb098f3:Node 066c1b6e-bd16-414d-8319-76c0cdb098f3 :: true |
deleteNodes | 1.019s |
2022-02-13 22:12:10 |
2022-02-13 22:12:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:10 | ------------------------------------ 2022-02-13 22:12:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-066c1b6e-bd16-414d-8319-76c0cdb098f3" } 2022-02-13 22:12:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 22:12:11 | [Mutex] waiting for: [received:nodes:337881f5-7a9c-48e7-ac81-0895e7b9b80e:localhost] 2022-02-13 22:12:11 | [Mutex] waiting for: [received:nodes:337881f5-7a9c-48e7-ac81-0895e7b9b80e:localhost] 2022-02-13 22:12:11 | [Mutex] received everything. 2022-02-13 22:12:11 | [Mutex] isItemNotified: received:node:337881f5-7a9c-48e7-ac81-0895e7b9b80e:localhost:node-066c1b6e-bd16-414d-8319-76c0cdb098f3:Node 066c1b6e-bd16-414d-8319-76c0cdb098f3 :: false |
deleteSubnodes | 1.029s |
2022-02-13 22:12:09 |
2022-02-13 22:12:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:09 | ------------------------------------ 2022-02-13 22:12:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93" } 2022-02-13 22:12:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 22:12:10 | [Mutex] waiting for: [received:nodes:dbe4889c-abb2-4777-bf08-47b8fe57c9b1:localhost] 2022-02-13 22:12:10 | [Mutex] received everything. 2022-02-13 22:12:10 | [Mutex] isItemNotified: received:node:dbe4889c-abb2-4777-bf08-47b8fe57c9b1:localhost:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:Node 6eec45f5-e9f5-4714-a84a-97c857f11b93 :: false 2022-02-13 22:12:10 | [Mutex] waiting for: [received:nodes:fd8767ed-e2bb-446b-b028-a437534784b1:localhost] 2022-02-13 22:12:10 | [Mutex] received everything. 2022-02-13 22:12:10 | [Mutex] isItemNotified: received:node:fd8767ed-e2bb-446b-b028-a437534784b1:localhost:node-6eec45f5-e9f5-4714-a84a-97c857f11b93:Node 6eec45f5-e9f5-4714-a84a-97c857f11b93 :: false |
publishItemsToNodes | 0.056s |
2022-02-13 22:12:07 |
2022-02-13 22:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:07 | ------------------------------------ 2022-02-13 22:12:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "entry": "<test>item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5</test>", "item-id": "item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5" } 2022-02-13 22:12:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5" } 2022-02-13 22:12:07 | [Mutex] waiting for: [published:item:notifieditem-e7908aa0-067a-45e6-90fa-e9d6ad88ade5:admin@test-domain.com] 2022-02-13 22:12:07 | [Mutex] received everything. 2022-02-13 22:12:07 | [Mutex] isItemNotified: published:item:notifieditem-e7908aa0-067a-45e6-90fa-e9d6ad88ade5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-02-13 22:12:07 |
2022-02-13 22:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:07 | ------------------------------------ 2022-02-13 22:12:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "item-id": "item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5" } 2022-02-13 22:12:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5" } 2022-02-13 22:12:07 | [Mutex] received everything. 2022-02-13 22:12:07 | [Mutex] isItemNotified: retracted:item:notifieditem-e7908aa0-067a-45e6-90fa-e9d6ad88ade5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.018s |
2022-02-13 22:12:07 |
2022-02-13 22:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:07 | ------------------------------------ 2022-02-13 22:12:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "item-id": "item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5" } 2022-02-13 22:12:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "item-id": "item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5", "item": [ "<item id=\"item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5\"><test>item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5</test></item>" ] } 2022-02-13 22:12:07 | [Mutex] notify: [retrieved:item:item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5:payload-matches:true:localhost] 2022-02-13 22:12:07 | [Mutex] received everything. 2022-02-13 22:12:07 | [Mutex] isItemNotified: retrieved:item:item-e7908aa0-067a-45e6-90fa-e9d6ad88ade5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.072s |
2022-02-13 22:12:07 |
2022-02-13 22:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:07 | ------------------------------------ 2022-02-13 22:12:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-13 22:12:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-066c1b6e-bd16-414d-8319-76c0cdb098f3", "node-6eec45f5-e9f5-4714-a84a-97c857f11b93" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-13 22:12:07 |
2022-02-13 22:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:07 | ------------------------------------ 2022-02-13 22:12:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6eec45f5-e9f5-4714-a84a-97c857f11b93)" } 2022-02-13 22:12:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-13 22:12:06 |
2022-02-13 22:12:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:06 | ------------------------------------ 2022-02-13 22:12:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "jids": [ "admin@test-domain.com" ] } 2022-02-13 22:12:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2022-02-13 22:12:07 |
2022-02-13 22:12:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 22:12:07 | ------------------------------------ 2022-02-13 22:12:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6eec45f5-e9f5-4714-a84a-97c857f11b93", "jids": [ "admin@test-domain.com" ] } 2022-02-13 22:12:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |