Generated by TestNG with ReportNG at 08:42 PDT on Wednesday 27 October 2021
root@785cf647a4ab / 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.985s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2021-10-27 08:59:11 |

2021-10-27 08:59:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:11 | ------------------------------------

2021-10-27 08:59:11 | [Mutex] waiting for: [configured:node:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68]

2021-10-27 08:59:11 | [Mutex] received everything.

2021-10-27 08:59:11 | [Mutex] isItemNotified: configured:node:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68 :: true

2021-10-27 08:59:12 | [Mutex] waiting for: [received:nodes:31d85fd0-3d53-45f2-a3d0-53010d3a5ddf:localhost]

2021-10-27 08:59:12 | [Mutex] received everything.

2021-10-27 08:59:12 | [Mutex] isItemNotified: received:node:31d85fd0-3d53-45f2-a3d0-53010d3a5ddf:localhost:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:Node b1dfa9e7-7d82-49f2-89b1-4a934da49765 :: true

2021-10-27 08:59:12 | [Mutex] waiting for: [received:nodes:c7de7738-a62b-4284-af2f-d422d6010500:localhost]

2021-10-27 08:59:12 | [Mutex] received everything.

2021-10-27 08:59:12 | [Mutex] isItemNotified: received:node:c7de7738-a62b-4284-af2f-d422d6010500:localhost:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:Node b1dfa9e7-7d82-49f2-89b1-4a934da49765 :: false

createNodes 1.586s
2021-10-27 08:59:09 |

2021-10-27 08:59:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:09 | ------------------------------------

2021-10-27 08:59:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "pubsub#title": "Node b1dfa9e7-7d82-49f2-89b1-4a934da49765"
}

2021-10-27 08:59:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:59:10 | [Mutex] waiting for: [received:nodes:de8f71f9-3051-41e1-b0e4-0b6c26fba2f5:localhost]

2021-10-27 08:59:10 | [Mutex] received everything.

2021-10-27 08:59:10 | [Mutex] isItemNotified: received:node:de8f71f9-3051-41e1-b0e4-0b6c26fba2f5:localhost:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:Node b1dfa9e7-7d82-49f2-89b1-4a934da49765 :: true

createSubnodes 1.024s
2021-10-27 08:59:10 |

2021-10-27 08:59:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:10 | ------------------------------------

2021-10-27 08:59:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68",
    "pubsub#title": "Node fabdc2c2-94fd-41fd-859a-7862c7c3eb68"
}

2021-10-27 08:59:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:59:11 | [Mutex] waiting for: [received:nodes:99970e41-3e71-4686-80cb-e6db05baafbb:localhost]

2021-10-27 08:59:11 | [Mutex] received everything.

2021-10-27 08:59:11 | [Mutex] isItemNotified: received:node:99970e41-3e71-4686-80cb-e6db05baafbb:localhost:node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68:Node fabdc2c2-94fd-41fd-859a-7862c7c3eb68 :: true

deleteNodes 1.021s
2021-10-27 08:59:16 |

2021-10-27 08:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:16 | ------------------------------------

2021-10-27 08:59:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68"
}

2021-10-27 08:59:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:59:17 | [Mutex] waiting for: [received:nodes:bf3f4bea-eeaf-4927-a80f-d47a2a9ba011:localhost]

2021-10-27 08:59:17 | [Mutex] received everything.

2021-10-27 08:59:17 | [Mutex] isItemNotified: received:node:bf3f4bea-eeaf-4927-a80f-d47a2a9ba011:localhost:node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68:Node fabdc2c2-94fd-41fd-859a-7862c7c3eb68 :: false

deleteSubnodes 1.033s
2021-10-27 08:59:15 |

2021-10-27 08:59:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:15 | ------------------------------------

2021-10-27 08:59:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765"
}

2021-10-27 08:59:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-27 08:59:16 | [Mutex] waiting for: [received:nodes:a81747d4-5229-4621-b73c-0e27b8525e8a:localhost]

2021-10-27 08:59:16 | [Mutex] received everything.

2021-10-27 08:59:16 | [Mutex] isItemNotified: received:node:a81747d4-5229-4621-b73c-0e27b8525e8a:localhost:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:Node b1dfa9e7-7d82-49f2-89b1-4a934da49765 :: false

2021-10-27 08:59:16 | [Mutex] waiting for: [received:nodes:8e130aad-5c6a-47a2-b43d-95aa83dbedd5:localhost]

2021-10-27 08:59:16 | [Mutex] received everything.

2021-10-27 08:59:16 | [Mutex] isItemNotified: received:node:8e130aad-5c6a-47a2-b43d-95aa83dbedd5:localhost:node-b1dfa9e7-7d82-49f2-89b1-4a934da49765:Node b1dfa9e7-7d82-49f2-89b1-4a934da49765 :: false

publishItemsToNodes 0.086s
2021-10-27 08:59:13 |

2021-10-27 08:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:13 | ------------------------------------

2021-10-27 08:59:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "entry": "<test>item-a67250ed-4403-4e34-b3f2-1905c3666231</test>",
    "item-id": "item-a67250ed-4403-4e34-b3f2-1905c3666231"
}

2021-10-27 08:59:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a67250ed-4403-4e34-b3f2-1905c3666231"
}

2021-10-27 08:59:13 | [Mutex] waiting for: [published:item:notifieditem-a67250ed-4403-4e34-b3f2-1905c3666231:admin@test-domain.com]

2021-10-27 08:59:13 | [Mutex] received everything.

2021-10-27 08:59:13 | [Mutex] isItemNotified: published:item:notifieditem-a67250ed-4403-4e34-b3f2-1905c3666231:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-10-27 08:59:14 |

2021-10-27 08:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:14 | ------------------------------------

2021-10-27 08:59:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "item-id": "item-a67250ed-4403-4e34-b3f2-1905c3666231"
}

2021-10-27 08:59:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a67250ed-4403-4e34-b3f2-1905c3666231"
}

2021-10-27 08:59:14 | [Mutex] received everything.

2021-10-27 08:59:14 | [Mutex] isItemNotified: retracted:item:notifieditem-a67250ed-4403-4e34-b3f2-1905c3666231:admin@test-domain.com :: true

retrieveItemsFromNodes 0.102s
2021-10-27 08:59:13 |

2021-10-27 08:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:13 | ------------------------------------

2021-10-27 08:59:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "item-id": "item-a67250ed-4403-4e34-b3f2-1905c3666231"
}

2021-10-27 08:59:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "item-id": "item-a67250ed-4403-4e34-b3f2-1905c3666231",
    "item": [
        "<item id=\"item-a67250ed-4403-4e34-b3f2-1905c3666231\"><test>item-a67250ed-4403-4e34-b3f2-1905c3666231</test></item>"
    ]
}

2021-10-27 08:59:13 | [Mutex] notify: [retrieved:item:item-a67250ed-4403-4e34-b3f2-1905c3666231:payload-matches:true:localhost]

2021-10-27 08:59:13 | [Mutex] received everything.

2021-10-27 08:59:13 | [Mutex] isItemNotified: retrieved:item:item-a67250ed-4403-4e34-b3f2-1905c3666231:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-27 08:59:13 |

2021-10-27 08:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:13 | ------------------------------------

2021-10-27 08:59:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-27 08:59:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fabdc2c2-94fd-41fd-859a-7862c7c3eb68",
        "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-10-27 08:59:14 |

2021-10-27 08:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:14 | ------------------------------------

2021-10-27 08:59:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b1dfa9e7-7d82-49f2-89b1-4a934da49765)"
}

2021-10-27 08:59:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-10-27 08:59:12 |

2021-10-27 08:59:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:12 | ------------------------------------

2021-10-27 08:59:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-27 08:59:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-10-27 08:59:14 |

2021-10-27 08:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-27 08:59:14 | ------------------------------------

2021-10-27 08:59:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b1dfa9e7-7d82-49f2-89b1-4a934da49765",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-27 08:59:14 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}