Generated by TestNG with ReportNG at 22:46 PDT on Sunday 27 August 2023
root@5f28cc209959 / Java 17.0.8 (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.628s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-08-27 23:01:30 |

2023-08-27 23:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:30 | ------------------------------------

2023-08-27 23:01:30 | [Mutex] waiting for: [configured:node:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:node-0b505bb9-46c5-49cd-a191-f7f30bc7f865]

2023-08-27 23:01:30 | [Mutex] received everything.

2023-08-27 23:01:30 | [Mutex] isItemNotified: configured:node:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:node-0b505bb9-46c5-49cd-a191-f7f30bc7f865 :: true

2023-08-27 23:01:31 | [Mutex] waiting for: [received:nodes:afcb33a6-a1c6-4cb4-9253-9c8b31cce54a:localhost]

2023-08-27 23:01:31 | [Mutex] received everything.

2023-08-27 23:01:31 | [Mutex] isItemNotified: received:node:afcb33a6-a1c6-4cb4-9253-9c8b31cce54a:localhost:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:Node 6fc8f226-5592-49ca-8e51-ed0773db8c02 :: true

2023-08-27 23:01:31 | [Mutex] waiting for: [received:nodes:dc1b350b-0a60-4e18-8165-8f463d419d02:localhost]

2023-08-27 23:01:31 | [Mutex] waiting for: [received:nodes:dc1b350b-0a60-4e18-8165-8f463d419d02:localhost]

2023-08-27 23:01:31 | [Mutex] waiting for: [received:nodes:dc1b350b-0a60-4e18-8165-8f463d419d02:localhost]

2023-08-27 23:01:31 | [Mutex] waiting for: [received:nodes:dc1b350b-0a60-4e18-8165-8f463d419d02:localhost]

2023-08-27 23:01:31 | [Mutex] received everything.

2023-08-27 23:01:31 | [Mutex] isItemNotified: received:node:dc1b350b-0a60-4e18-8165-8f463d419d02:localhost:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:Node 6fc8f226-5592-49ca-8e51-ed0773db8c02 :: false

createNodes 1.633s
2023-08-27 23:01:27 |

2023-08-27 23:01:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:27 | ------------------------------------

2023-08-27 23:01:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "pubsub#title": "Node 6fc8f226-5592-49ca-8e51-ed0773db8c02"
}

2023-08-27 23:01:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 23:01:29 | [Mutex] waiting for: [received:nodes:193c8a64-5c21-4e04-b241-22b87652418f:localhost]

2023-08-27 23:01:29 | [Mutex] waiting for: [received:nodes:193c8a64-5c21-4e04-b241-22b87652418f:localhost]

2023-08-27 23:01:29 | [Mutex] waiting for: [received:nodes:193c8a64-5c21-4e04-b241-22b87652418f:localhost]

2023-08-27 23:01:29 | [Mutex] waiting for: [received:nodes:193c8a64-5c21-4e04-b241-22b87652418f:localhost]

2023-08-27 23:01:29 | [Mutex] received everything.

2023-08-27 23:01:29 | [Mutex] isItemNotified: received:node:193c8a64-5c21-4e04-b241-22b87652418f:localhost:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:Node 6fc8f226-5592-49ca-8e51-ed0773db8c02 :: true

createSubnodes 1.023s
2023-08-27 23:01:29 |

2023-08-27 23:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:29 | ------------------------------------

2023-08-27 23:01:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0b505bb9-46c5-49cd-a191-f7f30bc7f865",
    "pubsub#title": "Node 0b505bb9-46c5-49cd-a191-f7f30bc7f865"
}

2023-08-27 23:01:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 23:01:30 | [Mutex] waiting for: [received:nodes:b1f6d64f-4ca0-4af7-a06a-8ca21564b0da:localhost]

2023-08-27 23:01:30 | [Mutex] waiting for: [received:nodes:b1f6d64f-4ca0-4af7-a06a-8ca21564b0da:localhost]

2023-08-27 23:01:30 | [Mutex] received everything.

2023-08-27 23:01:30 | [Mutex] isItemNotified: received:node:b1f6d64f-4ca0-4af7-a06a-8ca21564b0da:localhost:node-0b505bb9-46c5-49cd-a191-f7f30bc7f865:Node 0b505bb9-46c5-49cd-a191-f7f30bc7f865 :: true

deleteNodes 1.031s
2023-08-27 23:01:35 |

2023-08-27 23:01:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:35 | ------------------------------------

2023-08-27 23:01:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b505bb9-46c5-49cd-a191-f7f30bc7f865"
}

2023-08-27 23:01:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 23:01:36 | [Mutex] waiting for: [received:nodes:228ac90b-0c5c-4e8e-ab2b-67e2427bdb60:localhost]

2023-08-27 23:01:36 | [Mutex] received everything.

2023-08-27 23:01:36 | [Mutex] isItemNotified: received:node:228ac90b-0c5c-4e8e-ab2b-67e2427bdb60:localhost:node-0b505bb9-46c5-49cd-a191-f7f30bc7f865:Node 0b505bb9-46c5-49cd-a191-f7f30bc7f865 :: false

deleteSubnodes 1.022s
2023-08-27 23:01:34 |

2023-08-27 23:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:34 | ------------------------------------

2023-08-27 23:01:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02"
}

2023-08-27 23:01:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-27 23:01:35 | [Mutex] waiting for: [received:nodes:174e8003-910c-41de-89f7-5153d4bf88ac:localhost]

2023-08-27 23:01:35 | [Mutex] waiting for: [received:nodes:174e8003-910c-41de-89f7-5153d4bf88ac:localhost]

2023-08-27 23:01:35 | [Mutex] waiting for: [received:nodes:174e8003-910c-41de-89f7-5153d4bf88ac:localhost]

2023-08-27 23:01:35 | [Mutex] waiting for: [received:nodes:174e8003-910c-41de-89f7-5153d4bf88ac:localhost]

2023-08-27 23:01:35 | [Mutex] received everything.

2023-08-27 23:01:35 | [Mutex] isItemNotified: received:node:174e8003-910c-41de-89f7-5153d4bf88ac:localhost:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:Node 6fc8f226-5592-49ca-8e51-ed0773db8c02 :: false

2023-08-27 23:01:35 | [Mutex] waiting for: [received:nodes:3481a06b-54b7-419f-a02e-4b058382d83d:localhost]

2023-08-27 23:01:35 | [Mutex] received everything.

2023-08-27 23:01:35 | [Mutex] isItemNotified: received:node:3481a06b-54b7-419f-a02e-4b058382d83d:localhost:node-6fc8f226-5592-49ca-8e51-ed0773db8c02:Node 6fc8f226-5592-49ca-8e51-ed0773db8c02 :: false

publishItemsToNodes 0.046s
2023-08-27 23:01:32 |

2023-08-27 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:32 | ------------------------------------

2023-08-27 23:01:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "entry": "<test>item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1</test>",
    "item-id": "item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1"
}

2023-08-27 23:01:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1"
}

2023-08-27 23:01:32 | [Mutex] waiting for: [published:item:notifieditem-6a84a194-a145-490d-b9e6-6c7e8a80a5f1:admin@test-domain.com]

2023-08-27 23:01:32 | [Mutex] received everything.

2023-08-27 23:01:32 | [Mutex] isItemNotified: published:item:notifieditem-6a84a194-a145-490d-b9e6-6c7e8a80a5f1:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-08-27 23:01:32 |

2023-08-27 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:32 | ------------------------------------

2023-08-27 23:01:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "item-id": "item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1"
}

2023-08-27 23:01:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1"
}

2023-08-27 23:01:32 | [Mutex] received everything.

2023-08-27 23:01:32 | [Mutex] isItemNotified: retracted:item:notifieditem-6a84a194-a145-490d-b9e6-6c7e8a80a5f1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.033s
2023-08-27 23:01:32 |

2023-08-27 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:32 | ------------------------------------

2023-08-27 23:01:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "item-id": "item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1"
}

2023-08-27 23:01:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "item-id": "item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1",
    "item": [
        "<item id=\"item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1\"><test>item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1</test></item>"
    ]
}

2023-08-27 23:01:32 | [Mutex] notify: [retrieved:item:item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1:payload-matches:true:localhost]

2023-08-27 23:01:32 | [Mutex] received everything.

2023-08-27 23:01:32 | [Mutex] isItemNotified: retrieved:item:item-6a84a194-a145-490d-b9e6-6c7e8a80a5f1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-08-27 23:01:32 |

2023-08-27 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:32 | ------------------------------------

2023-08-27 23:01:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-27 23:01:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
        "node-0b505bb9-46c5-49cd-a191-f7f30bc7f865"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-08-27 23:01:32 |

2023-08-27 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:32 | ------------------------------------

2023-08-27 23:01:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6fc8f226-5592-49ca-8e51-ed0773db8c02)"
}

2023-08-27 23:01:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-08-27 23:01:31 |

2023-08-27 23:01:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:31 | ------------------------------------

2023-08-27 23:01:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-27 23:01:31 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-08-27 23:01:32 |

2023-08-27 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-27 23:01:32 | ------------------------------------

2023-08-27 23:01:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6fc8f226-5592-49ca-8e51-ed0773db8c02",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-27 23:01:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}