Generated by TestNG with ReportNG at 21:29 PST on Tuesday 10 January 2023
root@7c41cec37518 / 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.659s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2023-01-10 21:47:13 |

2023-01-10 21:47:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:13 | ------------------------------------

2023-01-10 21:47:13 | [Mutex] waiting for: [configured:node:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:node-7e6df76c-fe3b-4285-944d-d3682c71257d]

2023-01-10 21:47:13 | [Mutex] received everything.

2023-01-10 21:47:13 | [Mutex] isItemNotified: configured:node:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:node-7e6df76c-fe3b-4285-944d-d3682c71257d :: true

2023-01-10 21:47:14 | [Mutex] waiting for: [received:nodes:676d5d95-cc6e-4f49-9d4f-a1384cc781fa:localhost]

2023-01-10 21:47:14 | [Mutex] waiting for: [received:nodes:676d5d95-cc6e-4f49-9d4f-a1384cc781fa:localhost]

2023-01-10 21:47:14 | [Mutex] received everything.

2023-01-10 21:47:14 | [Mutex] isItemNotified: received:node:676d5d95-cc6e-4f49-9d4f-a1384cc781fa:localhost:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:Node c4666bd5-820c-416e-9bd6-e2e4ca5d77a6 :: true

2023-01-10 21:47:14 | [Mutex] waiting for: [received:nodes:1b309f6d-254e-41ad-99e1-0b4e6a81c2ff:localhost]

2023-01-10 21:47:14 | [Mutex] waiting for: [received:nodes:1b309f6d-254e-41ad-99e1-0b4e6a81c2ff:localhost]

2023-01-10 21:47:14 | [Mutex] received everything.

2023-01-10 21:47:14 | [Mutex] isItemNotified: received:node:1b309f6d-254e-41ad-99e1-0b4e6a81c2ff:localhost:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:Node c4666bd5-820c-416e-9bd6-e2e4ca5d77a6 :: false

createNodes 1.611s
2023-01-10 21:47:10 |

2023-01-10 21:47:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:10 | ------------------------------------

2023-01-10 21:47:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "pubsub#title": "Node c4666bd5-820c-416e-9bd6-e2e4ca5d77a6"
}

2023-01-10 21:47:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:47:12 | [Mutex] waiting for: [received:nodes:e762fa9c-fb55-4a5b-a52b-349b84c0afa2:localhost]

2023-01-10 21:47:12 | [Mutex] received everything.

2023-01-10 21:47:12 | [Mutex] isItemNotified: received:node:e762fa9c-fb55-4a5b-a52b-349b84c0afa2:localhost:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:Node c4666bd5-820c-416e-9bd6-e2e4ca5d77a6 :: true

createSubnodes 1.030s
2023-01-10 21:47:12 |

2023-01-10 21:47:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:12 | ------------------------------------

2023-01-10 21:47:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7e6df76c-fe3b-4285-944d-d3682c71257d",
    "pubsub#title": "Node 7e6df76c-fe3b-4285-944d-d3682c71257d"
}

2023-01-10 21:47:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:47:13 | [Mutex] waiting for: [received:nodes:e4763401-12be-4d3a-af56-6f6260f926e0:localhost]

2023-01-10 21:47:13 | [Mutex] waiting for: [received:nodes:e4763401-12be-4d3a-af56-6f6260f926e0:localhost]

2023-01-10 21:47:13 | [Mutex] waiting for: [received:nodes:e4763401-12be-4d3a-af56-6f6260f926e0:localhost]

2023-01-10 21:47:13 | [Mutex] waiting for: [received:nodes:e4763401-12be-4d3a-af56-6f6260f926e0:localhost]

2023-01-10 21:47:13 | [Mutex] waiting for: [received:nodes:e4763401-12be-4d3a-af56-6f6260f926e0:localhost]

2023-01-10 21:47:13 | [Mutex] received everything.

2023-01-10 21:47:13 | [Mutex] isItemNotified: received:node:e4763401-12be-4d3a-af56-6f6260f926e0:localhost:node-7e6df76c-fe3b-4285-944d-d3682c71257d:Node 7e6df76c-fe3b-4285-944d-d3682c71257d :: true

deleteNodes 1.032s
2023-01-10 21:47:17 |

2023-01-10 21:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:17 | ------------------------------------

2023-01-10 21:47:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7e6df76c-fe3b-4285-944d-d3682c71257d"
}

2023-01-10 21:47:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:47:19 | [Mutex] waiting for: [received:nodes:5e6ce8d6-a92c-4d6e-a2ee-b74fa0b5ed07:localhost]

2023-01-10 21:47:19 | [Mutex] waiting for: [received:nodes:5e6ce8d6-a92c-4d6e-a2ee-b74fa0b5ed07:localhost]

2023-01-10 21:47:19 | [Mutex] waiting for: [received:nodes:5e6ce8d6-a92c-4d6e-a2ee-b74fa0b5ed07:localhost]

2023-01-10 21:47:19 | [Mutex] received everything.

2023-01-10 21:47:19 | [Mutex] isItemNotified: received:node:5e6ce8d6-a92c-4d6e-a2ee-b74fa0b5ed07:localhost:node-7e6df76c-fe3b-4285-944d-d3682c71257d:Node 7e6df76c-fe3b-4285-944d-d3682c71257d :: false

deleteSubnodes 1.027s
2023-01-10 21:47:16 |

2023-01-10 21:47:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:16 | ------------------------------------

2023-01-10 21:47:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6"
}

2023-01-10 21:47:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-10 21:47:17 | [Mutex] waiting for: [received:nodes:b28d2a99-7687-4272-b989-cb965127b17d:localhost]

2023-01-10 21:47:17 | [Mutex] waiting for: [received:nodes:b28d2a99-7687-4272-b989-cb965127b17d:localhost]

2023-01-10 21:47:17 | [Mutex] waiting for: [received:nodes:b28d2a99-7687-4272-b989-cb965127b17d:localhost]

2023-01-10 21:47:17 | [Mutex] waiting for: [received:nodes:b28d2a99-7687-4272-b989-cb965127b17d:localhost]

2023-01-10 21:47:17 | [Mutex] received everything.

2023-01-10 21:47:17 | [Mutex] isItemNotified: received:node:b28d2a99-7687-4272-b989-cb965127b17d:localhost:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:Node c4666bd5-820c-416e-9bd6-e2e4ca5d77a6 :: false

2023-01-10 21:47:17 | [Mutex] waiting for: [received:nodes:3d169986-e7c0-4fd3-adfc-f7d75740c933:localhost]

2023-01-10 21:47:17 | [Mutex] received everything.

2023-01-10 21:47:17 | [Mutex] isItemNotified: received:node:3d169986-e7c0-4fd3-adfc-f7d75740c933:localhost:node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6:Node c4666bd5-820c-416e-9bd6-e2e4ca5d77a6 :: false

publishItemsToNodes 0.033s
2023-01-10 21:47:15 |

2023-01-10 21:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:15 | ------------------------------------

2023-01-10 21:47:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "entry": "<test>item-c5fc5057-84c9-4e77-811e-75ef294fab33</test>",
    "item-id": "item-c5fc5057-84c9-4e77-811e-75ef294fab33"
}

2023-01-10 21:47:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c5fc5057-84c9-4e77-811e-75ef294fab33"
}

2023-01-10 21:47:15 | [Mutex] waiting for: [published:item:notifieditem-c5fc5057-84c9-4e77-811e-75ef294fab33:admin@test-domain.com]

2023-01-10 21:47:15 | [Mutex] received everything.

2023-01-10 21:47:15 | [Mutex] isItemNotified: published:item:notifieditem-c5fc5057-84c9-4e77-811e-75ef294fab33:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2023-01-10 21:47:15 |

2023-01-10 21:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:15 | ------------------------------------

2023-01-10 21:47:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "item-id": "item-c5fc5057-84c9-4e77-811e-75ef294fab33"
}

2023-01-10 21:47:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c5fc5057-84c9-4e77-811e-75ef294fab33"
}

2023-01-10 21:47:15 | [Mutex] received everything.

2023-01-10 21:47:15 | [Mutex] isItemNotified: retracted:item:notifieditem-c5fc5057-84c9-4e77-811e-75ef294fab33:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2023-01-10 21:47:15 |

2023-01-10 21:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:15 | ------------------------------------

2023-01-10 21:47:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "item-id": "item-c5fc5057-84c9-4e77-811e-75ef294fab33"
}

2023-01-10 21:47:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "item-id": "item-c5fc5057-84c9-4e77-811e-75ef294fab33",
    "item": [
        "<item id=\"item-c5fc5057-84c9-4e77-811e-75ef294fab33\"><test>item-c5fc5057-84c9-4e77-811e-75ef294fab33</test></item>"
    ]
}

2023-01-10 21:47:15 | [Mutex] notify: [retrieved:item:item-c5fc5057-84c9-4e77-811e-75ef294fab33:payload-matches:true:localhost]

2023-01-10 21:47:15 | [Mutex] received everything.

2023-01-10 21:47:15 | [Mutex] isItemNotified: retrieved:item:item-c5fc5057-84c9-4e77-811e-75ef294fab33:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2023-01-10 21:47:15 |

2023-01-10 21:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:15 | ------------------------------------

2023-01-10 21:47:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-01-10 21:47:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
        "test",
        "node-7e6df76c-fe3b-4285-944d-d3682c71257d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-01-10 21:47:15 |

2023-01-10 21:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:15 | ------------------------------------

2023-01-10 21:47:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6)"
}

2023-01-10 21:47:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-01-10 21:47:14 |

2023-01-10 21:47:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:14 | ------------------------------------

2023-01-10 21:47:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-10 21:47:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.065s
2023-01-10 21:47:15 |

2023-01-10 21:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-10 21:47:15 | ------------------------------------

2023-01-10 21:47:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c4666bd5-820c-416e-9bd6-e2e4ca5d77a6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-10 21:47:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}