Generated by TestNG with ReportNG at 22:49 PDT on Friday 15 July 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.566s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2022-07-15 23:04:31 |

2022-07-15 23:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:31 | ------------------------------------

2022-07-15 23:04:31 | [Mutex] waiting for: [configured:node:node-25f9abb9-eb52-4319-8120-50d5f781c795:node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc]

2022-07-15 23:04:31 | [Mutex] received everything.

2022-07-15 23:04:31 | [Mutex] isItemNotified: configured:node:node-25f9abb9-eb52-4319-8120-50d5f781c795:node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc :: true

2022-07-15 23:04:32 | [Mutex] waiting for: [received:nodes:a06a0c34-5d7d-48f4-83dc-c82706c34356:localhost]

2022-07-15 23:04:32 | [Mutex] received everything.

2022-07-15 23:04:32 | [Mutex] isItemNotified: received:node:a06a0c34-5d7d-48f4-83dc-c82706c34356:localhost:node-25f9abb9-eb52-4319-8120-50d5f781c795:Node 25f9abb9-eb52-4319-8120-50d5f781c795 :: true

2022-07-15 23:04:32 | [Mutex] waiting for: [received:nodes:d06fe1ee-84ca-48c7-a4da-77d340c972ec:localhost]

2022-07-15 23:04:32 | [Mutex] received everything.

2022-07-15 23:04:32 | [Mutex] isItemNotified: received:node:d06fe1ee-84ca-48c7-a4da-77d340c972ec:localhost:node-25f9abb9-eb52-4319-8120-50d5f781c795:Node 25f9abb9-eb52-4319-8120-50d5f781c795 :: false

createNodes 1.556s
2022-07-15 23:04:29 |

2022-07-15 23:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:29 | ------------------------------------

2022-07-15 23:04:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "pubsub#title": "Node 25f9abb9-eb52-4319-8120-50d5f781c795"
}

2022-07-15 23:04:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-15 23:04:30 | [Mutex] waiting for: [received:nodes:ca818748-9965-4bd4-b237-90a78fdc9b7c:localhost]

2022-07-15 23:04:30 | [Mutex] waiting for: [received:nodes:ca818748-9965-4bd4-b237-90a78fdc9b7c:localhost]

2022-07-15 23:04:30 | [Mutex] waiting for: [received:nodes:ca818748-9965-4bd4-b237-90a78fdc9b7c:localhost]

2022-07-15 23:04:30 | [Mutex] waiting for: [received:nodes:ca818748-9965-4bd4-b237-90a78fdc9b7c:localhost]

2022-07-15 23:04:30 | [Mutex] received everything.

2022-07-15 23:04:30 | [Mutex] isItemNotified: received:node:ca818748-9965-4bd4-b237-90a78fdc9b7c:localhost:node-25f9abb9-eb52-4319-8120-50d5f781c795:Node 25f9abb9-eb52-4319-8120-50d5f781c795 :: true

createSubnodes 1.019s
2022-07-15 23:04:30 |

2022-07-15 23:04:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:30 | ------------------------------------

2022-07-15 23:04:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc",
    "pubsub#title": "Node 300d60d7-f3ec-4804-aa79-3d8fd9daabfc"
}

2022-07-15 23:04:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-15 23:04:31 | [Mutex] waiting for: [received:nodes:80921551-f341-44ae-8672-507ff4b1376b:localhost]

2022-07-15 23:04:31 | [Mutex] received everything.

2022-07-15 23:04:31 | [Mutex] isItemNotified: received:node:80921551-f341-44ae-8672-507ff4b1376b:localhost:node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc:Node 300d60d7-f3ec-4804-aa79-3d8fd9daabfc :: true

deleteNodes 1.017s
2022-07-15 23:04:36 |

2022-07-15 23:04:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:36 | ------------------------------------

2022-07-15 23:04:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc"
}

2022-07-15 23:04:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-15 23:04:37 | [Mutex] waiting for: [received:nodes:a9659b39-5aaa-4f0a-9f2c-3896998a4349:localhost]

2022-07-15 23:04:37 | [Mutex] received everything.

2022-07-15 23:04:37 | [Mutex] isItemNotified: received:node:a9659b39-5aaa-4f0a-9f2c-3896998a4349:localhost:node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc:Node 300d60d7-f3ec-4804-aa79-3d8fd9daabfc :: false

deleteSubnodes 1.067s
2022-07-15 23:04:35 |

2022-07-15 23:04:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:35 | ------------------------------------

2022-07-15 23:04:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795"
}

2022-07-15 23:04:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-15 23:04:36 | [Mutex] waiting for: [received:nodes:8a913324-7ef7-4ea6-9e7d-9916e33cc169:localhost]

2022-07-15 23:04:36 | [Mutex] received everything.

2022-07-15 23:04:36 | [Mutex] isItemNotified: received:node:8a913324-7ef7-4ea6-9e7d-9916e33cc169:localhost:node-25f9abb9-eb52-4319-8120-50d5f781c795:Node 25f9abb9-eb52-4319-8120-50d5f781c795 :: false

2022-07-15 23:04:36 | [Mutex] waiting for: [received:nodes:0271710e-d01f-4aaa-bf5a-da77ab90d1a1:localhost]

2022-07-15 23:04:36 | [Mutex] received everything.

2022-07-15 23:04:36 | [Mutex] isItemNotified: received:node:0271710e-d01f-4aaa-bf5a-da77ab90d1a1:localhost:node-25f9abb9-eb52-4319-8120-50d5f781c795:Node 25f9abb9-eb52-4319-8120-50d5f781c795 :: false

publishItemsToNodes 0.059s
2022-07-15 23:04:33 |

2022-07-15 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:33 | ------------------------------------

2022-07-15 23:04:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "entry": "<test>item-abba5710-aa88-4563-84a1-232cd829f0cb</test>",
    "item-id": "item-abba5710-aa88-4563-84a1-232cd829f0cb"
}

2022-07-15 23:04:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-abba5710-aa88-4563-84a1-232cd829f0cb"
}

2022-07-15 23:04:33 | [Mutex] waiting for: [published:item:notifieditem-abba5710-aa88-4563-84a1-232cd829f0cb:admin@test-domain.com]

2022-07-15 23:04:33 | [Mutex] received everything.

2022-07-15 23:04:33 | [Mutex] isItemNotified: published:item:notifieditem-abba5710-aa88-4563-84a1-232cd829f0cb:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-15 23:04:33 |

2022-07-15 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:33 | ------------------------------------

2022-07-15 23:04:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "item-id": "item-abba5710-aa88-4563-84a1-232cd829f0cb"
}

2022-07-15 23:04:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-abba5710-aa88-4563-84a1-232cd829f0cb"
}

2022-07-15 23:04:33 | [Mutex] received everything.

2022-07-15 23:04:33 | [Mutex] isItemNotified: retracted:item:notifieditem-abba5710-aa88-4563-84a1-232cd829f0cb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2022-07-15 23:04:33 |

2022-07-15 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:33 | ------------------------------------

2022-07-15 23:04:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "item-id": "item-abba5710-aa88-4563-84a1-232cd829f0cb"
}

2022-07-15 23:04:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "item-id": "item-abba5710-aa88-4563-84a1-232cd829f0cb",
    "item": [
        "<item id=\"item-abba5710-aa88-4563-84a1-232cd829f0cb\"><test>item-abba5710-aa88-4563-84a1-232cd829f0cb</test></item>"
    ]
}

2022-07-15 23:04:33 | [Mutex] notify: [retrieved:item:item-abba5710-aa88-4563-84a1-232cd829f0cb:payload-matches:true:localhost]

2022-07-15 23:04:33 | [Mutex] received everything.

2022-07-15 23:04:33 | [Mutex] isItemNotified: retrieved:item:item-abba5710-aa88-4563-84a1-232cd829f0cb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-15 23:04:33 |

2022-07-15 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:33 | ------------------------------------

2022-07-15 23:04:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-15 23:04:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-300d60d7-f3ec-4804-aa79-3d8fd9daabfc",
        "node-25f9abb9-eb52-4319-8120-50d5f781c795"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-15 23:04:33 |

2022-07-15 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:33 | ------------------------------------

2022-07-15 23:04:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-25f9abb9-eb52-4319-8120-50d5f781c795)"
}

2022-07-15 23:04:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-07-15 23:04:32 |

2022-07-15 23:04:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:32 | ------------------------------------

2022-07-15 23:04:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-15 23:04:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-07-15 23:04:33 |

2022-07-15 23:04:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-15 23:04:33 | ------------------------------------

2022-07-15 23:04:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-25f9abb9-eb52-4319-8120-50d5f781c795",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-15 23:04:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}