Generated by TestNG with ReportNG at 22:26 PDT on Sunday 12 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.571s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2022-06-12 22:40:22 |

2022-06-12 22:40:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:22 | ------------------------------------

2022-06-12 22:40:22 | [Mutex] waiting for: [configured:node:node-26d0635a-be5f-461a-9382-25da8198cca3:node-d8e085ba-9c84-412a-8c56-fc62158d1d0d]

2022-06-12 22:40:22 | [Mutex] received everything.

2022-06-12 22:40:22 | [Mutex] isItemNotified: configured:node:node-26d0635a-be5f-461a-9382-25da8198cca3:node-d8e085ba-9c84-412a-8c56-fc62158d1d0d :: true

2022-06-12 22:40:23 | [Mutex] waiting for: [received:nodes:f3ee8326-2785-48b0-8499-67ab64f313a9:localhost]

2022-06-12 22:40:23 | [Mutex] received everything.

2022-06-12 22:40:23 | [Mutex] isItemNotified: received:node:f3ee8326-2785-48b0-8499-67ab64f313a9:localhost:node-26d0635a-be5f-461a-9382-25da8198cca3:Node 26d0635a-be5f-461a-9382-25da8198cca3 :: true

2022-06-12 22:40:23 | [Mutex] waiting for: [received:nodes:b40c5d21-98de-492b-85b5-74f68bc098a1:localhost]

2022-06-12 22:40:23 | [Mutex] received everything.

2022-06-12 22:40:23 | [Mutex] isItemNotified: received:node:b40c5d21-98de-492b-85b5-74f68bc098a1:localhost:node-26d0635a-be5f-461a-9382-25da8198cca3:Node 26d0635a-be5f-461a-9382-25da8198cca3 :: false

createNodes 1.590s
2022-06-12 22:40:19 |

2022-06-12 22:40:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:19 | ------------------------------------

2022-06-12 22:40: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-26d0635a-be5f-461a-9382-25da8198cca3",
    "pubsub#title": "Node 26d0635a-be5f-461a-9382-25da8198cca3"
}

2022-06-12 22:40:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:40:21 | [Mutex] waiting for: [received:nodes:e9e3fed9-b408-4e27-88d7-1ed17b195163:localhost]

2022-06-12 22:40:21 | [Mutex] received everything.

2022-06-12 22:40:21 | [Mutex] isItemNotified: received:node:e9e3fed9-b408-4e27-88d7-1ed17b195163:localhost:node-26d0635a-be5f-461a-9382-25da8198cca3:Node 26d0635a-be5f-461a-9382-25da8198cca3 :: true

createSubnodes 1.021s
2022-06-12 22:40:21 |

2022-06-12 22:40:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:21 | ------------------------------------

2022-06-12 22:40: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-d8e085ba-9c84-412a-8c56-fc62158d1d0d",
    "pubsub#title": "Node d8e085ba-9c84-412a-8c56-fc62158d1d0d"
}

2022-06-12 22:40:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:40:22 | [Mutex] waiting for: [received:nodes:d84b792b-0974-41b9-80ee-0e84447bf7b3:localhost]

2022-06-12 22:40:22 | [Mutex] received everything.

2022-06-12 22:40:22 | [Mutex] isItemNotified: received:node:d84b792b-0974-41b9-80ee-0e84447bf7b3:localhost:node-d8e085ba-9c84-412a-8c56-fc62158d1d0d:Node d8e085ba-9c84-412a-8c56-fc62158d1d0d :: true

deleteNodes 1.017s
2022-06-12 22:40:26 |

2022-06-12 22:40:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:26 | ------------------------------------

2022-06-12 22:40:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d8e085ba-9c84-412a-8c56-fc62158d1d0d"
}

2022-06-12 22:40:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:40:27 | [Mutex] waiting for: [received:nodes:22058a13-193a-43a7-882b-621b05bf654f:localhost]

2022-06-12 22:40:27 | [Mutex] received everything.

2022-06-12 22:40:27 | [Mutex] isItemNotified: received:node:22058a13-193a-43a7-882b-621b05bf654f:localhost:node-d8e085ba-9c84-412a-8c56-fc62158d1d0d:Node d8e085ba-9c84-412a-8c56-fc62158d1d0d :: false

deleteSubnodes 1.035s
2022-06-12 22:40:25 |

2022-06-12 22:40:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:25 | ------------------------------------

2022-06-12 22:40:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3"
}

2022-06-12 22:40:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:40:26 | [Mutex] waiting for: [received:nodes:c665568c-09d8-43f0-ae65-9e7e04f8c311:localhost]

2022-06-12 22:40:26 | [Mutex] waiting for: [received:nodes:c665568c-09d8-43f0-ae65-9e7e04f8c311:localhost]

2022-06-12 22:40:26 | [Mutex] waiting for: [received:nodes:c665568c-09d8-43f0-ae65-9e7e04f8c311:localhost]

2022-06-12 22:40:26 | [Mutex] waiting for: [received:nodes:c665568c-09d8-43f0-ae65-9e7e04f8c311:localhost]

2022-06-12 22:40:26 | [Mutex] received everything.

2022-06-12 22:40:26 | [Mutex] isItemNotified: received:node:c665568c-09d8-43f0-ae65-9e7e04f8c311:localhost:node-26d0635a-be5f-461a-9382-25da8198cca3:Node 26d0635a-be5f-461a-9382-25da8198cca3 :: false

2022-06-12 22:40:26 | [Mutex] waiting for: [received:nodes:2a281ebf-6941-4075-befc-dbeaf58621f5:localhost]

2022-06-12 22:40:26 | [Mutex] received everything.

2022-06-12 22:40:26 | [Mutex] isItemNotified: received:node:2a281ebf-6941-4075-befc-dbeaf58621f5:localhost:node-26d0635a-be5f-461a-9382-25da8198cca3:Node 26d0635a-be5f-461a-9382-25da8198cca3 :: false

publishItemsToNodes 0.078s
2022-06-12 22:40:24 |

2022-06-12 22:40:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:24 | ------------------------------------

2022-06-12 22:40:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3",
    "entry": "<test>item-4bdc4d01-d766-4d41-a8ad-803900562e2b</test>",
    "item-id": "item-4bdc4d01-d766-4d41-a8ad-803900562e2b"
}

2022-06-12 22:40:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4bdc4d01-d766-4d41-a8ad-803900562e2b"
}

2022-06-12 22:40:24 | [Mutex] waiting for: [published:item:notifieditem-4bdc4d01-d766-4d41-a8ad-803900562e2b:admin@test-domain.com]

2022-06-12 22:40:24 | [Mutex] received everything.

2022-06-12 22:40:24 | [Mutex] isItemNotified: published:item:notifieditem-4bdc4d01-d766-4d41-a8ad-803900562e2b:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2022-06-12 22:40:24 |

2022-06-12 22:40:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:24 | ------------------------------------

2022-06-12 22:40:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3",
    "item-id": "item-4bdc4d01-d766-4d41-a8ad-803900562e2b"
}

2022-06-12 22:40:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4bdc4d01-d766-4d41-a8ad-803900562e2b"
}

2022-06-12 22:40:24 | [Mutex] waiting for: [retracted:item:notifieditem-4bdc4d01-d766-4d41-a8ad-803900562e2b:admin@test-domain.com]

2022-06-12 22:40:24 | [Mutex] received everything.

2022-06-12 22:40:24 | [Mutex] isItemNotified: retracted:item:notifieditem-4bdc4d01-d766-4d41-a8ad-803900562e2b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-06-12 22:40:24 |

2022-06-12 22:40:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:24 | ------------------------------------

2022-06-12 22:40:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3",
    "item-id": "item-4bdc4d01-d766-4d41-a8ad-803900562e2b"
}

2022-06-12 22:40:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3",
    "item-id": "item-4bdc4d01-d766-4d41-a8ad-803900562e2b",
    "item": [
        "<item id=\"item-4bdc4d01-d766-4d41-a8ad-803900562e2b\"><test>item-4bdc4d01-d766-4d41-a8ad-803900562e2b</test></item>"
    ]
}

2022-06-12 22:40:24 | [Mutex] notify: [retrieved:item:item-4bdc4d01-d766-4d41-a8ad-803900562e2b:payload-matches:true:localhost]

2022-06-12 22:40:24 | [Mutex] received everything.

2022-06-12 22:40:24 | [Mutex] isItemNotified: retrieved:item:item-4bdc4d01-d766-4d41-a8ad-803900562e2b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-06-12 22:40:24 |

2022-06-12 22:40:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:24 | ------------------------------------

2022-06-12 22:40:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-12 22:40:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-26d0635a-be5f-461a-9382-25da8198cca3",
        "test",
        "node-d8e085ba-9c84-412a-8c56-fc62158d1d0d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-12 22:40:24 |

2022-06-12 22:40:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:24 | ------------------------------------

2022-06-12 22:40:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-26d0635a-be5f-461a-9382-25da8198cca3)"
}

2022-06-12 22:40:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-06-12 22:40:23 |

2022-06-12 22:40:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:23 | ------------------------------------

2022-06-12 22:40:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-12 22:40:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.053s
2022-06-12 22:40:24 |

2022-06-12 22:40:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:40:24 | ------------------------------------

2022-06-12 22:40:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-26d0635a-be5f-461a-9382-25da8198cca3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-12 22:40:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}