Generated by TestNG with ReportNG at 22:47 PDT on Monday 03 April 2023
root@1512af24e4a5 / Java 17.0.6 (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.631s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-04-03 23:02:18 |

2023-04-03 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:18 | ------------------------------------

2023-04-03 23:02:18 | [Mutex] waiting for: [configured:node:node-f6b29790-5682-459f-9de4-287676bb77ca:node-def699cd-8137-4650-92c9-9025389222ef]

2023-04-03 23:02:18 | [Mutex] received everything.

2023-04-03 23:02:18 | [Mutex] isItemNotified: configured:node:node-f6b29790-5682-459f-9de4-287676bb77ca:node-def699cd-8137-4650-92c9-9025389222ef :: true

2023-04-03 23:02:19 | [Mutex] waiting for: [received:nodes:dadb9090-becf-49b8-902f-26d41a7febbd:localhost]

2023-04-03 23:02:19 | [Mutex] received everything.

2023-04-03 23:02:19 | [Mutex] isItemNotified: received:node:dadb9090-becf-49b8-902f-26d41a7febbd:localhost:node-f6b29790-5682-459f-9de4-287676bb77ca:Node f6b29790-5682-459f-9de4-287676bb77ca :: true

2023-04-03 23:02:19 | [Mutex] waiting for: [received:nodes:71ce7100-5830-4b6b-a828-bd4d60e2cdfe:localhost]

2023-04-03 23:02:19 | [Mutex] waiting for: [received:nodes:71ce7100-5830-4b6b-a828-bd4d60e2cdfe:localhost]

2023-04-03 23:02:19 | [Mutex] waiting for: [received:nodes:71ce7100-5830-4b6b-a828-bd4d60e2cdfe:localhost]

2023-04-03 23:02:19 | [Mutex] received everything.

2023-04-03 23:02:19 | [Mutex] isItemNotified: received:node:71ce7100-5830-4b6b-a828-bd4d60e2cdfe:localhost:node-f6b29790-5682-459f-9de4-287676bb77ca:Node f6b29790-5682-459f-9de4-287676bb77ca :: false

createNodes 1.725s
2023-04-03 23:02:16 |

2023-04-03 23:02:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:16 | ------------------------------------

2023-04-03 23:02:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "pubsub#title": "Node f6b29790-5682-459f-9de4-287676bb77ca"
}

2023-04-03 23:02:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:02:17 | [Mutex] waiting for: [received:nodes:0e02aa17-052a-4275-b6f5-5f8dad5fc7d5:localhost]

2023-04-03 23:02:17 | [Mutex] waiting for: [received:nodes:0e02aa17-052a-4275-b6f5-5f8dad5fc7d5:localhost]

2023-04-03 23:02:17 | [Mutex] waiting for: [received:nodes:0e02aa17-052a-4275-b6f5-5f8dad5fc7d5:localhost]

2023-04-03 23:02:17 | [Mutex] waiting for: [received:nodes:0e02aa17-052a-4275-b6f5-5f8dad5fc7d5:localhost]

2023-04-03 23:02:17 | [Mutex] received everything.

2023-04-03 23:02:17 | [Mutex] isItemNotified: received:node:0e02aa17-052a-4275-b6f5-5f8dad5fc7d5:localhost:node-f6b29790-5682-459f-9de4-287676bb77ca:Node f6b29790-5682-459f-9de4-287676bb77ca :: true

createSubnodes 1.021s
2023-04-03 23:02:17 |

2023-04-03 23:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:17 | ------------------------------------

2023-04-03 23:02:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-def699cd-8137-4650-92c9-9025389222ef",
    "pubsub#title": "Node def699cd-8137-4650-92c9-9025389222ef"
}

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

2023-04-03 23:02:18 | [Mutex] waiting for: [received:nodes:8f48a6e1-c145-4d92-94de-795d1f611ef4:localhost]

2023-04-03 23:02:18 | [Mutex] waiting for: [received:nodes:8f48a6e1-c145-4d92-94de-795d1f611ef4:localhost]

2023-04-03 23:02:18 | [Mutex] received everything.

2023-04-03 23:02:18 | [Mutex] isItemNotified: received:node:8f48a6e1-c145-4d92-94de-795d1f611ef4:localhost:node-def699cd-8137-4650-92c9-9025389222ef:Node def699cd-8137-4650-92c9-9025389222ef :: true

deleteNodes 1.018s
2023-04-03 23:02:23 |

2023-04-03 23:02:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:23 | ------------------------------------

2023-04-03 23:02:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-def699cd-8137-4650-92c9-9025389222ef"
}

2023-04-03 23:02:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:02:24 | [Mutex] waiting for: [received:nodes:d2bcaa9f-47c7-4db1-94ea-3eb195261eda:localhost]

2023-04-03 23:02:24 | [Mutex] waiting for: [received:nodes:d2bcaa9f-47c7-4db1-94ea-3eb195261eda:localhost]

2023-04-03 23:02:24 | [Mutex] waiting for: [received:nodes:d2bcaa9f-47c7-4db1-94ea-3eb195261eda:localhost]

2023-04-03 23:02:24 | [Mutex] received everything.

2023-04-03 23:02:24 | [Mutex] isItemNotified: received:node:d2bcaa9f-47c7-4db1-94ea-3eb195261eda:localhost:node-def699cd-8137-4650-92c9-9025389222ef:Node def699cd-8137-4650-92c9-9025389222ef :: false

deleteSubnodes 1.029s
2023-04-03 23:02:22 |

2023-04-03 23:02:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:22 | ------------------------------------

2023-04-03 23:02:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca"
}

2023-04-03 23:02:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 23:02:23 | [Mutex] waiting for: [received:nodes:ef698d15-1bc5-4bc1-9933-74d4bd957279:localhost]

2023-04-03 23:02:23 | [Mutex] waiting for: [received:nodes:ef698d15-1bc5-4bc1-9933-74d4bd957279:localhost]

2023-04-03 23:02:23 | [Mutex] waiting for: [received:nodes:ef698d15-1bc5-4bc1-9933-74d4bd957279:localhost]

2023-04-03 23:02:23 | [Mutex] waiting for: [received:nodes:ef698d15-1bc5-4bc1-9933-74d4bd957279:localhost]

2023-04-03 23:02:23 | [Mutex] received everything.

2023-04-03 23:02:23 | [Mutex] isItemNotified: received:node:ef698d15-1bc5-4bc1-9933-74d4bd957279:localhost:node-f6b29790-5682-459f-9de4-287676bb77ca:Node f6b29790-5682-459f-9de4-287676bb77ca :: false

2023-04-03 23:02:23 | [Mutex] waiting for: [received:nodes:1a320f9c-e175-4310-9b76-74aec9313cb1:localhost]

2023-04-03 23:02:23 | [Mutex] received everything.

2023-04-03 23:02:23 | [Mutex] isItemNotified: received:node:1a320f9c-e175-4310-9b76-74aec9313cb1:localhost:node-f6b29790-5682-459f-9de4-287676bb77ca:Node f6b29790-5682-459f-9de4-287676bb77ca :: false

publishItemsToNodes 0.030s
2023-04-03 23:02:20 |

2023-04-03 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:20 | ------------------------------------

2023-04-03 23:02:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "entry": "<test>item-fa475f36-839e-4eda-9e7c-fe8415e09ef3</test>",
    "item-id": "item-fa475f36-839e-4eda-9e7c-fe8415e09ef3"
}

2023-04-03 23:02:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fa475f36-839e-4eda-9e7c-fe8415e09ef3"
}

2023-04-03 23:02:20 | [Mutex] waiting for: [published:item:notifieditem-fa475f36-839e-4eda-9e7c-fe8415e09ef3:admin@test-domain.com]

2023-04-03 23:02:21 | [Mutex] received everything.

2023-04-03 23:02:21 | [Mutex] isItemNotified: published:item:notifieditem-fa475f36-839e-4eda-9e7c-fe8415e09ef3:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-04-03 23:02:21 |

2023-04-03 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:21 | ------------------------------------

2023-04-03 23:02:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "item-id": "item-fa475f36-839e-4eda-9e7c-fe8415e09ef3"
}

2023-04-03 23:02:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fa475f36-839e-4eda-9e7c-fe8415e09ef3"
}

2023-04-03 23:02:21 | [Mutex] received everything.

2023-04-03 23:02:21 | [Mutex] isItemNotified: retracted:item:notifieditem-fa475f36-839e-4eda-9e7c-fe8415e09ef3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2023-04-03 23:02:21 |

2023-04-03 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:21 | ------------------------------------

2023-04-03 23:02:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "item-id": "item-fa475f36-839e-4eda-9e7c-fe8415e09ef3"
}

2023-04-03 23:02:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "item-id": "item-fa475f36-839e-4eda-9e7c-fe8415e09ef3",
    "item": [
        "<item id=\"item-fa475f36-839e-4eda-9e7c-fe8415e09ef3\"><test>item-fa475f36-839e-4eda-9e7c-fe8415e09ef3</test></item>"
    ]
}

2023-04-03 23:02:21 | [Mutex] notify: [retrieved:item:item-fa475f36-839e-4eda-9e7c-fe8415e09ef3:payload-matches:true:localhost]

2023-04-03 23:02:21 | [Mutex] received everything.

2023-04-03 23:02:21 | [Mutex] isItemNotified: retrieved:item:item-fa475f36-839e-4eda-9e7c-fe8415e09ef3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-04-03 23:02:21 |

2023-04-03 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:21 | ------------------------------------

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

2023-04-03 23:02:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-def699cd-8137-4650-92c9-9025389222ef",
        "test",
        "node-f6b29790-5682-459f-9de4-287676bb77ca"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-04-03 23:02:21 |

2023-04-03 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:21 | ------------------------------------

2023-04-03 23:02:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f6b29790-5682-459f-9de4-287676bb77ca)"
}

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

subscribeNodes 1.010s
2023-04-03 23:02:19 |

2023-04-03 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:19 | ------------------------------------

2023-04-03 23:02:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 23:02:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-04-03 23:02:21 |

2023-04-03 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 23:02:21 | ------------------------------------

2023-04-03 23:02:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f6b29790-5682-459f-9de4-287676bb77ca",
    "jids": [
        "admin@test-domain.com"
    ]
}

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