Test duration : 8.557s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2023-07-04 23:00:28 |
2023-07-04 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:28 | ------------------------------------ 2023-07-04 23:00:28 | [Mutex] waiting for: [configured:node:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:node-ab953e1e-0198-4488-9186-90441a86e3b9] 2023-07-04 23:00:28 | [Mutex] received everything. 2023-07-04 23:00:28 | [Mutex] isItemNotified: configured:node:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:node-ab953e1e-0198-4488-9186-90441a86e3b9 :: true 2023-07-04 23:00:29 | [Mutex] waiting for: [received:nodes:42d7a410-43b1-4389-8bec-e2f803e3944c:localhost] 2023-07-04 23:00:29 | [Mutex] received everything. 2023-07-04 23:00:29 | [Mutex] isItemNotified: received:node:42d7a410-43b1-4389-8bec-e2f803e3944c:localhost:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:Node df0bf6fc-770b-4e26-9f34-6ac38247eb3c :: true 2023-07-04 23:00:29 | [Mutex] waiting for: [received:nodes:c14f1965-7373-4d84-88e2-fb413d11ab2c:localhost] 2023-07-04 23:00:29 | [Mutex] waiting for: [received:nodes:c14f1965-7373-4d84-88e2-fb413d11ab2c:localhost] 2023-07-04 23:00:29 | [Mutex] waiting for: [received:nodes:c14f1965-7373-4d84-88e2-fb413d11ab2c:localhost] 2023-07-04 23:00:29 | [Mutex] waiting for: [received:nodes:c14f1965-7373-4d84-88e2-fb413d11ab2c:localhost] 2023-07-04 23:00:29 | [Mutex] received everything. 2023-07-04 23:00:29 | [Mutex] isItemNotified: received:node:c14f1965-7373-4d84-88e2-fb413d11ab2c:localhost:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:Node df0bf6fc-770b-4e26-9f34-6ac38247eb3c :: false |
createNodes | 1.638s |
2023-07-04 23:00:25 |
2023-07-04 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:25 | ------------------------------------ 2023-07-04 23:00:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "pubsub#title": "Node df0bf6fc-770b-4e26-9f34-6ac38247eb3c" } 2023-07-04 23:00:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-04 23:00:27 | [Mutex] waiting for: [received:nodes:2ebfe26a-c842-45b9-8eff-f6e2ec742aaa:localhost] 2023-07-04 23:00:27 | [Mutex] waiting for: [received:nodes:2ebfe26a-c842-45b9-8eff-f6e2ec742aaa:localhost] 2023-07-04 23:00:27 | [Mutex] waiting for: [received:nodes:2ebfe26a-c842-45b9-8eff-f6e2ec742aaa:localhost] 2023-07-04 23:00:27 | [Mutex] received everything. 2023-07-04 23:00:27 | [Mutex] isItemNotified: received:node:2ebfe26a-c842-45b9-8eff-f6e2ec742aaa:localhost:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:Node df0bf6fc-770b-4e26-9f34-6ac38247eb3c :: true |
createSubnodes | 1.018s |
2023-07-04 23:00:27 |
2023-07-04 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:27 | ------------------------------------ 2023-07-04 23:00:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ab953e1e-0198-4488-9186-90441a86e3b9", "pubsub#title": "Node ab953e1e-0198-4488-9186-90441a86e3b9" } 2023-07-04 23:00:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-04 23:00:28 | [Mutex] waiting for: [received:nodes:f32c9070-cec7-4ab9-854b-6c7a382333ea:localhost] 2023-07-04 23:00:28 | [Mutex] waiting for: [received:nodes:f32c9070-cec7-4ab9-854b-6c7a382333ea:localhost] 2023-07-04 23:00:28 | [Mutex] waiting for: [received:nodes:f32c9070-cec7-4ab9-854b-6c7a382333ea:localhost] 2023-07-04 23:00:28 | [Mutex] waiting for: [received:nodes:f32c9070-cec7-4ab9-854b-6c7a382333ea:localhost] 2023-07-04 23:00:28 | [Mutex] waiting for: [received:nodes:f32c9070-cec7-4ab9-854b-6c7a382333ea:localhost] 2023-07-04 23:00:28 | [Mutex] received everything. 2023-07-04 23:00:28 | [Mutex] isItemNotified: received:node:f32c9070-cec7-4ab9-854b-6c7a382333ea:localhost:node-ab953e1e-0198-4488-9186-90441a86e3b9:Node ab953e1e-0198-4488-9186-90441a86e3b9 :: true |
deleteNodes | 1.016s |
2023-07-04 23:00:32 |
2023-07-04 23:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:32 | ------------------------------------ 2023-07-04 23:00:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ab953e1e-0198-4488-9186-90441a86e3b9" } 2023-07-04 23:00:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-04 23:00:33 | [Mutex] waiting for: [received:nodes:1f7a30e2-2416-448b-b59b-e25ed39b2b9b:localhost] 2023-07-04 23:00:33 | [Mutex] received everything. 2023-07-04 23:00:33 | [Mutex] isItemNotified: received:node:1f7a30e2-2416-448b-b59b-e25ed39b2b9b:localhost:node-ab953e1e-0198-4488-9186-90441a86e3b9:Node ab953e1e-0198-4488-9186-90441a86e3b9 :: false |
deleteSubnodes | 1.022s |
2023-07-04 23:00:31 |
2023-07-04 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:31 | ------------------------------------ 2023-07-04 23:00:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c" } 2023-07-04 23:00:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-04 23:00:32 | [Mutex] waiting for: [received:nodes:a8149ca7-b0e3-4731-9350-a48d2b2d5e38:localhost] 2023-07-04 23:00:32 | [Mutex] waiting for: [received:nodes:a8149ca7-b0e3-4731-9350-a48d2b2d5e38:localhost] 2023-07-04 23:00:32 | [Mutex] waiting for: [received:nodes:a8149ca7-b0e3-4731-9350-a48d2b2d5e38:localhost] 2023-07-04 23:00:32 | [Mutex] waiting for: [received:nodes:a8149ca7-b0e3-4731-9350-a48d2b2d5e38:localhost] 2023-07-04 23:00:32 | [Mutex] received everything. 2023-07-04 23:00:32 | [Mutex] isItemNotified: received:node:a8149ca7-b0e3-4731-9350-a48d2b2d5e38:localhost:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:Node df0bf6fc-770b-4e26-9f34-6ac38247eb3c :: false 2023-07-04 23:00:32 | [Mutex] waiting for: [received:nodes:d1a93d4b-6731-4c8b-8567-fb4e938fe39c:localhost] 2023-07-04 23:00:32 | [Mutex] received everything. 2023-07-04 23:00:32 | [Mutex] isItemNotified: received:node:d1a93d4b-6731-4c8b-8567-fb4e938fe39c:localhost:node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c:Node df0bf6fc-770b-4e26-9f34-6ac38247eb3c :: false |
publishItemsToNodes | 0.046s |
2023-07-04 23:00:30 |
2023-07-04 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:30 | ------------------------------------ 2023-07-04 23:00:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "entry": "<test>item-bbfcfaae-9e74-4a58-8faf-904355b33ff1</test>", "item-id": "item-bbfcfaae-9e74-4a58-8faf-904355b33ff1" } 2023-07-04 23:00:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bbfcfaae-9e74-4a58-8faf-904355b33ff1" } 2023-07-04 23:00:30 | [Mutex] waiting for: [published:item:notifieditem-bbfcfaae-9e74-4a58-8faf-904355b33ff1:admin@test-domain.com] 2023-07-04 23:00:30 | [Mutex] received everything. 2023-07-04 23:00:30 | [Mutex] isItemNotified: published:item:notifieditem-bbfcfaae-9e74-4a58-8faf-904355b33ff1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2023-07-04 23:00:30 |
2023-07-04 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:30 | ------------------------------------ 2023-07-04 23:00:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "item-id": "item-bbfcfaae-9e74-4a58-8faf-904355b33ff1" } 2023-07-04 23:00:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bbfcfaae-9e74-4a58-8faf-904355b33ff1" } 2023-07-04 23:00:30 | [Mutex] received everything. 2023-07-04 23:00:30 | [Mutex] isItemNotified: retracted:item:notifieditem-bbfcfaae-9e74-4a58-8faf-904355b33ff1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2023-07-04 23:00:30 |
2023-07-04 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:30 | ------------------------------------ 2023-07-04 23:00:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "item-id": "item-bbfcfaae-9e74-4a58-8faf-904355b33ff1" } 2023-07-04 23:00:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "item-id": "item-bbfcfaae-9e74-4a58-8faf-904355b33ff1", "item": [ "<item id=\"item-bbfcfaae-9e74-4a58-8faf-904355b33ff1\"><test>item-bbfcfaae-9e74-4a58-8faf-904355b33ff1</test></item>" ] } 2023-07-04 23:00:30 | [Mutex] notify: [retrieved:item:item-bbfcfaae-9e74-4a58-8faf-904355b33ff1:payload-matches:true:localhost] 2023-07-04 23:00:30 | [Mutex] received everything. 2023-07-04 23:00:30 | [Mutex] isItemNotified: retrieved:item:item-bbfcfaae-9e74-4a58-8faf-904355b33ff1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-07-04 23:00:30 |
2023-07-04 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:30 | ------------------------------------ 2023-07-04 23:00:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-04 23:00:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "node-ab953e1e-0198-4488-9186-90441a86e3b9" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-07-04 23:00:30 |
2023-07-04 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:30 | ------------------------------------ 2023-07-04 23:00:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c)" } 2023-07-04 23:00:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2023-07-04 23:00:29 |
2023-07-04 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:29 | ------------------------------------ 2023-07-04 23:00:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "jids": [ "admin@test-domain.com" ] } 2023-07-04 23:00:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2023-07-04 23:00:30 |
2023-07-04 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-04 23:00:30 | ------------------------------------ 2023-07-04 23:00:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-df0bf6fc-770b-4e26-9f34-6ac38247eb3c", "jids": [ "admin@test-domain.com" ] } 2023-07-04 23:00:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |