Generated by TestNG with ReportNG at 22:24 PDT on Tuesday 21 September 2021
root@b2c2a8eba6e6 / 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 : 8.968s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-09-21 22:41:58 |

2021-09-21 22:41:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:41:58 | ------------------------------------

2021-09-21 22:41:58 | [Mutex] waiting for: [configured:node:node-a238885d-5a9f-4573-991a-2e2447c1c684:node-e6710929-1b32-4496-9820-2d57b79521b8]

2021-09-21 22:41:58 | [Mutex] received everything.

2021-09-21 22:41:58 | [Mutex] isItemNotified: configured:node:node-a238885d-5a9f-4573-991a-2e2447c1c684:node-e6710929-1b32-4496-9820-2d57b79521b8 :: true

2021-09-21 22:41:59 | [Mutex] waiting for: [received:nodes:e8054560-ff78-4f23-80e5-0648e22f6b53:localhost]

2021-09-21 22:41:59 | [Mutex] received everything.

2021-09-21 22:41:59 | [Mutex] isItemNotified: received:node:e8054560-ff78-4f23-80e5-0648e22f6b53:localhost:node-a238885d-5a9f-4573-991a-2e2447c1c684:Node a238885d-5a9f-4573-991a-2e2447c1c684 :: true

2021-09-21 22:41:59 | [Mutex] waiting for: [received:nodes:63bf2bcb-3a75-4907-852e-bba43a50c75a:localhost]

2021-09-21 22:41:59 | [Mutex] received everything.

2021-09-21 22:41:59 | [Mutex] isItemNotified: received:node:63bf2bcb-3a75-4907-852e-bba43a50c75a:localhost:node-a238885d-5a9f-4573-991a-2e2447c1c684:Node a238885d-5a9f-4573-991a-2e2447c1c684 :: false

createNodes 1.641s
2021-09-21 22:41:56 |

2021-09-21 22:41:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:41:56 | ------------------------------------

2021-09-21 22:41:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "pubsub#title": "Node a238885d-5a9f-4573-991a-2e2447c1c684"
}

2021-09-21 22:41:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:41:57 | [Mutex] waiting for: [received:nodes:71b62929-f5ab-4f9a-adaf-bc62b19b4f12:localhost]

2021-09-21 22:41:57 | [Mutex] received everything.

2021-09-21 22:41:57 | [Mutex] isItemNotified: received:node:71b62929-f5ab-4f9a-adaf-bc62b19b4f12:localhost:node-a238885d-5a9f-4573-991a-2e2447c1c684:Node a238885d-5a9f-4573-991a-2e2447c1c684 :: true

createSubnodes 1.036s
2021-09-21 22:41:57 |

2021-09-21 22:41:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:41:57 | ------------------------------------

2021-09-21 22:41:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e6710929-1b32-4496-9820-2d57b79521b8",
    "pubsub#title": "Node e6710929-1b32-4496-9820-2d57b79521b8"
}

2021-09-21 22:41:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:41:58 | [Mutex] waiting for: [received:nodes:78d30f56-9558-4e43-aefa-bb1d99f0a6ab:localhost]

2021-09-21 22:41:58 | [Mutex] received everything.

2021-09-21 22:41:58 | [Mutex] isItemNotified: received:node:78d30f56-9558-4e43-aefa-bb1d99f0a6ab:localhost:node-e6710929-1b32-4496-9820-2d57b79521b8:Node e6710929-1b32-4496-9820-2d57b79521b8 :: true

deleteNodes 1.032s
2021-09-21 22:42:03 |

2021-09-21 22:42:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:03 | ------------------------------------

2021-09-21 22:42:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e6710929-1b32-4496-9820-2d57b79521b8"
}

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

2021-09-21 22:42:04 | [Mutex] waiting for: [received:nodes:d8c2678c-5886-4ef0-9be0-00feb10b4f57:localhost]

2021-09-21 22:42:04 | [Mutex] waiting for: [received:nodes:d8c2678c-5886-4ef0-9be0-00feb10b4f57:localhost]

2021-09-21 22:42:04 | [Mutex] received everything.

2021-09-21 22:42:04 | [Mutex] isItemNotified: received:node:d8c2678c-5886-4ef0-9be0-00feb10b4f57:localhost:node-e6710929-1b32-4496-9820-2d57b79521b8:Node e6710929-1b32-4496-9820-2d57b79521b8 :: false

deleteSubnodes 1.030s
2021-09-21 22:42:02 |

2021-09-21 22:42:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:02 | ------------------------------------

2021-09-21 22:42:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684"
}

2021-09-21 22:42:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-21 22:42:03 | [Mutex] waiting for: [received:nodes:d4ee778d-27f3-40a5-9789-83328198c165:localhost]

2021-09-21 22:42:03 | [Mutex] waiting for: [received:nodes:d4ee778d-27f3-40a5-9789-83328198c165:localhost]

2021-09-21 22:42:03 | [Mutex] received everything.

2021-09-21 22:42:03 | [Mutex] isItemNotified: received:node:d4ee778d-27f3-40a5-9789-83328198c165:localhost:node-a238885d-5a9f-4573-991a-2e2447c1c684:Node a238885d-5a9f-4573-991a-2e2447c1c684 :: false

2021-09-21 22:42:03 | [Mutex] waiting for: [received:nodes:e4ec3c4f-1699-4d56-8489-0b5e37699c79:localhost]

2021-09-21 22:42:03 | [Mutex] received everything.

2021-09-21 22:42:03 | [Mutex] isItemNotified: received:node:e4ec3c4f-1699-4d56-8489-0b5e37699c79:localhost:node-a238885d-5a9f-4573-991a-2e2447c1c684:Node a238885d-5a9f-4573-991a-2e2447c1c684 :: false

publishItemsToNodes 0.056s
2021-09-21 22:42:01 |

2021-09-21 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:01 | ------------------------------------

2021-09-21 22:42:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "entry": "<test>item-d440f422-bc28-43a3-89a0-330a5b027eb2</test>",
    "item-id": "item-d440f422-bc28-43a3-89a0-330a5b027eb2"
}

2021-09-21 22:42:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d440f422-bc28-43a3-89a0-330a5b027eb2"
}

2021-09-21 22:42:01 | [Mutex] waiting for: [published:item:notifieditem-d440f422-bc28-43a3-89a0-330a5b027eb2:admin@test-domain.com]

2021-09-21 22:42:01 | [Mutex] received everything.

2021-09-21 22:42:01 | [Mutex] isItemNotified: published:item:notifieditem-d440f422-bc28-43a3-89a0-330a5b027eb2:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-09-21 22:42:01 |

2021-09-21 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:01 | ------------------------------------

2021-09-21 22:42:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "item-id": "item-d440f422-bc28-43a3-89a0-330a5b027eb2"
}

2021-09-21 22:42:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d440f422-bc28-43a3-89a0-330a5b027eb2"
}

2021-09-21 22:42:01 | [Mutex] received everything.

2021-09-21 22:42:01 | [Mutex] isItemNotified: retracted:item:notifieditem-d440f422-bc28-43a3-89a0-330a5b027eb2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2021-09-21 22:42:01 |

2021-09-21 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:01 | ------------------------------------

2021-09-21 22:42:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "item-id": "item-d440f422-bc28-43a3-89a0-330a5b027eb2"
}

2021-09-21 22:42:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "item-id": "item-d440f422-bc28-43a3-89a0-330a5b027eb2",
    "item": [
        "<item id=\"item-d440f422-bc28-43a3-89a0-330a5b027eb2\"><test>item-d440f422-bc28-43a3-89a0-330a5b027eb2</test></item>"
    ]
}

2021-09-21 22:42:01 | [Mutex] notify: [retrieved:item:item-d440f422-bc28-43a3-89a0-330a5b027eb2:payload-matches:true:localhost]

2021-09-21 22:42:01 | [Mutex] received everything.

2021-09-21 22:42:01 | [Mutex] isItemNotified: retrieved:item:item-d440f422-bc28-43a3-89a0-330a5b027eb2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2021-09-21 22:42:01 |

2021-09-21 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:01 | ------------------------------------

2021-09-21 22:42:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-21 22:42:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a238885d-5a9f-4573-991a-2e2447c1c684",
        "test",
        "node-e6710929-1b32-4496-9820-2d57b79521b8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-09-21 22:42:01 |

2021-09-21 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:01 | ------------------------------------

2021-09-21 22:42:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a238885d-5a9f-4573-991a-2e2447c1c684)"
}

2021-09-21 22:42:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-09-21 22:41:59 |

2021-09-21 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:41:59 | ------------------------------------

2021-09-21 22:41:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-21 22:42:00 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-09-21 22:42:01 |

2021-09-21 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 22:42:01 | ------------------------------------

2021-09-21 22:42:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a238885d-5a9f-4573-991a-2e2447c1c684",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-21 22:42:01 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}