Generated by TestNG with ReportNG at 22:50 PDT on Sunday 02 October 2022
root@7c41cec37518 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.572s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-10-02 23:04:22 |

2022-10-02 23:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:22 | ------------------------------------

2022-10-02 23:04:22 | [Mutex] waiting for: [configured:node:node-d48630f7-1690-4690-bbda-52998e76b865:node-666aa402-0cd6-4743-96ff-50e36ee283b1]

2022-10-02 23:04:22 | [Mutex] received everything.

2022-10-02 23:04:22 | [Mutex] isItemNotified: configured:node:node-d48630f7-1690-4690-bbda-52998e76b865:node-666aa402-0cd6-4743-96ff-50e36ee283b1 :: true

2022-10-02 23:04:23 | [Mutex] waiting for: [received:nodes:a3c7541c-d5b1-4c97-ab7e-a3933633edcf:localhost]

2022-10-02 23:04:23 | [Mutex] received everything.

2022-10-02 23:04:23 | [Mutex] isItemNotified: received:node:a3c7541c-d5b1-4c97-ab7e-a3933633edcf:localhost:node-d48630f7-1690-4690-bbda-52998e76b865:Node d48630f7-1690-4690-bbda-52998e76b865 :: true

2022-10-02 23:04:23 | [Mutex] waiting for: [received:nodes:e5054724-86da-4136-ae88-87a2157a3096:localhost]

2022-10-02 23:04:23 | [Mutex] received everything.

2022-10-02 23:04:23 | [Mutex] isItemNotified: received:node:e5054724-86da-4136-ae88-87a2157a3096:localhost:node-d48630f7-1690-4690-bbda-52998e76b865:Node d48630f7-1690-4690-bbda-52998e76b865 :: false

createNodes 1.577s
2022-10-02 23:04:19 |

2022-10-02 23:04:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:19 | ------------------------------------

2022-10-02 23:04: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-d48630f7-1690-4690-bbda-52998e76b865",
    "pubsub#title": "Node d48630f7-1690-4690-bbda-52998e76b865"
}

2022-10-02 23:04:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-02 23:04:21 | [Mutex] waiting for: [received:nodes:f0cee60f-d227-4de9-a1c2-7b552e477365:localhost]

2022-10-02 23:04:21 | [Mutex] received everything.

2022-10-02 23:04:21 | [Mutex] isItemNotified: received:node:f0cee60f-d227-4de9-a1c2-7b552e477365:localhost:node-d48630f7-1690-4690-bbda-52998e76b865:Node d48630f7-1690-4690-bbda-52998e76b865 :: true

createSubnodes 1.021s
2022-10-02 23:04:21 |

2022-10-02 23:04:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:21 | ------------------------------------

2022-10-02 23:04: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-666aa402-0cd6-4743-96ff-50e36ee283b1",
    "pubsub#title": "Node 666aa402-0cd6-4743-96ff-50e36ee283b1"
}

2022-10-02 23:04:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-02 23:04:22 | [Mutex] waiting for: [received:nodes:e4d5f774-4ca6-4ea2-a2d6-30c602cc5b83:localhost]

2022-10-02 23:04:22 | [Mutex] waiting for: [received:nodes:e4d5f774-4ca6-4ea2-a2d6-30c602cc5b83:localhost]

2022-10-02 23:04:22 | [Mutex] received everything.

2022-10-02 23:04:22 | [Mutex] isItemNotified: received:node:e4d5f774-4ca6-4ea2-a2d6-30c602cc5b83:localhost:node-666aa402-0cd6-4743-96ff-50e36ee283b1:Node 666aa402-0cd6-4743-96ff-50e36ee283b1 :: true

deleteNodes 1.020s
2022-10-02 23:04:27 |

2022-10-02 23:04:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:27 | ------------------------------------

2022-10-02 23:04:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-666aa402-0cd6-4743-96ff-50e36ee283b1"
}

2022-10-02 23:04:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-02 23:04:28 | [Mutex] waiting for: [received:nodes:c902bec9-3626-441b-840a-d465696e43f4:localhost]

2022-10-02 23:04:28 | [Mutex] received everything.

2022-10-02 23:04:28 | [Mutex] isItemNotified: received:node:c902bec9-3626-441b-840a-d465696e43f4:localhost:node-666aa402-0cd6-4743-96ff-50e36ee283b1:Node 666aa402-0cd6-4743-96ff-50e36ee283b1 :: false

deleteSubnodes 1.027s
2022-10-02 23:04:25 |

2022-10-02 23:04:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:25 | ------------------------------------

2022-10-02 23:04:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865"
}

2022-10-02 23:04:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-02 23:04:27 | [Mutex] waiting for: [received:nodes:06a4ece4-c4c2-4164-90aa-09eb1d85fe7e:localhost]

2022-10-02 23:04:27 | [Mutex] waiting for: [received:nodes:06a4ece4-c4c2-4164-90aa-09eb1d85fe7e:localhost]

2022-10-02 23:04:27 | [Mutex] received everything.

2022-10-02 23:04:27 | [Mutex] isItemNotified: received:node:06a4ece4-c4c2-4164-90aa-09eb1d85fe7e:localhost:node-d48630f7-1690-4690-bbda-52998e76b865:Node d48630f7-1690-4690-bbda-52998e76b865 :: false

2022-10-02 23:04:27 | [Mutex] waiting for: [received:nodes:ad68acb1-69c0-4f41-a298-5e0a676041f1:localhost]

2022-10-02 23:04:27 | [Mutex] received everything.

2022-10-02 23:04:27 | [Mutex] isItemNotified: received:node:ad68acb1-69c0-4f41-a298-5e0a676041f1:localhost:node-d48630f7-1690-4690-bbda-52998e76b865:Node d48630f7-1690-4690-bbda-52998e76b865 :: false

publishItemsToNodes 0.057s
2022-10-02 23:04:24 |

2022-10-02 23:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:24 | ------------------------------------

2022-10-02 23:04:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865",
    "entry": "<test>item-cbfb602b-d0cb-4ded-a32c-411823178790</test>",
    "item-id": "item-cbfb602b-d0cb-4ded-a32c-411823178790"
}

2022-10-02 23:04:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cbfb602b-d0cb-4ded-a32c-411823178790"
}

2022-10-02 23:04:24 | [Mutex] waiting for: [published:item:notifieditem-cbfb602b-d0cb-4ded-a32c-411823178790:admin@test-domain.com]

2022-10-02 23:04:24 | [Mutex] received everything.

2022-10-02 23:04:24 | [Mutex] isItemNotified: published:item:notifieditem-cbfb602b-d0cb-4ded-a32c-411823178790:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-10-02 23:04:24 |

2022-10-02 23:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:24 | ------------------------------------

2022-10-02 23:04:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865",
    "item-id": "item-cbfb602b-d0cb-4ded-a32c-411823178790"
}

2022-10-02 23:04:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cbfb602b-d0cb-4ded-a32c-411823178790"
}

2022-10-02 23:04:24 | [Mutex] received everything.

2022-10-02 23:04:24 | [Mutex] isItemNotified: retracted:item:notifieditem-cbfb602b-d0cb-4ded-a32c-411823178790:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-10-02 23:04:24 |

2022-10-02 23:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:24 | ------------------------------------

2022-10-02 23:04:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865",
    "item-id": "item-cbfb602b-d0cb-4ded-a32c-411823178790"
}

2022-10-02 23:04:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865",
    "item-id": "item-cbfb602b-d0cb-4ded-a32c-411823178790",
    "item": [
        "<item id=\"item-cbfb602b-d0cb-4ded-a32c-411823178790\"><test>item-cbfb602b-d0cb-4ded-a32c-411823178790</test></item>"
    ]
}

2022-10-02 23:04:24 | [Mutex] notify: [retrieved:item:item-cbfb602b-d0cb-4ded-a32c-411823178790:payload-matches:true:localhost]

2022-10-02 23:04:24 | [Mutex] received everything.

2022-10-02 23:04:24 | [Mutex] isItemNotified: retrieved:item:item-cbfb602b-d0cb-4ded-a32c-411823178790:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-10-02 23:04:24 |

2022-10-02 23:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:24 | ------------------------------------

2022-10-02 23:04:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-10-02 23:04:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-666aa402-0cd6-4743-96ff-50e36ee283b1",
        "node-d48630f7-1690-4690-bbda-52998e76b865"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-02 23:04:24 |

2022-10-02 23:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:24 | ------------------------------------

2022-10-02 23:04:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d48630f7-1690-4690-bbda-52998e76b865)"
}

2022-10-02 23:04:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-10-02 23:04:23 |

2022-10-02 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:23 | ------------------------------------

2022-10-02 23:04:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-02 23:04:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-10-02 23:04:24 |

2022-10-02 23:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-02 23:04:24 | ------------------------------------

2022-10-02 23:04:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d48630f7-1690-4690-bbda-52998e76b865",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-02 23:04:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}