Generated by TestNG with ReportNG at 05:51 PDT on Monday 24 October 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.735s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-10-24 06:19:39 |

2022-10-24 06:19:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:39 | ------------------------------------

2022-10-24 06:19:39 | [Mutex] waiting for: [configured:node:node-13747674-bfe8-41e0-8049-05f3756e3637:node-965a4e21-fee3-434a-977f-12b13ecaa2bb]

2022-10-24 06:19:39 | [Mutex] received everything.

2022-10-24 06:19:39 | [Mutex] isItemNotified: configured:node:node-13747674-bfe8-41e0-8049-05f3756e3637:node-965a4e21-fee3-434a-977f-12b13ecaa2bb :: true

2022-10-24 06:19:40 | [Mutex] waiting for: [received:nodes:166bc3f6-c228-433a-a57e-ab635c46f4f9:localhost]

2022-10-24 06:19:40 | [Mutex] received everything.

2022-10-24 06:19:40 | [Mutex] isItemNotified: received:node:166bc3f6-c228-433a-a57e-ab635c46f4f9:localhost:node-13747674-bfe8-41e0-8049-05f3756e3637:Node 13747674-bfe8-41e0-8049-05f3756e3637 :: true

2022-10-24 06:19:40 | [Mutex] waiting for: [received:nodes:8841e1dc-7b49-441e-a090-656c88e233a4:localhost]

2022-10-24 06:19:40 | [Mutex] received everything.

2022-10-24 06:19:40 | [Mutex] isItemNotified: received:node:8841e1dc-7b49-441e-a090-656c88e233a4:localhost:node-13747674-bfe8-41e0-8049-05f3756e3637:Node 13747674-bfe8-41e0-8049-05f3756e3637 :: false

createNodes 1.656s
2022-10-24 06:19:36 |

2022-10-24 06:19:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:36 | ------------------------------------

2022-10-24 06:19:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "pubsub#title": "Node 13747674-bfe8-41e0-8049-05f3756e3637"
}

2022-10-24 06:19:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-24 06:19:38 | [Mutex] waiting for: [received:nodes:37353d2c-ffa1-4f38-a61b-df957a9c5ce0:localhost]

2022-10-24 06:19:38 | [Mutex] received everything.

2022-10-24 06:19:38 | [Mutex] isItemNotified: received:node:37353d2c-ffa1-4f38-a61b-df957a9c5ce0:localhost:node-13747674-bfe8-41e0-8049-05f3756e3637:Node 13747674-bfe8-41e0-8049-05f3756e3637 :: true

createSubnodes 1.061s
2022-10-24 06:19:38 |

2022-10-24 06:19:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:38 | ------------------------------------

2022-10-24 06:19:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-965a4e21-fee3-434a-977f-12b13ecaa2bb",
    "pubsub#title": "Node 965a4e21-fee3-434a-977f-12b13ecaa2bb"
}

2022-10-24 06:19:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-24 06:19:39 | [Mutex] waiting for: [received:nodes:46e83ad2-8d79-436c-a1d3-4b6cd135756c:localhost]

2022-10-24 06:19:39 | [Mutex] waiting for: [received:nodes:46e83ad2-8d79-436c-a1d3-4b6cd135756c:localhost]

2022-10-24 06:19:39 | [Mutex] received everything.

2022-10-24 06:19:39 | [Mutex] isItemNotified: received:node:46e83ad2-8d79-436c-a1d3-4b6cd135756c:localhost:node-965a4e21-fee3-434a-977f-12b13ecaa2bb:Node 965a4e21-fee3-434a-977f-12b13ecaa2bb :: true

deleteNodes 1.023s
2022-10-24 06:19:43 |

2022-10-24 06:19:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:43 | ------------------------------------

2022-10-24 06:19:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-965a4e21-fee3-434a-977f-12b13ecaa2bb"
}

2022-10-24 06:19:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-24 06:19:44 | [Mutex] waiting for: [received:nodes:0e89c983-903f-4e16-860f-11cda233a655:localhost]

2022-10-24 06:19:44 | [Mutex] received everything.

2022-10-24 06:19:44 | [Mutex] isItemNotified: received:node:0e89c983-903f-4e16-860f-11cda233a655:localhost:node-965a4e21-fee3-434a-977f-12b13ecaa2bb:Node 965a4e21-fee3-434a-977f-12b13ecaa2bb :: false

deleteSubnodes 1.029s
2022-10-24 06:19:42 |

2022-10-24 06:19:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:42 | ------------------------------------

2022-10-24 06:19:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637"
}

2022-10-24 06:19:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-24 06:19:43 | [Mutex] waiting for: [received:nodes:44ee5eeb-ebd2-4824-a003-9add5c24ab41:localhost]

2022-10-24 06:19:43 | [Mutex] received everything.

2022-10-24 06:19:43 | [Mutex] isItemNotified: received:node:44ee5eeb-ebd2-4824-a003-9add5c24ab41:localhost:node-13747674-bfe8-41e0-8049-05f3756e3637:Node 13747674-bfe8-41e0-8049-05f3756e3637 :: false

2022-10-24 06:19:43 | [Mutex] waiting for: [received:nodes:16b20cb2-c9f8-4f27-aa32-45109c5b07de:localhost]

2022-10-24 06:19:43 | [Mutex] received everything.

2022-10-24 06:19:43 | [Mutex] isItemNotified: received:node:16b20cb2-c9f8-4f27-aa32-45109c5b07de:localhost:node-13747674-bfe8-41e0-8049-05f3756e3637:Node 13747674-bfe8-41e0-8049-05f3756e3637 :: false

publishItemsToNodes 0.106s
2022-10-24 06:19:41 |

2022-10-24 06:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:41 | ------------------------------------

2022-10-24 06:19:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "entry": "<test>item-6982c90e-b992-45cf-b672-c65e8f9a5c66</test>",
    "item-id": "item-6982c90e-b992-45cf-b672-c65e8f9a5c66"
}

2022-10-24 06:19:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6982c90e-b992-45cf-b672-c65e8f9a5c66"
}

2022-10-24 06:19:41 | [Mutex] waiting for: [published:item:notifieditem-6982c90e-b992-45cf-b672-c65e8f9a5c66:admin@test-domain.com]

2022-10-24 06:19:41 | [Mutex] received everything.

2022-10-24 06:19:41 | [Mutex] isItemNotified: published:item:notifieditem-6982c90e-b992-45cf-b672-c65e8f9a5c66:admin@test-domain.com :: true

retractItemsFromNodes 0.114s
2022-10-24 06:19:41 |

2022-10-24 06:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:41 | ------------------------------------

2022-10-24 06:19:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "item-id": "item-6982c90e-b992-45cf-b672-c65e8f9a5c66"
}

2022-10-24 06:19:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6982c90e-b992-45cf-b672-c65e8f9a5c66"
}

2022-10-24 06:19:41 | [Mutex] waiting for: [retracted:item:notifieditem-6982c90e-b992-45cf-b672-c65e8f9a5c66:admin@test-domain.com]

2022-10-24 06:19:41 | [Mutex] received everything.

2022-10-24 06:19:41 | [Mutex] isItemNotified: retracted:item:notifieditem-6982c90e-b992-45cf-b672-c65e8f9a5c66:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-10-24 06:19:41 |

2022-10-24 06:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:41 | ------------------------------------

2022-10-24 06:19:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "item-id": "item-6982c90e-b992-45cf-b672-c65e8f9a5c66"
}

2022-10-24 06:19:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "item-id": "item-6982c90e-b992-45cf-b672-c65e8f9a5c66",
    "item": [
        "<item id=\"item-6982c90e-b992-45cf-b672-c65e8f9a5c66\"><test>item-6982c90e-b992-45cf-b672-c65e8f9a5c66</test></item>"
    ]
}

2022-10-24 06:19:41 | [Mutex] notify: [retrieved:item:item-6982c90e-b992-45cf-b672-c65e8f9a5c66:payload-matches:true:localhost]

2022-10-24 06:19:41 | [Mutex] received everything.

2022-10-24 06:19:41 | [Mutex] isItemNotified: retrieved:item:item-6982c90e-b992-45cf-b672-c65e8f9a5c66:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2022-10-24 06:19:41 |

2022-10-24 06:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:41 | ------------------------------------

2022-10-24 06:19:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-10-24 06:19:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-965a4e21-fee3-434a-977f-12b13ecaa2bb",
        "node-13747674-bfe8-41e0-8049-05f3756e3637"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-10-24 06:19:41 |

2022-10-24 06:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:41 | ------------------------------------

2022-10-24 06:19:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-13747674-bfe8-41e0-8049-05f3756e3637)"
}

2022-10-24 06:19:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-10-24 06:19:40 |

2022-10-24 06:19:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:40 | ------------------------------------

2022-10-24 06:19:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-24 06:19:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.010s
2022-10-24 06:19:41 |

2022-10-24 06:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-24 06:19:41 | ------------------------------------

2022-10-24 06:19:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-13747674-bfe8-41e0-8049-05f3756e3637",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-24 06:19:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}