Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 30 August 2022
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.678s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.083s
2022-08-30 22:34:35 |

2022-08-30 22:34:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:35 | ------------------------------------

2022-08-30 22:34:35 | [Mutex] waiting for: [configured:node:node-aeac3354-03f0-4d47-921d-becd078185b6:node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee]

2022-08-30 22:34:35 | [Mutex] received everything.

2022-08-30 22:34:35 | [Mutex] isItemNotified: configured:node:node-aeac3354-03f0-4d47-921d-becd078185b6:node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee :: true

2022-08-30 22:34:36 | [Mutex] waiting for: [received:nodes:f5bd2b04-5295-452f-86e9-356d748edb38:localhost]

2022-08-30 22:34:36 | [Mutex] received everything.

2022-08-30 22:34:36 | [Mutex] isItemNotified: received:node:f5bd2b04-5295-452f-86e9-356d748edb38:localhost:node-aeac3354-03f0-4d47-921d-becd078185b6:Node aeac3354-03f0-4d47-921d-becd078185b6 :: true

2022-08-30 22:34:36 | [Mutex] waiting for: [received:nodes:960794f1-f89b-4a03-be50-7ebdb64362ff:localhost]

2022-08-30 22:34:36 | [Mutex] received everything.

2022-08-30 22:34:36 | [Mutex] isItemNotified: received:node:960794f1-f89b-4a03-be50-7ebdb64362ff:localhost:node-aeac3354-03f0-4d47-921d-becd078185b6:Node aeac3354-03f0-4d47-921d-becd078185b6 :: false

createNodes 1.550s
2022-08-30 22:34:33 |

2022-08-30 22:34:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:33 | ------------------------------------

2022-08-30 22:34:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "pubsub#title": "Node aeac3354-03f0-4d47-921d-becd078185b6"
}

2022-08-30 22:34:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 22:34:34 | [Mutex] waiting for: [received:nodes:7a00b3bc-7b34-4c81-86d3-4d9a9e8526dd:localhost]

2022-08-30 22:34:34 | [Mutex] waiting for: [received:nodes:7a00b3bc-7b34-4c81-86d3-4d9a9e8526dd:localhost]

2022-08-30 22:34:34 | [Mutex] received everything.

2022-08-30 22:34:34 | [Mutex] isItemNotified: received:node:7a00b3bc-7b34-4c81-86d3-4d9a9e8526dd:localhost:node-aeac3354-03f0-4d47-921d-becd078185b6:Node aeac3354-03f0-4d47-921d-becd078185b6 :: true

createSubnodes 1.023s
2022-08-30 22:34:34 |

2022-08-30 22:34:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:34 | ------------------------------------

2022-08-30 22:34:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee",
    "pubsub#title": "Node bb20775a-9ba7-4e89-81b7-c3e92fcff7ee"
}

2022-08-30 22:34:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 22:34:35 | [Mutex] waiting for: [received:nodes:462e1c47-90b1-452a-b90e-4b7f99dd79a0:localhost]

2022-08-30 22:34:35 | [Mutex] waiting for: [received:nodes:462e1c47-90b1-452a-b90e-4b7f99dd79a0:localhost]

2022-08-30 22:34:35 | [Mutex] received everything.

2022-08-30 22:34:35 | [Mutex] isItemNotified: received:node:462e1c47-90b1-452a-b90e-4b7f99dd79a0:localhost:node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee:Node bb20775a-9ba7-4e89-81b7-c3e92fcff7ee :: true

deleteNodes 1.023s
2022-08-30 22:34:40 |

2022-08-30 22:34:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:40 | ------------------------------------

2022-08-30 22:34:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee"
}

2022-08-30 22:34:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 22:34:41 | [Mutex] waiting for: [received:nodes:0afa8752-f86e-4396-b52b-9d4a72c3a132:localhost]

2022-08-30 22:34:41 | [Mutex] waiting for: [received:nodes:0afa8752-f86e-4396-b52b-9d4a72c3a132:localhost]

2022-08-30 22:34:41 | [Mutex] received everything.

2022-08-30 22:34:41 | [Mutex] isItemNotified: received:node:0afa8752-f86e-4396-b52b-9d4a72c3a132:localhost:node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee:Node bb20775a-9ba7-4e89-81b7-c3e92fcff7ee :: false

deleteSubnodes 1.024s
2022-08-30 22:34:39 |

2022-08-30 22:34:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:39 | ------------------------------------

2022-08-30 22:34:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6"
}

2022-08-30 22:34:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-30 22:34:40 | [Mutex] waiting for: [received:nodes:50eb2aa0-12fd-49cd-b592-c4146ce3fa13:localhost]

2022-08-30 22:34:40 | [Mutex] received everything.

2022-08-30 22:34:40 | [Mutex] isItemNotified: received:node:50eb2aa0-12fd-49cd-b592-c4146ce3fa13:localhost:node-aeac3354-03f0-4d47-921d-becd078185b6:Node aeac3354-03f0-4d47-921d-becd078185b6 :: false

2022-08-30 22:34:40 | [Mutex] waiting for: [received:nodes:32a3c113-984c-4cd7-8641-9f098ce290a3:localhost]

2022-08-30 22:34:40 | [Mutex] received everything.

2022-08-30 22:34:40 | [Mutex] isItemNotified: received:node:32a3c113-984c-4cd7-8641-9f098ce290a3:localhost:node-aeac3354-03f0-4d47-921d-becd078185b6:Node aeac3354-03f0-4d47-921d-becd078185b6 :: false

publishItemsToNodes 0.049s
2022-08-30 22:34:37 |

2022-08-30 22:34:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:37 | ------------------------------------

2022-08-30 22:34:37 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "entry": "<test>item-57254714-ae87-46d5-9410-53128b2558ae</test>",
    "item-id": "item-57254714-ae87-46d5-9410-53128b2558ae"
}

2022-08-30 22:34:37 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-57254714-ae87-46d5-9410-53128b2558ae"
}

2022-08-30 22:34:37 | [Mutex] received everything.

2022-08-30 22:34:37 | [Mutex] isItemNotified: published:item:notifieditem-57254714-ae87-46d5-9410-53128b2558ae:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-30 22:34:38 |

2022-08-30 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:38 | ------------------------------------

2022-08-30 22:34:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "item-id": "item-57254714-ae87-46d5-9410-53128b2558ae"
}

2022-08-30 22:34:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-57254714-ae87-46d5-9410-53128b2558ae"
}

2022-08-30 22:34:38 | [Mutex] received everything.

2022-08-30 22:34:38 | [Mutex] isItemNotified: retracted:item:notifieditem-57254714-ae87-46d5-9410-53128b2558ae:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2022-08-30 22:34:37 |

2022-08-30 22:34:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:37 | ------------------------------------

2022-08-30 22:34:37 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "item-id": "item-57254714-ae87-46d5-9410-53128b2558ae"
}

2022-08-30 22:34:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "item-id": "item-57254714-ae87-46d5-9410-53128b2558ae",
    "item": [
        "<item id=\"item-57254714-ae87-46d5-9410-53128b2558ae\"><test>item-57254714-ae87-46d5-9410-53128b2558ae</test></item>"
    ]
}

2022-08-30 22:34:38 | [Mutex] notify: [retrieved:item:item-57254714-ae87-46d5-9410-53128b2558ae:payload-matches:true:localhost]

2022-08-30 22:34:38 | [Mutex] received everything.

2022-08-30 22:34:38 | [Mutex] isItemNotified: retrieved:item:item-57254714-ae87-46d5-9410-53128b2558ae:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-08-30 22:34:38 |

2022-08-30 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:38 | ------------------------------------

2022-08-30 22:34:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-30 22:34:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-bb20775a-9ba7-4e89-81b7-c3e92fcff7ee",
        "node-aeac3354-03f0-4d47-921d-becd078185b6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-30 22:34:38 |

2022-08-30 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:38 | ------------------------------------

2022-08-30 22:34:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-aeac3354-03f0-4d47-921d-becd078185b6)"
}

2022-08-30 22:34:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-30 22:34:36 |

2022-08-30 22:34:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:36 | ------------------------------------

2022-08-30 22:34:36 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-30 22:34:36 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2022-08-30 22:34:38 |

2022-08-30 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-30 22:34:38 | ------------------------------------

2022-08-30 22:34:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-aeac3354-03f0-4d47-921d-becd078185b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-30 22:34:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}