Generated by TestNG with ReportNG at 22:51 PDT on Monday 02 May 2022
root@61c39d2ed70d / 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.770s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-05-02 23:06:48 |

2022-05-02 23:06:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 23:06:48 | ------------------------------------

2022-05-02 23:06:48 | [Mutex] waiting for: [configured:node:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34]

2022-05-02 23:06:48 | [Mutex] received everything.

2022-05-02 23:06:48 | [Mutex] isItemNotified: configured:node:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34 :: true

2022-05-02 23:06:49 | [Mutex] waiting for: [received:nodes:c083cc29-4cc1-4e7f-ba39-cd1840776468:localhost]

2022-05-02 23:06:50 | [Mutex] received everything.

2022-05-02 23:06:50 | [Mutex] isItemNotified: received:node:c083cc29-4cc1-4e7f-ba39-cd1840776468:localhost:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:Node 59c0564e-ffd9-41db-a66a-243bcbc3c59e :: true

2022-05-02 23:06:50 | [Mutex] waiting for: [received:nodes:2ff2b2d7-f9c1-418f-a579-abd411c5eb39:localhost]

2022-05-02 23:06:50 | [Mutex] received everything.

2022-05-02 23:06:50 | [Mutex] isItemNotified: received:node:2ff2b2d7-f9c1-418f-a579-abd411c5eb39:localhost:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:Node 59c0564e-ffd9-41db-a66a-243bcbc3c59e :: false

createNodes 1.542s
2022-05-02 23:06:46 |

2022-05-02 23:06:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 23:06:46 | ------------------------------------

2022-05-02 23:06:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "pubsub#title": "Node 59c0564e-ffd9-41db-a66a-243bcbc3c59e"
}

2022-05-02 23:06:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 23:06:47 | [Mutex] waiting for: [received:nodes:103c695a-2580-4ad7-8a1d-d8818c7b3591:localhost]

2022-05-02 23:06:47 | [Mutex] received everything.

2022-05-02 23:06:47 | [Mutex] isItemNotified: received:node:103c695a-2580-4ad7-8a1d-d8818c7b3591:localhost:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:Node 59c0564e-ffd9-41db-a66a-243bcbc3c59e :: true

createSubnodes 1.022s
2022-05-02 23:06:47 |

2022-05-02 23:06:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 23:06:47 | ------------------------------------

2022-05-02 23:06:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34",
    "pubsub#title": "Node bbe66d03-c65b-4fad-90ca-9987ca6fcd34"
}

2022-05-02 23:06:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 23:06:48 | [Mutex] waiting for: [received:nodes:40ea5b8e-ea3a-4360-b3b3-3fdfc884bfed:localhost]

2022-05-02 23:06:48 | [Mutex] received everything.

2022-05-02 23:06:48 | [Mutex] isItemNotified: received:node:40ea5b8e-ea3a-4360-b3b3-3fdfc884bfed:localhost:node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34:Node bbe66d03-c65b-4fad-90ca-9987ca6fcd34 :: true

deleteNodes 1.019s
2022-05-02 23:06:53 |

2022-05-02 23:06:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 23:06:53 | ------------------------------------

2022-05-02 23:06:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34"
}

2022-05-02 23:06:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 23:06:54 | [Mutex] waiting for: [received:nodes:dedb38f4-6084-408e-9c90-0ef562df81dc:localhost]

2022-05-02 23:06:54 | [Mutex] received everything.

2022-05-02 23:06:54 | [Mutex] isItemNotified: received:node:dedb38f4-6084-408e-9c90-0ef562df81dc:localhost:node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34:Node bbe66d03-c65b-4fad-90ca-9987ca6fcd34 :: false

deleteSubnodes 1.032s
2022-05-02 23:06:52 |

2022-05-02 23:06:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 23:06:52 | ------------------------------------

2022-05-02 23:06:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e"
}

2022-05-02 23:06:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-02 23:06:53 | [Mutex] waiting for: [received:nodes:3bab217a-9cab-4e9b-8bb4-fd95e55b69a2:localhost]

2022-05-02 23:06:53 | [Mutex] received everything.

2022-05-02 23:06:53 | [Mutex] isItemNotified: received:node:3bab217a-9cab-4e9b-8bb4-fd95e55b69a2:localhost:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:Node 59c0564e-ffd9-41db-a66a-243bcbc3c59e :: false

2022-05-02 23:06:53 | [Mutex] waiting for: [received:nodes:f7a13f51-4f82-4477-8e9c-fd5d997ac20c:localhost]

2022-05-02 23:06:53 | [Mutex] received everything.

2022-05-02 23:06:53 | [Mutex] isItemNotified: received:node:f7a13f51-4f82-4477-8e9c-fd5d997ac20c:localhost:node-59c0564e-ffd9-41db-a66a-243bcbc3c59e:Node 59c0564e-ffd9-41db-a66a-243bcbc3c59e :: false

publishItemsToNodes 0.044s
2022-05-02 23:06:51 |

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

2022-05-02 23:06:51 | ------------------------------------

2022-05-02 23:06:51 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "entry": "<test>item-adaf8312-c388-4d6a-b539-c853987a7529</test>",
    "item-id": "item-adaf8312-c388-4d6a-b539-c853987a7529"
}

2022-05-02 23:06:51 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-adaf8312-c388-4d6a-b539-c853987a7529"
}

2022-05-02 23:06:51 | [Mutex] waiting for: [published:item:notifieditem-adaf8312-c388-4d6a-b539-c853987a7529:admin@test-domain.com]

2022-05-02 23:06:51 | [Mutex] received everything.

2022-05-02 23:06:51 | [Mutex] isItemNotified: published:item:notifieditem-adaf8312-c388-4d6a-b539-c853987a7529:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2022-05-02 23:06:51 |

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

2022-05-02 23:06:51 | ------------------------------------

2022-05-02 23:06:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "item-id": "item-adaf8312-c388-4d6a-b539-c853987a7529"
}

2022-05-02 23:06:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-adaf8312-c388-4d6a-b539-c853987a7529"
}

2022-05-02 23:06:51 | [Mutex] received everything.

2022-05-02 23:06:51 | [Mutex] isItemNotified: retracted:item:notifieditem-adaf8312-c388-4d6a-b539-c853987a7529:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2022-05-02 23:06:51 |

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

2022-05-02 23:06:51 | ------------------------------------

2022-05-02 23:06:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "item-id": "item-adaf8312-c388-4d6a-b539-c853987a7529"
}

2022-05-02 23:06:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "item-id": "item-adaf8312-c388-4d6a-b539-c853987a7529",
    "item": [
        "<item id=\"item-adaf8312-c388-4d6a-b539-c853987a7529\"><test>item-adaf8312-c388-4d6a-b539-c853987a7529</test></item>"
    ]
}

2022-05-02 23:06:51 | [Mutex] notify: [retrieved:item:item-adaf8312-c388-4d6a-b539-c853987a7529:payload-matches:true:localhost]

2022-05-02 23:06:51 | [Mutex] received everything.

2022-05-02 23:06:51 | [Mutex] isItemNotified: retrieved:item:item-adaf8312-c388-4d6a-b539-c853987a7529:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-02 23:06:51 |

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

2022-05-02 23:06:51 | ------------------------------------

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

2022-05-02 23:06:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bbe66d03-c65b-4fad-90ca-9987ca6fcd34",
        "test",
        "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-05-02 23:06:51 |

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

2022-05-02 23:06:51 | ------------------------------------

2022-05-02 23:06:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-59c0564e-ffd9-41db-a66a-243bcbc3c59e)"
}

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

subscribeNodes 1.009s
2022-05-02 23:06:50 |

2022-05-02 23:06:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-02 23:06:50 | ------------------------------------

2022-05-02 23:06:50 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-02 23:06:50 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-05-02 23:06:51 |

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

2022-05-02 23:06:51 | ------------------------------------

2022-05-02 23:06:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-59c0564e-ffd9-41db-a66a-243bcbc3c59e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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