Generated by TestNG with ReportNG at 21:15 PST on Friday 17 February 2023
root@f9c07ffec79b / 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.615s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-02-17 21:30:16 |

2023-02-17 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:16 | ------------------------------------

2023-02-17 21:30:16 | [Mutex] waiting for: [configured:node:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:node-c85dd928-983a-4ee2-bf64-c515def39e25]

2023-02-17 21:30:16 | [Mutex] received everything.

2023-02-17 21:30:16 | [Mutex] isItemNotified: configured:node:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:node-c85dd928-983a-4ee2-bf64-c515def39e25 :: true

2023-02-17 21:30:17 | [Mutex] waiting for: [received:nodes:75f9b1eb-ea4c-4245-88f1-32f505b24293:localhost]

2023-02-17 21:30:17 | [Mutex] received everything.

2023-02-17 21:30:17 | [Mutex] isItemNotified: received:node:75f9b1eb-ea4c-4245-88f1-32f505b24293:localhost:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:Node 739bd6ed-db4d-42e0-be35-f59fd235fe0a :: true

2023-02-17 21:30:17 | [Mutex] waiting for: [received:nodes:5345a77c-c5d9-4325-930e-fab32117be5c:localhost]

2023-02-17 21:30:17 | [Mutex] waiting for: [received:nodes:5345a77c-c5d9-4325-930e-fab32117be5c:localhost]

2023-02-17 21:30:17 | [Mutex] waiting for: [received:nodes:5345a77c-c5d9-4325-930e-fab32117be5c:localhost]

2023-02-17 21:30:17 | [Mutex] waiting for: [received:nodes:5345a77c-c5d9-4325-930e-fab32117be5c:localhost]

2023-02-17 21:30:17 | [Mutex] received everything.

2023-02-17 21:30:17 | [Mutex] isItemNotified: received:node:5345a77c-c5d9-4325-930e-fab32117be5c:localhost:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:Node 739bd6ed-db4d-42e0-be35-f59fd235fe0a :: false

createNodes 1.558s
2023-02-17 21:30:13 |

2023-02-17 21:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:13 | ------------------------------------

2023-02-17 21:30:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "pubsub#title": "Node 739bd6ed-db4d-42e0-be35-f59fd235fe0a"
}

2023-02-17 21:30:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:30:15 | [Mutex] waiting for: [received:nodes:0b31dd8a-0436-40b9-8d59-edb4558d63be:localhost]

2023-02-17 21:30:15 | [Mutex] waiting for: [received:nodes:0b31dd8a-0436-40b9-8d59-edb4558d63be:localhost]

2023-02-17 21:30:15 | [Mutex] received everything.

2023-02-17 21:30:15 | [Mutex] isItemNotified: received:node:0b31dd8a-0436-40b9-8d59-edb4558d63be:localhost:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:Node 739bd6ed-db4d-42e0-be35-f59fd235fe0a :: true

createSubnodes 1.027s
2023-02-17 21:30:15 |

2023-02-17 21:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:15 | ------------------------------------

2023-02-17 21:30:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c85dd928-983a-4ee2-bf64-c515def39e25",
    "pubsub#title": "Node c85dd928-983a-4ee2-bf64-c515def39e25"
}

2023-02-17 21:30:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:30:16 | [Mutex] waiting for: [received:nodes:33d83b43-5515-410d-b6a6-d506885cdbc0:localhost]

2023-02-17 21:30:16 | [Mutex] received everything.

2023-02-17 21:30:16 | [Mutex] isItemNotified: received:node:33d83b43-5515-410d-b6a6-d506885cdbc0:localhost:node-c85dd928-983a-4ee2-bf64-c515def39e25:Node c85dd928-983a-4ee2-bf64-c515def39e25 :: true

deleteNodes 1.027s
2023-02-17 21:30:20 |

2023-02-17 21:30:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:20 | ------------------------------------

2023-02-17 21:30:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c85dd928-983a-4ee2-bf64-c515def39e25"
}

2023-02-17 21:30:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:30:22 | [Mutex] waiting for: [received:nodes:5d836079-e7a3-4b02-880f-9c9daeee8200:localhost]

2023-02-17 21:30:22 | [Mutex] waiting for: [received:nodes:5d836079-e7a3-4b02-880f-9c9daeee8200:localhost]

2023-02-17 21:30:22 | [Mutex] waiting for: [received:nodes:5d836079-e7a3-4b02-880f-9c9daeee8200:localhost]

2023-02-17 21:30:22 | [Mutex] received everything.

2023-02-17 21:30:22 | [Mutex] isItemNotified: received:node:5d836079-e7a3-4b02-880f-9c9daeee8200:localhost:node-c85dd928-983a-4ee2-bf64-c515def39e25:Node c85dd928-983a-4ee2-bf64-c515def39e25 :: false

deleteSubnodes 1.033s
2023-02-17 21:30:19 |

2023-02-17 21:30:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:19 | ------------------------------------

2023-02-17 21:30:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a"
}

2023-02-17 21:30:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:30:20 | [Mutex] waiting for: [received:nodes:d6b4dc48-99aa-4400-95b8-80da79f6dcd7:localhost]

2023-02-17 21:30:20 | [Mutex] waiting for: [received:nodes:d6b4dc48-99aa-4400-95b8-80da79f6dcd7:localhost]

2023-02-17 21:30:20 | [Mutex] waiting for: [received:nodes:d6b4dc48-99aa-4400-95b8-80da79f6dcd7:localhost]

2023-02-17 21:30:20 | [Mutex] received everything.

2023-02-17 21:30:20 | [Mutex] isItemNotified: received:node:d6b4dc48-99aa-4400-95b8-80da79f6dcd7:localhost:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:Node 739bd6ed-db4d-42e0-be35-f59fd235fe0a :: false

2023-02-17 21:30:20 | [Mutex] waiting for: [received:nodes:af8a041f-eea3-4392-9500-4c6fb6b5a070:localhost]

2023-02-17 21:30:20 | [Mutex] received everything.

2023-02-17 21:30:20 | [Mutex] isItemNotified: received:node:af8a041f-eea3-4392-9500-4c6fb6b5a070:localhost:node-739bd6ed-db4d-42e0-be35-f59fd235fe0a:Node 739bd6ed-db4d-42e0-be35-f59fd235fe0a :: false

publishItemsToNodes 0.077s
2023-02-17 21:30:18 |

2023-02-17 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:18 | ------------------------------------

2023-02-17 21:30:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "entry": "<test>item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6</test>",
    "item-id": "item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6"
}

2023-02-17 21:30:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6"
}

2023-02-17 21:30:18 | [Mutex] waiting for: [published:item:notifieditem-69907a9e-dd3b-43b3-9412-869c6f4fdcf6:admin@test-domain.com]

2023-02-17 21:30:18 | [Mutex] received everything.

2023-02-17 21:30:18 | [Mutex] isItemNotified: published:item:notifieditem-69907a9e-dd3b-43b3-9412-869c6f4fdcf6:admin@test-domain.com :: true

retractItemsFromNodes 0.100s
2023-02-17 21:30:18 |

2023-02-17 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:18 | ------------------------------------

2023-02-17 21:30:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "item-id": "item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6"
}

2023-02-17 21:30:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6"
}

2023-02-17 21:30:18 | [Mutex] waiting for: [retracted:item:notifieditem-69907a9e-dd3b-43b3-9412-869c6f4fdcf6:admin@test-domain.com]

2023-02-17 21:30:18 | [Mutex] received everything.

2023-02-17 21:30:18 | [Mutex] isItemNotified: retracted:item:notifieditem-69907a9e-dd3b-43b3-9412-869c6f4fdcf6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2023-02-17 21:30:18 |

2023-02-17 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:18 | ------------------------------------

2023-02-17 21:30:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "item-id": "item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6"
}

2023-02-17 21:30:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "item-id": "item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6",
    "item": [
        "<item id=\"item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6\"><test>item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6</test></item>"
    ]
}

2023-02-17 21:30:18 | [Mutex] notify: [retrieved:item:item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6:payload-matches:true:localhost]

2023-02-17 21:30:18 | [Mutex] received everything.

2023-02-17 21:30:18 | [Mutex] isItemNotified: retrieved:item:item-69907a9e-dd3b-43b3-9412-869c6f4fdcf6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-02-17 21:30:18 |

2023-02-17 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:18 | ------------------------------------

2023-02-17 21:30:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-17 21:30:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c85dd928-983a-4ee2-bf64-c515def39e25",
        "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-17 21:30:18 |

2023-02-17 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:18 | ------------------------------------

2023-02-17 21:30:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-739bd6ed-db4d-42e0-be35-f59fd235fe0a)"
}

2023-02-17 21:30:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-02-17 21:30:17 |

2023-02-17 21:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:17 | ------------------------------------

2023-02-17 21:30:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 21:30:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.009s
2023-02-17 21:30:18 |

2023-02-17 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:30:18 | ------------------------------------

2023-02-17 21:30:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-739bd6ed-db4d-42e0-be35-f59fd235fe0a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 21:30:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}