Generated by TestNG with ReportNG at 22:43 PDT on Wednesday 24 March 2021
root@87f6aca6b6f2 / Java 11.0.8 (Ubuntu) / 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 : 9.039s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.129s
2021-03-24 22:58:25 |

2021-03-24 22:58:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:25 | ------------------------------------

2021-03-24 22:58:25 | [Mutex] waiting for: [configured:node:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef]

2021-03-24 22:58:26 | [Mutex] received everything.

2021-03-24 22:58:26 | [Mutex] isItemNotified: configured:node:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef :: true

2021-03-24 22:58:27 | [Mutex] waiting for: [received:nodes:0eebd61f-e249-4eda-8e5d-d133b2f8e581:localhost]

2021-03-24 22:58:27 | [Mutex] received everything.

2021-03-24 22:58:27 | [Mutex] isItemNotified: received:node:0eebd61f-e249-4eda-8e5d-d133b2f8e581:localhost:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:Node 52d7b78b-de36-4d5b-b3ee-24c11d89c816 :: true

2021-03-24 22:58:27 | [Mutex] waiting for: [received:nodes:0dc17036-263f-4f9c-822c-422200aa2a74:localhost]

2021-03-24 22:58:27 | [Mutex] waiting for: [received:nodes:0dc17036-263f-4f9c-822c-422200aa2a74:localhost]

2021-03-24 22:58:27 | [Mutex] received everything.

2021-03-24 22:58:27 | [Mutex] isItemNotified: received:node:0dc17036-263f-4f9c-822c-422200aa2a74:localhost:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:Node 52d7b78b-de36-4d5b-b3ee-24c11d89c816 :: false

createNodes 1.765s
2021-03-24 22:58:23 |

2021-03-24 22:58:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:23 | ------------------------------------

2021-03-24 22:58:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "pubsub#title": "Node 52d7b78b-de36-4d5b-b3ee-24c11d89c816"
}

2021-03-24 22:58:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:58:24 | [Mutex] waiting for: [received:nodes:885900f5-4ced-49e4-8184-44ea6a53c7ad:localhost]

2021-03-24 22:58:24 | [Mutex] received everything.

2021-03-24 22:58:24 | [Mutex] isItemNotified: received:node:885900f5-4ced-49e4-8184-44ea6a53c7ad:localhost:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:Node 52d7b78b-de36-4d5b-b3ee-24c11d89c816 :: true

createSubnodes 1.030s
2021-03-24 22:58:24 |

2021-03-24 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:24 | ------------------------------------

2021-03-24 22:58:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef",
    "pubsub#title": "Node d82738b4-57e3-4c63-b5b0-fc5bd62237ef"
}

2021-03-24 22:58:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:58:25 | [Mutex] waiting for: [received:nodes:ff49a87b-0946-4269-985f-87f0906612c3:localhost]

2021-03-24 22:58:25 | [Mutex] received everything.

2021-03-24 22:58:25 | [Mutex] isItemNotified: received:node:ff49a87b-0946-4269-985f-87f0906612c3:localhost:node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef:Node d82738b4-57e3-4c63-b5b0-fc5bd62237ef :: true

deleteNodes 1.029s
2021-03-24 22:58:30 |

2021-03-24 22:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:30 | ------------------------------------

2021-03-24 22:58:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef"
}

2021-03-24 22:58:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:58:31 | [Mutex] waiting for: [received:nodes:06d78b0a-8296-4bbd-ae78-95e6b95a3527:localhost]

2021-03-24 22:58:31 | [Mutex] received everything.

2021-03-24 22:58:31 | [Mutex] isItemNotified: received:node:06d78b0a-8296-4bbd-ae78-95e6b95a3527:localhost:node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef:Node d82738b4-57e3-4c63-b5b0-fc5bd62237ef :: false

deleteSubnodes 1.037s
2021-03-24 22:58:29 |

2021-03-24 22:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:29 | ------------------------------------

2021-03-24 22:58:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816"
}

2021-03-24 22:58:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-24 22:58:30 | [Mutex] waiting for: [received:nodes:a07f9485-b727-4893-adbe-7a232082e387:localhost]

2021-03-24 22:58:30 | [Mutex] received everything.

2021-03-24 22:58:30 | [Mutex] isItemNotified: received:node:a07f9485-b727-4893-adbe-7a232082e387:localhost:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:Node 52d7b78b-de36-4d5b-b3ee-24c11d89c816 :: false

2021-03-24 22:58:30 | [Mutex] waiting for: [received:nodes:e3f60c62-bd73-4f80-acad-248336b5c14d:localhost]

2021-03-24 22:58:30 | [Mutex] received everything.

2021-03-24 22:58:30 | [Mutex] isItemNotified: received:node:e3f60c62-bd73-4f80-acad-248336b5c14d:localhost:node-52d7b78b-de36-4d5b-b3ee-24c11d89c816:Node 52d7b78b-de36-4d5b-b3ee-24c11d89c816 :: false

publishItemsToNodes 0.034s
2021-03-24 22:58:28 |

2021-03-24 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:28 | ------------------------------------

2021-03-24 22:58:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "entry": "<test>item-95e7714f-6d91-486c-8d9e-436062f1f516</test>",
    "item-id": "item-95e7714f-6d91-486c-8d9e-436062f1f516"
}

2021-03-24 22:58:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-95e7714f-6d91-486c-8d9e-436062f1f516"
}

2021-03-24 22:58:28 | [Mutex] waiting for: [published:item:notifieditem-95e7714f-6d91-486c-8d9e-436062f1f516:admin@test-domain.com]

2021-03-24 22:58:28 | [Mutex] received everything.

2021-03-24 22:58:28 | [Mutex] isItemNotified: published:item:notifieditem-95e7714f-6d91-486c-8d9e-436062f1f516:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2021-03-24 22:58:28 |

2021-03-24 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:28 | ------------------------------------

2021-03-24 22:58:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "item-id": "item-95e7714f-6d91-486c-8d9e-436062f1f516"
}

2021-03-24 22:58:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-95e7714f-6d91-486c-8d9e-436062f1f516"
}

2021-03-24 22:58:28 | [Mutex] waiting for: [retracted:item:notifieditem-95e7714f-6d91-486c-8d9e-436062f1f516:admin@test-domain.com]

2021-03-24 22:58:28 | [Mutex] received everything.

2021-03-24 22:58:28 | [Mutex] isItemNotified: retracted:item:notifieditem-95e7714f-6d91-486c-8d9e-436062f1f516:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2021-03-24 22:58:28 |

2021-03-24 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:28 | ------------------------------------

2021-03-24 22:58:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "item-id": "item-95e7714f-6d91-486c-8d9e-436062f1f516"
}

2021-03-24 22:58:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "item-id": "item-95e7714f-6d91-486c-8d9e-436062f1f516",
    "item": [
        "<item id=\"item-95e7714f-6d91-486c-8d9e-436062f1f516\"><test>item-95e7714f-6d91-486c-8d9e-436062f1f516</test></item>"
    ]
}

2021-03-24 22:58:28 | [Mutex] notify: [retrieved:item:item-95e7714f-6d91-486c-8d9e-436062f1f516:payload-matches:true:localhost]

2021-03-24 22:58:28 | [Mutex] received everything.

2021-03-24 22:58:28 | [Mutex] isItemNotified: retrieved:item:item-95e7714f-6d91-486c-8d9e-436062f1f516:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-24 22:58:28 |

2021-03-24 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:28 | ------------------------------------

2021-03-24 22:58:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-24 22:58:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
        "node-d82738b4-57e3-4c63-b5b0-fc5bd62237ef"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-03-24 22:58:28 |

2021-03-24 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:28 | ------------------------------------

2021-03-24 22:58:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-52d7b78b-de36-4d5b-b3ee-24c11d89c816)"
}

2021-03-24 22:58:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-03-24 22:58:27 |

2021-03-24 22:58:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:27 | ------------------------------------

2021-03-24 22:58:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-24 22:58:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2021-03-24 22:58:28 |

2021-03-24 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-24 22:58:28 | ------------------------------------

2021-03-24 22:58:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-52d7b78b-de36-4d5b-b3ee-24c11d89c816",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-24 22:58:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}