Generated by TestNG with ReportNG at 22:36 PDT on Monday 06 June 2022
root@1bc69cf4cb94 / 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.559s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.030s
2022-06-06 22:51:52 |

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

2022-06-06 22:51:52 | ------------------------------------

2022-06-06 22:51:52 | [Mutex] waiting for: [configured:node:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:node-ff30e102-9c90-4738-923e-71d790e5fd49]

2022-06-06 22:51:52 | [Mutex] received everything.

2022-06-06 22:51:52 | [Mutex] isItemNotified: configured:node:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:node-ff30e102-9c90-4738-923e-71d790e5fd49 :: true

2022-06-06 22:51:53 | [Mutex] waiting for: [received:nodes:45934085-e6c0-4229-9bc3-63d2e539bdd0:localhost]

2022-06-06 22:51:53 | [Mutex] received everything.

2022-06-06 22:51:53 | [Mutex] isItemNotified: received:node:45934085-e6c0-4229-9bc3-63d2e539bdd0:localhost:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:Node 5fdd1e05-7302-4989-adb9-81b89152e9e7 :: true

2022-06-06 22:51:53 | [Mutex] waiting for: [received:nodes:ca7a7cd1-a268-472b-83c8-66a3e0058565:localhost]

2022-06-06 22:51:53 | [Mutex] received everything.

2022-06-06 22:51:53 | [Mutex] isItemNotified: received:node:ca7a7cd1-a268-472b-83c8-66a3e0058565:localhost:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:Node 5fdd1e05-7302-4989-adb9-81b89152e9e7 :: false

createNodes 1.541s
2022-06-06 22:51:50 |

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

2022-06-06 22:51:50 | ------------------------------------

2022-06-06 22:51:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "pubsub#title": "Node 5fdd1e05-7302-4989-adb9-81b89152e9e7"
}

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

2022-06-06 22:51:51 | [Mutex] waiting for: [received:nodes:8efd239e-d4f1-4df1-9fbb-3c60bf14757c:localhost]

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

2022-06-06 22:51:51 | [Mutex] isItemNotified: received:node:8efd239e-d4f1-4df1-9fbb-3c60bf14757c:localhost:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:Node 5fdd1e05-7302-4989-adb9-81b89152e9e7 :: true

createSubnodes 1.023s
2022-06-06 22:51:51 |

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

2022-06-06 22:51:51 | ------------------------------------

2022-06-06 22:51:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ff30e102-9c90-4738-923e-71d790e5fd49",
    "pubsub#title": "Node ff30e102-9c90-4738-923e-71d790e5fd49"
}

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

2022-06-06 22:51:52 | [Mutex] waiting for: [received:nodes:56840035-fe24-440f-810e-336461c6c1be:localhost]

2022-06-06 22:51:52 | [Mutex] waiting for: [received:nodes:56840035-fe24-440f-810e-336461c6c1be:localhost]

2022-06-06 22:51:52 | [Mutex] received everything.

2022-06-06 22:51:52 | [Mutex] isItemNotified: received:node:56840035-fe24-440f-810e-336461c6c1be:localhost:node-ff30e102-9c90-4738-923e-71d790e5fd49:Node ff30e102-9c90-4738-923e-71d790e5fd49 :: true

deleteNodes 1.032s
2022-06-06 22:51:57 |

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

2022-06-06 22:51:57 | ------------------------------------

2022-06-06 22:51:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ff30e102-9c90-4738-923e-71d790e5fd49"
}

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

2022-06-06 22:51:58 | [Mutex] waiting for: [received:nodes:9237ddd8-d876-4ca4-9fc7-4126668ca85c:localhost]

2022-06-06 22:51:58 | [Mutex] received everything.

2022-06-06 22:51:58 | [Mutex] isItemNotified: received:node:9237ddd8-d876-4ca4-9fc7-4126668ca85c:localhost:node-ff30e102-9c90-4738-923e-71d790e5fd49:Node ff30e102-9c90-4738-923e-71d790e5fd49 :: false

deleteSubnodes 1.023s
2022-06-06 22:51:56 |

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

2022-06-06 22:51:56 | ------------------------------------

2022-06-06 22:51:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7"
}

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

2022-06-06 22:51:57 | [Mutex] waiting for: [received:nodes:71dcecac-a957-4c42-87f9-ae471aa70b0c:localhost]

2022-06-06 22:51:57 | [Mutex] waiting for: [received:nodes:71dcecac-a957-4c42-87f9-ae471aa70b0c:localhost]

2022-06-06 22:51:57 | [Mutex] received everything.

2022-06-06 22:51:57 | [Mutex] isItemNotified: received:node:71dcecac-a957-4c42-87f9-ae471aa70b0c:localhost:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:Node 5fdd1e05-7302-4989-adb9-81b89152e9e7 :: false

2022-06-06 22:51:57 | [Mutex] waiting for: [received:nodes:9ccc984c-d65b-4878-bdf4-0ef3accf59b9:localhost]

2022-06-06 22:51:57 | [Mutex] received everything.

2022-06-06 22:51:57 | [Mutex] isItemNotified: received:node:9ccc984c-d65b-4878-bdf4-0ef3accf59b9:localhost:node-5fdd1e05-7302-4989-adb9-81b89152e9e7:Node 5fdd1e05-7302-4989-adb9-81b89152e9e7 :: false

publishItemsToNodes 0.054s
2022-06-06 22:51:54 |

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

2022-06-06 22:51:54 | ------------------------------------

2022-06-06 22:51:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "entry": "<test>item-78cddd06-0578-4e79-a4ec-20e26fc48c60</test>",
    "item-id": "item-78cddd06-0578-4e79-a4ec-20e26fc48c60"
}

2022-06-06 22:51:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78cddd06-0578-4e79-a4ec-20e26fc48c60"
}

2022-06-06 22:51:54 | [Mutex] waiting for: [published:item:notifieditem-78cddd06-0578-4e79-a4ec-20e26fc48c60:admin@test-domain.com]

2022-06-06 22:51:54 | [Mutex] received everything.

2022-06-06 22:51:54 | [Mutex] isItemNotified: published:item:notifieditem-78cddd06-0578-4e79-a4ec-20e26fc48c60:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-06-06 22:51:55 |

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

2022-06-06 22:51:55 | ------------------------------------

2022-06-06 22:51:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "item-id": "item-78cddd06-0578-4e79-a4ec-20e26fc48c60"
}

2022-06-06 22:51:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78cddd06-0578-4e79-a4ec-20e26fc48c60"
}

2022-06-06 22:51:55 | [Mutex] waiting for: [retracted:item:notifieditem-78cddd06-0578-4e79-a4ec-20e26fc48c60:admin@test-domain.com]

2022-06-06 22:51:55 | [Mutex] received everything.

2022-06-06 22:51:55 | [Mutex] isItemNotified: retracted:item:notifieditem-78cddd06-0578-4e79-a4ec-20e26fc48c60:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2022-06-06 22:51:54 |

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

2022-06-06 22:51:54 | ------------------------------------

2022-06-06 22:51:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "item-id": "item-78cddd06-0578-4e79-a4ec-20e26fc48c60"
}

2022-06-06 22:51:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "item-id": "item-78cddd06-0578-4e79-a4ec-20e26fc48c60",
    "item": [
        "<item id=\"item-78cddd06-0578-4e79-a4ec-20e26fc48c60\"><test>item-78cddd06-0578-4e79-a4ec-20e26fc48c60</test></item>"
    ]
}

2022-06-06 22:51:54 | [Mutex] notify: [retrieved:item:item-78cddd06-0578-4e79-a4ec-20e26fc48c60:payload-matches:true:localhost]

2022-06-06 22:51:54 | [Mutex] received everything.

2022-06-06 22:51:54 | [Mutex] isItemNotified: retrieved:item:item-78cddd06-0578-4e79-a4ec-20e26fc48c60:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-06 22:51:54 |

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

2022-06-06 22:51:54 | ------------------------------------

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

2022-06-06 22:51:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
        "node-ff30e102-9c90-4738-923e-71d790e5fd49",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-06 22:51:55 |

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

2022-06-06 22:51:55 | ------------------------------------

2022-06-06 22:51:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5fdd1e05-7302-4989-adb9-81b89152e9e7)"
}

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

subscribeNodes 1.009s
2022-06-06 22:51:53 |

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

2022-06-06 22:51:53 | ------------------------------------

2022-06-06 22:51:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.050s
2022-06-06 22:51:55 |

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

2022-06-06 22:51:55 | ------------------------------------

2022-06-06 22:51:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5fdd1e05-7302-4989-adb9-81b89152e9e7",
    "jids": [
        "admin@test-domain.com"
    ]
}

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