Generated by TestNG with ReportNG at 22:45 PDT on Friday 17 March 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.439s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2023-03-17 22:59:48 |

2023-03-17 22:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:48 | ------------------------------------

2023-03-17 22:59:48 | [Mutex] waiting for: [configured:node:node-01d255c7-e59b-406b-9641-8e457566b34b:node-4bb01c86-18bb-4264-8e8c-ba57cf6897a3]

2023-03-17 22:59:48 | [Mutex] received everything.

2023-03-17 22:59:48 | [Mutex] isItemNotified: configured:node:node-01d255c7-e59b-406b-9641-8e457566b34b:node-4bb01c86-18bb-4264-8e8c-ba57cf6897a3 :: true

2023-03-17 22:59:49 | [Mutex] waiting for: [received:nodes:547a553e-c69a-4958-b01c-450bb9228bc7:localhost]

2023-03-17 22:59:49 | [Mutex] received everything.

2023-03-17 22:59:49 | [Mutex] isItemNotified: received:node:547a553e-c69a-4958-b01c-450bb9228bc7:localhost:node-01d255c7-e59b-406b-9641-8e457566b34b:Node 01d255c7-e59b-406b-9641-8e457566b34b :: true

2023-03-17 22:59:49 | [Mutex] waiting for: [received:nodes:7f82d614-c93e-4589-ad6f-a8c135b2fca7:localhost]

2023-03-17 22:59:49 | [Mutex] waiting for: [received:nodes:7f82d614-c93e-4589-ad6f-a8c135b2fca7:localhost]

2023-03-17 22:59:49 | [Mutex] waiting for: [received:nodes:7f82d614-c93e-4589-ad6f-a8c135b2fca7:localhost]

2023-03-17 22:59:49 | [Mutex] received everything.

2023-03-17 22:59:49 | [Mutex] isItemNotified: received:node:7f82d614-c93e-4589-ad6f-a8c135b2fca7:localhost:node-01d255c7-e59b-406b-9641-8e457566b34b:Node 01d255c7-e59b-406b-9641-8e457566b34b :: false

createNodes 1.493s
2023-03-17 22:59:46 |

2023-03-17 22:59:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:46 | ------------------------------------

2023-03-17 22:59: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-01d255c7-e59b-406b-9641-8e457566b34b",
    "pubsub#title": "Node 01d255c7-e59b-406b-9641-8e457566b34b"
}

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

2023-03-17 22:59:47 | [Mutex] waiting for: [received:nodes:f05e84ad-cf96-4ea7-97a2-be781f47f1c2:localhost]

2023-03-17 22:59:47 | [Mutex] waiting for: [received:nodes:f05e84ad-cf96-4ea7-97a2-be781f47f1c2:localhost]

2023-03-17 22:59:47 | [Mutex] waiting for: [received:nodes:f05e84ad-cf96-4ea7-97a2-be781f47f1c2:localhost]

2023-03-17 22:59:47 | [Mutex] waiting for: [received:nodes:f05e84ad-cf96-4ea7-97a2-be781f47f1c2:localhost]

2023-03-17 22:59:47 | [Mutex] received everything.

2023-03-17 22:59:47 | [Mutex] isItemNotified: received:node:f05e84ad-cf96-4ea7-97a2-be781f47f1c2:localhost:node-01d255c7-e59b-406b-9641-8e457566b34b:Node 01d255c7-e59b-406b-9641-8e457566b34b :: true

createSubnodes 1.038s
2023-03-17 22:59:47 |

2023-03-17 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:47 | ------------------------------------

2023-03-17 22:59: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-4bb01c86-18bb-4264-8e8c-ba57cf6897a3",
    "pubsub#title": "Node 4bb01c86-18bb-4264-8e8c-ba57cf6897a3"
}

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

2023-03-17 22:59:48 | [Mutex] waiting for: [received:nodes:d444df42-dce0-4ef6-b810-cf6ea111ab7b:localhost]

2023-03-17 22:59:48 | [Mutex] waiting for: [received:nodes:d444df42-dce0-4ef6-b810-cf6ea111ab7b:localhost]

2023-03-17 22:59:48 | [Mutex] waiting for: [received:nodes:d444df42-dce0-4ef6-b810-cf6ea111ab7b:localhost]

2023-03-17 22:59:48 | [Mutex] waiting for: [received:nodes:d444df42-dce0-4ef6-b810-cf6ea111ab7b:localhost]

2023-03-17 22:59:48 | [Mutex] received everything.

2023-03-17 22:59:48 | [Mutex] isItemNotified: received:node:d444df42-dce0-4ef6-b810-cf6ea111ab7b:localhost:node-4bb01c86-18bb-4264-8e8c-ba57cf6897a3:Node 4bb01c86-18bb-4264-8e8c-ba57cf6897a3 :: true

deleteNodes 1.017s
2023-03-17 22:59:53 |

2023-03-17 22:59:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:53 | ------------------------------------

2023-03-17 22:59:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4bb01c86-18bb-4264-8e8c-ba57cf6897a3"
}

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

2023-03-17 22:59:54 | [Mutex] waiting for: [received:nodes:39497a6a-eb6a-4576-93e4-81dd1abc8e52:localhost]

2023-03-17 22:59:54 | [Mutex] waiting for: [received:nodes:39497a6a-eb6a-4576-93e4-81dd1abc8e52:localhost]

2023-03-17 22:59:54 | [Mutex] waiting for: [received:nodes:39497a6a-eb6a-4576-93e4-81dd1abc8e52:localhost]

2023-03-17 22:59:54 | [Mutex] received everything.

2023-03-17 22:59:54 | [Mutex] isItemNotified: received:node:39497a6a-eb6a-4576-93e4-81dd1abc8e52:localhost:node-4bb01c86-18bb-4264-8e8c-ba57cf6897a3:Node 4bb01c86-18bb-4264-8e8c-ba57cf6897a3 :: false

deleteSubnodes 1.032s
2023-03-17 22:59:52 |

2023-03-17 22:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:52 | ------------------------------------

2023-03-17 22:59:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b"
}

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

2023-03-17 22:59:53 | [Mutex] waiting for: [received:nodes:b958abae-1e18-4595-bab9-4d27d8f5cc6c:localhost]

2023-03-17 22:59:53 | [Mutex] waiting for: [received:nodes:b958abae-1e18-4595-bab9-4d27d8f5cc6c:localhost]

2023-03-17 22:59:53 | [Mutex] waiting for: [received:nodes:b958abae-1e18-4595-bab9-4d27d8f5cc6c:localhost]

2023-03-17 22:59:53 | [Mutex] waiting for: [received:nodes:b958abae-1e18-4595-bab9-4d27d8f5cc6c:localhost]

2023-03-17 22:59:53 | [Mutex] received everything.

2023-03-17 22:59:53 | [Mutex] isItemNotified: received:node:b958abae-1e18-4595-bab9-4d27d8f5cc6c:localhost:node-01d255c7-e59b-406b-9641-8e457566b34b:Node 01d255c7-e59b-406b-9641-8e457566b34b :: false

2023-03-17 22:59:53 | [Mutex] waiting for: [received:nodes:c0f0846e-5e16-4c1d-b0eb-9799156c1226:localhost]

2023-03-17 22:59:53 | [Mutex] received everything.

2023-03-17 22:59:53 | [Mutex] isItemNotified: received:node:c0f0846e-5e16-4c1d-b0eb-9799156c1226:localhost:node-01d255c7-e59b-406b-9641-8e457566b34b:Node 01d255c7-e59b-406b-9641-8e457566b34b :: false

publishItemsToNodes 0.093s
2023-03-17 22:59:50 |

2023-03-17 22:59:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:50 | ------------------------------------

2023-03-17 22:59:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b",
    "entry": "<test>item-4771e056-1664-43a0-8402-324e9ba1c36d</test>",
    "item-id": "item-4771e056-1664-43a0-8402-324e9ba1c36d"
}

2023-03-17 22:59:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4771e056-1664-43a0-8402-324e9ba1c36d"
}

2023-03-17 22:59:50 | [Mutex] waiting for: [published:item:notifieditem-4771e056-1664-43a0-8402-324e9ba1c36d:admin@test-domain.com]

2023-03-17 22:59:51 | [Mutex] received everything.

2023-03-17 22:59:51 | [Mutex] isItemNotified: published:item:notifieditem-4771e056-1664-43a0-8402-324e9ba1c36d:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-03-17 22:59:51 |

2023-03-17 22:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:51 | ------------------------------------

2023-03-17 22:59:51 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b",
    "item-id": "item-4771e056-1664-43a0-8402-324e9ba1c36d"
}

2023-03-17 22:59:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4771e056-1664-43a0-8402-324e9ba1c36d"
}

2023-03-17 22:59:51 | [Mutex] received everything.

2023-03-17 22:59:51 | [Mutex] isItemNotified: retracted:item:notifieditem-4771e056-1664-43a0-8402-324e9ba1c36d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2023-03-17 22:59:51 |

2023-03-17 22:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:51 | ------------------------------------

2023-03-17 22:59:51 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b",
    "item-id": "item-4771e056-1664-43a0-8402-324e9ba1c36d"
}

2023-03-17 22:59:51 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b",
    "item-id": "item-4771e056-1664-43a0-8402-324e9ba1c36d",
    "item": [
        "<item id=\"item-4771e056-1664-43a0-8402-324e9ba1c36d\"><test>item-4771e056-1664-43a0-8402-324e9ba1c36d</test></item>"
    ]
}

2023-03-17 22:59:51 | [Mutex] notify: [retrieved:item:item-4771e056-1664-43a0-8402-324e9ba1c36d:payload-matches:true:localhost]

2023-03-17 22:59:51 | [Mutex] received everything.

2023-03-17 22:59:51 | [Mutex] isItemNotified: retrieved:item:item-4771e056-1664-43a0-8402-324e9ba1c36d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-03-17 22:59:51 |

2023-03-17 22:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:51 | ------------------------------------

2023-03-17 22:59:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-17 22:59:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-01d255c7-e59b-406b-9641-8e457566b34b",
        "node-4bb01c86-18bb-4264-8e8c-ba57cf6897a3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-17 22:59:51 |

2023-03-17 22:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:51 | ------------------------------------

2023-03-17 22:59:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-01d255c7-e59b-406b-9641-8e457566b34b)"
}

2023-03-17 22:59:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-03-17 22:59:49 |

2023-03-17 22:59:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:49 | ------------------------------------

2023-03-17 22:59:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-17 22:59:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-03-17 22:59:51 |

2023-03-17 22:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-17 22:59:51 | ------------------------------------

2023-03-17 22:59:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-01d255c7-e59b-406b-9641-8e457566b34b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-17 22:59:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}