Test duration : 8.967s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2022-02-01 21:45:52 |
2022-02-01 21:45:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:52 | ------------------------------------ 2022-02-01 21:45:52 | [Mutex] waiting for: [configured:node:node-aa57860a-3a07-4a65-8300-e4a7a009944d:node-2dbba248-5561-4475-82b7-b0c9063c2edf] 2022-02-01 21:45:52 | [Mutex] received everything. 2022-02-01 21:45:52 | [Mutex] isItemNotified: configured:node:node-aa57860a-3a07-4a65-8300-e4a7a009944d:node-2dbba248-5561-4475-82b7-b0c9063c2edf :: true 2022-02-01 21:45:53 | [Mutex] waiting for: [received:nodes:1530dcdc-d550-4974-b678-01f2cdba71f4:localhost] 2022-02-01 21:45:53 | [Mutex] received everything. 2022-02-01 21:45:53 | [Mutex] isItemNotified: received:node:1530dcdc-d550-4974-b678-01f2cdba71f4:localhost:node-aa57860a-3a07-4a65-8300-e4a7a009944d:Node aa57860a-3a07-4a65-8300-e4a7a009944d :: true 2022-02-01 21:45:53 | [Mutex] waiting for: [received:nodes:ba14ec8b-4cac-471a-9532-6f842c42ad7d:localhost] 2022-02-01 21:45:53 | [Mutex] waiting for: [received:nodes:ba14ec8b-4cac-471a-9532-6f842c42ad7d:localhost] 2022-02-01 21:45:53 | [Mutex] received everything. 2022-02-01 21:45:53 | [Mutex] isItemNotified: received:node:ba14ec8b-4cac-471a-9532-6f842c42ad7d:localhost:node-aa57860a-3a07-4a65-8300-e4a7a009944d:Node aa57860a-3a07-4a65-8300-e4a7a009944d :: false |
createNodes | 1.643s |
2022-02-01 21:45:50 |
2022-02-01 21:45:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:50 | ------------------------------------ 2022-02-01 21:45:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "pubsub#title": "Node aa57860a-3a07-4a65-8300-e4a7a009944d" } 2022-02-01 21:45:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:45:51 | [Mutex] waiting for: [received:nodes:f1752d9d-b10a-40c7-9184-db6489973ee1:localhost] 2022-02-01 21:45:51 | [Mutex] received everything. 2022-02-01 21:45:51 | [Mutex] isItemNotified: received:node:f1752d9d-b10a-40c7-9184-db6489973ee1:localhost:node-aa57860a-3a07-4a65-8300-e4a7a009944d:Node aa57860a-3a07-4a65-8300-e4a7a009944d :: true |
createSubnodes | 1.033s |
2022-02-01 21:45:51 |
2022-02-01 21:45:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:51 | ------------------------------------ 2022-02-01 21:45:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2dbba248-5561-4475-82b7-b0c9063c2edf", "pubsub#title": "Node 2dbba248-5561-4475-82b7-b0c9063c2edf" } 2022-02-01 21:45:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:45:52 | [Mutex] waiting for: [received:nodes:9eb5ede3-40f7-4887-a012-a240e1bf6ffb:localhost] 2022-02-01 21:45:52 | [Mutex] waiting for: [received:nodes:9eb5ede3-40f7-4887-a012-a240e1bf6ffb:localhost] 2022-02-01 21:45:52 | [Mutex] received everything. 2022-02-01 21:45:52 | [Mutex] isItemNotified: received:node:9eb5ede3-40f7-4887-a012-a240e1bf6ffb:localhost:node-2dbba248-5561-4475-82b7-b0c9063c2edf:Node 2dbba248-5561-4475-82b7-b0c9063c2edf :: true |
deleteNodes | 1.024s |
2022-02-01 21:45:57 |
2022-02-01 21:45:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:57 | ------------------------------------ 2022-02-01 21:45:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2dbba248-5561-4475-82b7-b0c9063c2edf" } 2022-02-01 21:45:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:45:58 | [Mutex] waiting for: [received:nodes:ba085f3e-97e0-402d-b93b-95aa5bc7bc78:localhost] 2022-02-01 21:45:58 | [Mutex] received everything. 2022-02-01 21:45:58 | [Mutex] isItemNotified: received:node:ba085f3e-97e0-402d-b93b-95aa5bc7bc78:localhost:node-2dbba248-5561-4475-82b7-b0c9063c2edf:Node 2dbba248-5561-4475-82b7-b0c9063c2edf :: false |
deleteSubnodes | 1.030s |
2022-02-01 21:45:56 |
2022-02-01 21:45:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:56 | ------------------------------------ 2022-02-01 21:45:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d" } 2022-02-01 21:45:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:45:57 | [Mutex] waiting for: [received:nodes:e9957205-9888-4115-ad68-91e1fa0f072c:localhost] 2022-02-01 21:45:57 | [Mutex] received everything. 2022-02-01 21:45:57 | [Mutex] isItemNotified: received:node:e9957205-9888-4115-ad68-91e1fa0f072c:localhost:node-aa57860a-3a07-4a65-8300-e4a7a009944d:Node aa57860a-3a07-4a65-8300-e4a7a009944d :: false 2022-02-01 21:45:57 | [Mutex] waiting for: [received:nodes:4f46165f-5703-4d66-9516-21182c2fbe4f:localhost] 2022-02-01 21:45:57 | [Mutex] received everything. 2022-02-01 21:45:57 | [Mutex] isItemNotified: received:node:4f46165f-5703-4d66-9516-21182c2fbe4f:localhost:node-aa57860a-3a07-4a65-8300-e4a7a009944d:Node aa57860a-3a07-4a65-8300-e4a7a009944d :: false |
publishItemsToNodes | 0.055s |
2022-02-01 21:45:54 |
2022-02-01 21:45:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:54 | ------------------------------------ 2022-02-01 21:45:54 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "entry": "<test>item-797bb207-b85f-4bee-af5a-703d549be60f</test>", "item-id": "item-797bb207-b85f-4bee-af5a-703d549be60f" } 2022-02-01 21:45:54 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-797bb207-b85f-4bee-af5a-703d549be60f" } 2022-02-01 21:45:54 | [Mutex] waiting for: [published:item:notifieditem-797bb207-b85f-4bee-af5a-703d549be60f:admin@test-domain.com] 2022-02-01 21:45:54 | [Mutex] received everything. 2022-02-01 21:45:54 | [Mutex] isItemNotified: published:item:notifieditem-797bb207-b85f-4bee-af5a-703d549be60f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.076s |
2022-02-01 21:45:55 |
2022-02-01 21:45:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:55 | ------------------------------------ 2022-02-01 21:45:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "item-id": "item-797bb207-b85f-4bee-af5a-703d549be60f" } 2022-02-01 21:45:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-797bb207-b85f-4bee-af5a-703d549be60f" } 2022-02-01 21:45:55 | [Mutex] received everything. 2022-02-01 21:45:55 | [Mutex] isItemNotified: retracted:item:notifieditem-797bb207-b85f-4bee-af5a-703d549be60f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.025s |
2022-02-01 21:45:54 |
2022-02-01 21:45:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:54 | ------------------------------------ 2022-02-01 21:45:54 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "item-id": "item-797bb207-b85f-4bee-af5a-703d549be60f" } 2022-02-01 21:45:54 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "item-id": "item-797bb207-b85f-4bee-af5a-703d549be60f", "item": [ "<item id=\"item-797bb207-b85f-4bee-af5a-703d549be60f\"><test>item-797bb207-b85f-4bee-af5a-703d549be60f</test></item>" ] } 2022-02-01 21:45:54 | [Mutex] notify: [retrieved:item:item-797bb207-b85f-4bee-af5a-703d549be60f:payload-matches:true:localhost] 2022-02-01 21:45:54 | [Mutex] received everything. 2022-02-01 21:45:54 | [Mutex] isItemNotified: retrieved:item:item-797bb207-b85f-4bee-af5a-703d549be60f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.078s |
2022-02-01 21:45:54 |
2022-02-01 21:45:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:54 | ------------------------------------ 2022-02-01 21:45:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-01 21:45:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2dbba248-5561-4475-82b7-b0c9063c2edf", "node-aa57860a-3a07-4a65-8300-e4a7a009944d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-01 21:45:54 |
2022-02-01 21:45:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:54 | ------------------------------------ 2022-02-01 21:45:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-aa57860a-3a07-4a65-8300-e4a7a009944d)" } 2022-02-01 21:45:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-01 21:45:53 |
2022-02-01 21:45:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:53 | ------------------------------------ 2022-02-01 21:45:53 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "jids": [ "admin@test-domain.com" ] } 2022-02-01 21:45:53 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-02-01 21:45:55 |
2022-02-01 21:45:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:45:55 | ------------------------------------ 2022-02-01 21:45:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-aa57860a-3a07-4a65-8300-e4a7a009944d", "jids": [ "admin@test-domain.com" ] } 2022-02-01 21:45:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |