Generated by TestNG with ReportNG at 22:20 PDT on Tuesday 20 September 2022
root@ed1b7dd8a1b3 / 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.678s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2022-09-20 22:34:59 |

2022-09-20 22:34:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:34:59 | ------------------------------------

2022-09-20 22:34:59 | [Mutex] waiting for: [configured:node:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:node-ab642b31-7a9f-4377-a154-d84f57e608cf]

2022-09-20 22:34:59 | [Mutex] received everything.

2022-09-20 22:34:59 | [Mutex] isItemNotified: configured:node:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:node-ab642b31-7a9f-4377-a154-d84f57e608cf :: true

2022-09-20 22:35:00 | [Mutex] waiting for: [received:nodes:719420ec-6994-43d5-bf57-7f9ae51d8018:localhost]

2022-09-20 22:35:00 | [Mutex] received everything.

2022-09-20 22:35:00 | [Mutex] isItemNotified: received:node:719420ec-6994-43d5-bf57-7f9ae51d8018:localhost:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:Node ffc4f8dc-0917-4152-ba80-894d3a4ca8d6 :: true

2022-09-20 22:35:00 | [Mutex] waiting for: [received:nodes:e49a4aaf-b3ca-46e9-a540-222faefc130d:localhost]

2022-09-20 22:35:00 | [Mutex] waiting for: [received:nodes:e49a4aaf-b3ca-46e9-a540-222faefc130d:localhost]

2022-09-20 22:35:00 | [Mutex] received everything.

2022-09-20 22:35:00 | [Mutex] isItemNotified: received:node:e49a4aaf-b3ca-46e9-a540-222faefc130d:localhost:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:Node ffc4f8dc-0917-4152-ba80-894d3a4ca8d6 :: false

createNodes 1.537s
2022-09-20 22:34:56 |

2022-09-20 22:34:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:34:56 | ------------------------------------

2022-09-20 22:34:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "pubsub#title": "Node ffc4f8dc-0917-4152-ba80-894d3a4ca8d6"
}

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

2022-09-20 22:34:58 | [Mutex] waiting for: [received:nodes:02018a5b-1401-49a5-9062-5298293ff26e:localhost]

2022-09-20 22:34:58 | [Mutex] received everything.

2022-09-20 22:34:58 | [Mutex] isItemNotified: received:node:02018a5b-1401-49a5-9062-5298293ff26e:localhost:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:Node ffc4f8dc-0917-4152-ba80-894d3a4ca8d6 :: true

createSubnodes 1.024s
2022-09-20 22:34:58 |

2022-09-20 22:34:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:34:58 | ------------------------------------

2022-09-20 22:34:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ab642b31-7a9f-4377-a154-d84f57e608cf",
    "pubsub#title": "Node ab642b31-7a9f-4377-a154-d84f57e608cf"
}

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

2022-09-20 22:34:59 | [Mutex] waiting for: [received:nodes:594a94bb-80e1-4570-bcda-6462eaca39ca:localhost]

2022-09-20 22:34:59 | [Mutex] received everything.

2022-09-20 22:34:59 | [Mutex] isItemNotified: received:node:594a94bb-80e1-4570-bcda-6462eaca39ca:localhost:node-ab642b31-7a9f-4377-a154-d84f57e608cf:Node ab642b31-7a9f-4377-a154-d84f57e608cf :: true

deleteNodes 1.022s
2022-09-20 22:35:03 |

2022-09-20 22:35:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:03 | ------------------------------------

2022-09-20 22:35:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ab642b31-7a9f-4377-a154-d84f57e608cf"
}

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

2022-09-20 22:35:04 | [Mutex] waiting for: [received:nodes:c66e1652-9b69-421a-8bbb-c4870086b230:localhost]

2022-09-20 22:35:04 | [Mutex] received everything.

2022-09-20 22:35:04 | [Mutex] isItemNotified: received:node:c66e1652-9b69-421a-8bbb-c4870086b230:localhost:node-ab642b31-7a9f-4377-a154-d84f57e608cf:Node ab642b31-7a9f-4377-a154-d84f57e608cf :: false

deleteSubnodes 1.029s
2022-09-20 22:35:02 |

2022-09-20 22:35:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:02 | ------------------------------------

2022-09-20 22:35:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6"
}

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

2022-09-20 22:35:03 | [Mutex] waiting for: [received:nodes:b25a8cc1-6474-4cd6-9806-b4b49822eb1c:localhost]

2022-09-20 22:35:03 | [Mutex] received everything.

2022-09-20 22:35:03 | [Mutex] isItemNotified: received:node:b25a8cc1-6474-4cd6-9806-b4b49822eb1c:localhost:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:Node ffc4f8dc-0917-4152-ba80-894d3a4ca8d6 :: false

2022-09-20 22:35:03 | [Mutex] waiting for: [received:nodes:2ff72657-ed63-40d5-9981-7bd38d6d53de:localhost]

2022-09-20 22:35:03 | [Mutex] received everything.

2022-09-20 22:35:03 | [Mutex] isItemNotified: received:node:2ff72657-ed63-40d5-9981-7bd38d6d53de:localhost:node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6:Node ffc4f8dc-0917-4152-ba80-894d3a4ca8d6 :: false

publishItemsToNodes 0.025s
2022-09-20 22:35:01 |

2022-09-20 22:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:01 | ------------------------------------

2022-09-20 22:35:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "entry": "<test>item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab</test>",
    "item-id": "item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab"
}

2022-09-20 22:35:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab"
}

2022-09-20 22:35:01 | [Mutex] waiting for: [published:item:notifieditem-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab:admin@test-domain.com]

2022-09-20 22:35:01 | [Mutex] received everything.

2022-09-20 22:35:01 | [Mutex] isItemNotified: published:item:notifieditem-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2022-09-20 22:35:01 |

2022-09-20 22:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:01 | ------------------------------------

2022-09-20 22:35:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "item-id": "item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab"
}

2022-09-20 22:35:01 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab"
}

2022-09-20 22:35:01 | [Mutex] waiting for: [retracted:item:notifieditem-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab:admin@test-domain.com]

2022-09-20 22:35:01 | [Mutex] received everything.

2022-09-20 22:35:01 | [Mutex] isItemNotified: retracted:item:notifieditem-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab:admin@test-domain.com :: true

retrieveItemsFromNodes 0.140s
2022-09-20 22:35:01 |

2022-09-20 22:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:01 | ------------------------------------

2022-09-20 22:35:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "item-id": "item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab"
}

2022-09-20 22:35:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "item-id": "item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab",
    "item": [
        "<item id=\"item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab\"><test>item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab</test></item>"
    ]
}

2022-09-20 22:35:01 | [Mutex] notify: [retrieved:item:item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab:payload-matches:true:localhost]

2022-09-20 22:35:01 | [Mutex] received everything.

2022-09-20 22:35:01 | [Mutex] isItemNotified: retrieved:item:item-1fb5e4a4-2b39-4fc8-8303-46ce976cf6ab:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-09-20 22:35:01 |

2022-09-20 22:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:01 | ------------------------------------

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

2022-09-20 22:35:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ab642b31-7a9f-4377-a154-d84f57e608cf",
        "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-20 22:35:01 |

2022-09-20 22:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:01 | ------------------------------------

2022-09-20 22:35:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6)"
}

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

subscribeNodes 1.013s
2022-09-20 22:35:00 |

2022-09-20 22:35:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:00 | ------------------------------------

2022-09-20 22:35:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.069s
2022-09-20 22:35:01 |

2022-09-20 22:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 22:35:01 | ------------------------------------

2022-09-20 22:35:01 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ffc4f8dc-0917-4152-ba80-894d3a4ca8d6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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