Test duration : 9.010s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.173s |
2021-10-03 23:01:53 |
2021-10-03 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:53 | ------------------------------------ 2021-10-03 23:01:53 | [Mutex] waiting for: [configured:node:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:node-fbd7243b-fce4-4b85-8d66-95768de2fa70] 2021-10-03 23:01:53 | [Mutex] received everything. 2021-10-03 23:01:53 | [Mutex] isItemNotified: configured:node:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:node-fbd7243b-fce4-4b85-8d66-95768de2fa70 :: true 2021-10-03 23:01:54 | [Mutex] waiting for: [received:nodes:136bba82-19ea-48b5-a5a2-c5fa6474a3da:localhost] 2021-10-03 23:01:54 | [Mutex] received everything. 2021-10-03 23:01:54 | [Mutex] isItemNotified: received:node:136bba82-19ea-48b5-a5a2-c5fa6474a3da:localhost:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:Node 78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5 :: true 2021-10-03 23:01:54 | [Mutex] waiting for: [received:nodes:02b646c3-c929-4d83-8ca4-4b79faac4d77:localhost] 2021-10-03 23:01:54 | [Mutex] waiting for: [received:nodes:02b646c3-c929-4d83-8ca4-4b79faac4d77:localhost] 2021-10-03 23:01:54 | [Mutex] received everything. 2021-10-03 23:01:54 | [Mutex] isItemNotified: received:node:02b646c3-c929-4d83-8ca4-4b79faac4d77:localhost:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:Node 78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5 :: false |
createNodes | 1.684s |
2021-10-03 23:01:50 |
2021-10-03 23:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:50 | ------------------------------------ 2021-10-03 23:01:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "pubsub#title": "Node 78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5" } 2021-10-03 23:01:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:01:52 | [Mutex] waiting for: [received:nodes:26cca875-6a7a-49c4-b026-f346f51b40b9:localhost] 2021-10-03 23:01:52 | [Mutex] received everything. 2021-10-03 23:01:52 | [Mutex] isItemNotified: received:node:26cca875-6a7a-49c4-b026-f346f51b40b9:localhost:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:Node 78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5 :: true |
createSubnodes | 1.032s |
2021-10-03 23:01:52 |
2021-10-03 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:52 | ------------------------------------ 2021-10-03 23:01:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-fbd7243b-fce4-4b85-8d66-95768de2fa70", "pubsub#title": "Node fbd7243b-fce4-4b85-8d66-95768de2fa70" } 2021-10-03 23:01:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:01:53 | [Mutex] waiting for: [received:nodes:b01502d4-607a-47d8-8bb9-e4eef6554eee:localhost] 2021-10-03 23:01:53 | [Mutex] received everything. 2021-10-03 23:01:53 | [Mutex] isItemNotified: received:node:b01502d4-607a-47d8-8bb9-e4eef6554eee:localhost:node-fbd7243b-fce4-4b85-8d66-95768de2fa70:Node fbd7243b-fce4-4b85-8d66-95768de2fa70 :: true |
deleteNodes | 1.025s |
2021-10-03 23:01:57 |
2021-10-03 23:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:57 | ------------------------------------ 2021-10-03 23:01:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fbd7243b-fce4-4b85-8d66-95768de2fa70" } 2021-10-03 23:01:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:01:58 | [Mutex] waiting for: [received:nodes:ee0e7212-f6be-4d7b-816b-8ec6f7f00086:localhost] 2021-10-03 23:01:58 | [Mutex] received everything. 2021-10-03 23:01:58 | [Mutex] isItemNotified: received:node:ee0e7212-f6be-4d7b-816b-8ec6f7f00086:localhost:node-fbd7243b-fce4-4b85-8d66-95768de2fa70:Node fbd7243b-fce4-4b85-8d66-95768de2fa70 :: false |
deleteSubnodes | 1.026s |
2021-10-03 23:01:56 |
2021-10-03 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:56 | ------------------------------------ 2021-10-03 23:01:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5" } 2021-10-03 23:01:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 23:01:57 | [Mutex] waiting for: [received:nodes:d55a0872-75d6-4422-bb5f-c7c1190274db:localhost] 2021-10-03 23:01:57 | [Mutex] waiting for: [received:nodes:d55a0872-75d6-4422-bb5f-c7c1190274db:localhost] 2021-10-03 23:01:57 | [Mutex] waiting for: [received:nodes:d55a0872-75d6-4422-bb5f-c7c1190274db:localhost] 2021-10-03 23:01:57 | [Mutex] received everything. 2021-10-03 23:01:57 | [Mutex] isItemNotified: received:node:d55a0872-75d6-4422-bb5f-c7c1190274db:localhost:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:Node 78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5 :: false 2021-10-03 23:01:57 | [Mutex] waiting for: [received:nodes:a710ba11-871e-4786-8431-f3a81a9f541a:localhost] 2021-10-03 23:01:57 | [Mutex] received everything. 2021-10-03 23:01:57 | [Mutex] isItemNotified: received:node:a710ba11-871e-4786-8431-f3a81a9f541a:localhost:node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5:Node 78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5 :: false |
publishItemsToNodes | 0.047s |
2021-10-03 23:01:55 |
2021-10-03 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:55 | ------------------------------------ 2021-10-03 23:01:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "entry": "<test>item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a</test>", "item-id": "item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a" } 2021-10-03 23:01:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a" } 2021-10-03 23:01:55 | [Mutex] waiting for: [published:item:notifieditem-e8ad44e4-8b83-4d7e-be52-3489b1d8917a:admin@test-domain.com] 2021-10-03 23:01:55 | [Mutex] received everything. 2021-10-03 23:01:55 | [Mutex] isItemNotified: published:item:notifieditem-e8ad44e4-8b83-4d7e-be52-3489b1d8917a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2021-10-03 23:01:55 |
2021-10-03 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:55 | ------------------------------------ 2021-10-03 23:01:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "item-id": "item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a" } 2021-10-03 23:01:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a" } 2021-10-03 23:01:55 | [Mutex] waiting for: [retracted:item:notifieditem-e8ad44e4-8b83-4d7e-be52-3489b1d8917a:admin@test-domain.com] 2021-10-03 23:01:55 | [Mutex] received everything. 2021-10-03 23:01:55 | [Mutex] isItemNotified: retracted:item:notifieditem-e8ad44e4-8b83-4d7e-be52-3489b1d8917a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2021-10-03 23:01:55 |
2021-10-03 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:55 | ------------------------------------ 2021-10-03 23:01:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "item-id": "item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a" } 2021-10-03 23:01:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "item-id": "item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a", "item": [ "<item id=\"item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a\"><test>item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a</test></item>" ] } 2021-10-03 23:01:55 | [Mutex] notify: [retrieved:item:item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a:payload-matches:true:localhost] 2021-10-03 23:01:55 | [Mutex] received everything. 2021-10-03 23:01:55 | [Mutex] isItemNotified: retrieved:item:item-e8ad44e4-8b83-4d7e-be52-3489b1d8917a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-10-03 23:01:55 |
2021-10-03 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:55 | ------------------------------------ 2021-10-03 23:01:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-03 23:01:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-fbd7243b-fce4-4b85-8d66-95768de2fa70", "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-10-03 23:01:55 |
2021-10-03 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:55 | ------------------------------------ 2021-10-03 23:01:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5)" } 2021-10-03 23:01:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.028s |
2021-10-03 23:01:54 |
2021-10-03 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:54 | ------------------------------------ 2021-10-03 23:01:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "jids": [ "admin@test-domain.com" ] } 2021-10-03 23:01:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2021-10-03 23:01:55 |
2021-10-03 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 23:01:55 | ------------------------------------ 2021-10-03 23:01:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-78e3b99c-fb9d-4e4d-96b3-5b8e231cd0b5", "jids": [ "admin@test-domain.com" ] } 2021-10-03 23:01:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |