Generated by TestNG with ReportNG at 21:42 PST on Sunday 16 January 2022
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 : 9.091s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.136s
2022-01-16 21:56:51 |

2022-01-16 21:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:51 | ------------------------------------

2022-01-16 21:56:51 | [Mutex] waiting for: [configured:node:node-3e15584f-5e06-44b0-bfcf-39edc424d354:node-42d28926-de80-4a67-bbd1-1e867411fe23]

2022-01-16 21:56:51 | [Mutex] received everything.

2022-01-16 21:56:51 | [Mutex] isItemNotified: configured:node:node-3e15584f-5e06-44b0-bfcf-39edc424d354:node-42d28926-de80-4a67-bbd1-1e867411fe23 :: true

2022-01-16 21:56:52 | [Mutex] waiting for: [received:nodes:bc85b40e-ae42-4801-8c48-84ab28527435:localhost]

2022-01-16 21:56:52 | [Mutex] received everything.

2022-01-16 21:56:52 | [Mutex] isItemNotified: received:node:bc85b40e-ae42-4801-8c48-84ab28527435:localhost:node-3e15584f-5e06-44b0-bfcf-39edc424d354:Node 3e15584f-5e06-44b0-bfcf-39edc424d354 :: true

2022-01-16 21:56:52 | [Mutex] waiting for: [received:nodes:0f102c06-8889-4234-89f2-4b9d006d1b07:localhost]

2022-01-16 21:56:52 | [Mutex] waiting for: [received:nodes:0f102c06-8889-4234-89f2-4b9d006d1b07:localhost]

2022-01-16 21:56:52 | [Mutex] received everything.

2022-01-16 21:56:52 | [Mutex] isItemNotified: received:node:0f102c06-8889-4234-89f2-4b9d006d1b07:localhost:node-3e15584f-5e06-44b0-bfcf-39edc424d354:Node 3e15584f-5e06-44b0-bfcf-39edc424d354 :: false

createNodes 1.637s
2022-01-16 21:56:48 |

2022-01-16 21:56:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:48 | ------------------------------------

2022-01-16 21:56:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "pubsub#title": "Node 3e15584f-5e06-44b0-bfcf-39edc424d354"
}

2022-01-16 21:56:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:56:50 | [Mutex] waiting for: [received:nodes:8d49885a-254a-4224-9af2-04db6d17bf5e:localhost]

2022-01-16 21:56:50 | [Mutex] waiting for: [received:nodes:8d49885a-254a-4224-9af2-04db6d17bf5e:localhost]

2022-01-16 21:56:50 | [Mutex] received everything.

2022-01-16 21:56:50 | [Mutex] isItemNotified: received:node:8d49885a-254a-4224-9af2-04db6d17bf5e:localhost:node-3e15584f-5e06-44b0-bfcf-39edc424d354:Node 3e15584f-5e06-44b0-bfcf-39edc424d354 :: true

createSubnodes 1.029s
2022-01-16 21:56:50 |

2022-01-16 21:56:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:50 | ------------------------------------

2022-01-16 21:56:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-42d28926-de80-4a67-bbd1-1e867411fe23",
    "pubsub#title": "Node 42d28926-de80-4a67-bbd1-1e867411fe23"
}

2022-01-16 21:56:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:56:51 | [Mutex] waiting for: [received:nodes:b94a85e0-e766-4ea4-86ef-e7f14568b944:localhost]

2022-01-16 21:56:51 | [Mutex] received everything.

2022-01-16 21:56:51 | [Mutex] isItemNotified: received:node:b94a85e0-e766-4ea4-86ef-e7f14568b944:localhost:node-42d28926-de80-4a67-bbd1-1e867411fe23:Node 42d28926-de80-4a67-bbd1-1e867411fe23 :: true

deleteNodes 1.028s
2022-01-16 21:56:56 |

2022-01-16 21:56:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:56 | ------------------------------------

2022-01-16 21:56:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-42d28926-de80-4a67-bbd1-1e867411fe23"
}

2022-01-16 21:56:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:56:57 | [Mutex] waiting for: [received:nodes:54b7e6ad-ac08-4329-be8d-d9d6f7870f75:localhost]

2022-01-16 21:56:57 | [Mutex] received everything.

2022-01-16 21:56:57 | [Mutex] isItemNotified: received:node:54b7e6ad-ac08-4329-be8d-d9d6f7870f75:localhost:node-42d28926-de80-4a67-bbd1-1e867411fe23:Node 42d28926-de80-4a67-bbd1-1e867411fe23 :: false

deleteSubnodes 1.036s
2022-01-16 21:56:55 |

2022-01-16 21:56:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:55 | ------------------------------------

2022-01-16 21:56:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354"
}

2022-01-16 21:56:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-16 21:56:56 | [Mutex] waiting for: [received:nodes:04641766-dedf-4243-9a6a-70e73dc98779:localhost]

2022-01-16 21:56:56 | [Mutex] received everything.

2022-01-16 21:56:56 | [Mutex] isItemNotified: received:node:04641766-dedf-4243-9a6a-70e73dc98779:localhost:node-3e15584f-5e06-44b0-bfcf-39edc424d354:Node 3e15584f-5e06-44b0-bfcf-39edc424d354 :: false

2022-01-16 21:56:56 | [Mutex] waiting for: [received:nodes:ee8a7c91-d8c4-4618-9825-f508d9d5399b:localhost]

2022-01-16 21:56:56 | [Mutex] received everything.

2022-01-16 21:56:56 | [Mutex] isItemNotified: received:node:ee8a7c91-d8c4-4618-9825-f508d9d5399b:localhost:node-3e15584f-5e06-44b0-bfcf-39edc424d354:Node 3e15584f-5e06-44b0-bfcf-39edc424d354 :: false

publishItemsToNodes 0.056s
2022-01-16 21:56:53 |

2022-01-16 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:53 | ------------------------------------

2022-01-16 21:56:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "entry": "<test>item-9eea0ceb-b82c-496e-b932-bc95d9911c70</test>",
    "item-id": "item-9eea0ceb-b82c-496e-b932-bc95d9911c70"
}

2022-01-16 21:56:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9eea0ceb-b82c-496e-b932-bc95d9911c70"
}

2022-01-16 21:56:53 | [Mutex] waiting for: [published:item:notifieditem-9eea0ceb-b82c-496e-b932-bc95d9911c70:admin@test-domain.com]

2022-01-16 21:56:53 | [Mutex] received everything.

2022-01-16 21:56:53 | [Mutex] isItemNotified: published:item:notifieditem-9eea0ceb-b82c-496e-b932-bc95d9911c70:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-01-16 21:56:53 |

2022-01-16 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:53 | ------------------------------------

2022-01-16 21:56:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "item-id": "item-9eea0ceb-b82c-496e-b932-bc95d9911c70"
}

2022-01-16 21:56:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9eea0ceb-b82c-496e-b932-bc95d9911c70"
}

2022-01-16 21:56:53 | [Mutex] received everything.

2022-01-16 21:56:53 | [Mutex] isItemNotified: retracted:item:notifieditem-9eea0ceb-b82c-496e-b932-bc95d9911c70:admin@test-domain.com :: true

retrieveItemsFromNodes 0.104s
2022-01-16 21:56:53 |

2022-01-16 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:53 | ------------------------------------

2022-01-16 21:56:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "item-id": "item-9eea0ceb-b82c-496e-b932-bc95d9911c70"
}

2022-01-16 21:56:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "item-id": "item-9eea0ceb-b82c-496e-b932-bc95d9911c70",
    "item": [
        "<item id=\"item-9eea0ceb-b82c-496e-b932-bc95d9911c70\"><test>item-9eea0ceb-b82c-496e-b932-bc95d9911c70</test></item>"
    ]
}

2022-01-16 21:56:53 | [Mutex] notify: [retrieved:item:item-9eea0ceb-b82c-496e-b932-bc95d9911c70:payload-matches:true:localhost]

2022-01-16 21:56:53 | [Mutex] received everything.

2022-01-16 21:56:53 | [Mutex] isItemNotified: retrieved:item:item-9eea0ceb-b82c-496e-b932-bc95d9911c70:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-01-16 21:56:53 |

2022-01-16 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:53 | ------------------------------------

2022-01-16 21:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-01-16 21:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-42d28926-de80-4a67-bbd1-1e867411fe23",
        "test",
        "node-3e15584f-5e06-44b0-bfcf-39edc424d354"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-01-16 21:56:53 |

2022-01-16 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:53 | ------------------------------------

2022-01-16 21:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3e15584f-5e06-44b0-bfcf-39edc424d354)"
}

2022-01-16 21:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.020s
2022-01-16 21:56:52 |

2022-01-16 21:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:52 | ------------------------------------

2022-01-16 21:56:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-16 21:56:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.084s
2022-01-16 21:56:53 |

2022-01-16 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-16 21:56:53 | ------------------------------------

2022-01-16 21:56:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3e15584f-5e06-44b0-bfcf-39edc424d354",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-16 21:56:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}