Generated by TestNG with ReportNG at 21:32 PST on Friday 16 December 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.511s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2022-12-16 21:48:54 |

2022-12-16 21:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:54 | ------------------------------------

2022-12-16 21:48:54 | [Mutex] waiting for: [configured:node:node-41b3b042-78e6-4d92-aaec-ef8864954260:node-49eec36e-1527-49aa-8c17-d80e7a9abc83]

2022-12-16 21:48:54 | [Mutex] received everything.

2022-12-16 21:48:54 | [Mutex] isItemNotified: configured:node:node-41b3b042-78e6-4d92-aaec-ef8864954260:node-49eec36e-1527-49aa-8c17-d80e7a9abc83 :: true

2022-12-16 21:48:55 | [Mutex] waiting for: [received:nodes:1257c9df-d754-4e26-bc53-7810f4d032e0:localhost]

2022-12-16 21:48:55 | [Mutex] received everything.

2022-12-16 21:48:55 | [Mutex] isItemNotified: received:node:1257c9df-d754-4e26-bc53-7810f4d032e0:localhost:node-41b3b042-78e6-4d92-aaec-ef8864954260:Node 41b3b042-78e6-4d92-aaec-ef8864954260 :: true

2022-12-16 21:48:55 | [Mutex] waiting for: [received:nodes:75ad36c0-0525-4165-afd9-f53166ba139d:localhost]

2022-12-16 21:48:55 | [Mutex] waiting for: [received:nodes:75ad36c0-0525-4165-afd9-f53166ba139d:localhost]

2022-12-16 21:48:55 | [Mutex] waiting for: [received:nodes:75ad36c0-0525-4165-afd9-f53166ba139d:localhost]

2022-12-16 21:48:55 | [Mutex] received everything.

2022-12-16 21:48:55 | [Mutex] isItemNotified: received:node:75ad36c0-0525-4165-afd9-f53166ba139d:localhost:node-41b3b042-78e6-4d92-aaec-ef8864954260:Node 41b3b042-78e6-4d92-aaec-ef8864954260 :: false

createNodes 1.512s
2022-12-16 21:48:52 |

2022-12-16 21:48:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:52 | ------------------------------------

2022-12-16 21:48:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "pubsub#title": "Node 41b3b042-78e6-4d92-aaec-ef8864954260"
}

2022-12-16 21:48:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 21:48:53 | [Mutex] waiting for: [received:nodes:95e53455-470e-4c23-8eca-85ed2ec6dee4:localhost]

2022-12-16 21:48:53 | [Mutex] waiting for: [received:nodes:95e53455-470e-4c23-8eca-85ed2ec6dee4:localhost]

2022-12-16 21:48:53 | [Mutex] waiting for: [received:nodes:95e53455-470e-4c23-8eca-85ed2ec6dee4:localhost]

2022-12-16 21:48:53 | [Mutex] waiting for: [received:nodes:95e53455-470e-4c23-8eca-85ed2ec6dee4:localhost]

2022-12-16 21:48:53 | [Mutex] received everything.

2022-12-16 21:48:53 | [Mutex] isItemNotified: received:node:95e53455-470e-4c23-8eca-85ed2ec6dee4:localhost:node-41b3b042-78e6-4d92-aaec-ef8864954260:Node 41b3b042-78e6-4d92-aaec-ef8864954260 :: true

createSubnodes 1.018s
2022-12-16 21:48:53 |

2022-12-16 21:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:53 | ------------------------------------

2022-12-16 21:48:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-49eec36e-1527-49aa-8c17-d80e7a9abc83",
    "pubsub#title": "Node 49eec36e-1527-49aa-8c17-d80e7a9abc83"
}

2022-12-16 21:48:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 21:48:54 | [Mutex] waiting for: [received:nodes:08e9ea52-196e-46be-be0b-762cb6b4b11a:localhost]

2022-12-16 21:48:54 | [Mutex] waiting for: [received:nodes:08e9ea52-196e-46be-be0b-762cb6b4b11a:localhost]

2022-12-16 21:48:54 | [Mutex] waiting for: [received:nodes:08e9ea52-196e-46be-be0b-762cb6b4b11a:localhost]

2022-12-16 21:48:54 | [Mutex] waiting for: [received:nodes:08e9ea52-196e-46be-be0b-762cb6b4b11a:localhost]

2022-12-16 21:48:54 | [Mutex] waiting for: [received:nodes:08e9ea52-196e-46be-be0b-762cb6b4b11a:localhost]

2022-12-16 21:48:54 | [Mutex] received everything.

2022-12-16 21:48:54 | [Mutex] isItemNotified: received:node:08e9ea52-196e-46be-be0b-762cb6b4b11a:localhost:node-49eec36e-1527-49aa-8c17-d80e7a9abc83:Node 49eec36e-1527-49aa-8c17-d80e7a9abc83 :: true

deleteNodes 1.017s
2022-12-16 21:48:59 |

2022-12-16 21:48:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:59 | ------------------------------------

2022-12-16 21:48:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-49eec36e-1527-49aa-8c17-d80e7a9abc83"
}

2022-12-16 21:48:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 21:49:00 | [Mutex] waiting for: [received:nodes:a16d1b30-dc1a-412f-9205-f2854d1915ae:localhost]

2022-12-16 21:49:00 | [Mutex] waiting for: [received:nodes:a16d1b30-dc1a-412f-9205-f2854d1915ae:localhost]

2022-12-16 21:49:00 | [Mutex] waiting for: [received:nodes:a16d1b30-dc1a-412f-9205-f2854d1915ae:localhost]

2022-12-16 21:49:00 | [Mutex] received everything.

2022-12-16 21:49:00 | [Mutex] isItemNotified: received:node:a16d1b30-dc1a-412f-9205-f2854d1915ae:localhost:node-49eec36e-1527-49aa-8c17-d80e7a9abc83:Node 49eec36e-1527-49aa-8c17-d80e7a9abc83 :: false

deleteSubnodes 1.024s
2022-12-16 21:48:58 |

2022-12-16 21:48:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:58 | ------------------------------------

2022-12-16 21:48:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260"
}

2022-12-16 21:48:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-16 21:48:59 | [Mutex] waiting for: [received:nodes:c5fbbf3f-9276-4dbe-aa76-df4ecdcb4e31:localhost]

2022-12-16 21:48:59 | [Mutex] waiting for: [received:nodes:c5fbbf3f-9276-4dbe-aa76-df4ecdcb4e31:localhost]

2022-12-16 21:48:59 | [Mutex] waiting for: [received:nodes:c5fbbf3f-9276-4dbe-aa76-df4ecdcb4e31:localhost]

2022-12-16 21:48:59 | [Mutex] waiting for: [received:nodes:c5fbbf3f-9276-4dbe-aa76-df4ecdcb4e31:localhost]

2022-12-16 21:48:59 | [Mutex] received everything.

2022-12-16 21:48:59 | [Mutex] isItemNotified: received:node:c5fbbf3f-9276-4dbe-aa76-df4ecdcb4e31:localhost:node-41b3b042-78e6-4d92-aaec-ef8864954260:Node 41b3b042-78e6-4d92-aaec-ef8864954260 :: false

2022-12-16 21:48:59 | [Mutex] waiting for: [received:nodes:4496b35d-3b20-491b-9702-c438a33c40b6:localhost]

2022-12-16 21:48:59 | [Mutex] received everything.

2022-12-16 21:48:59 | [Mutex] isItemNotified: received:node:4496b35d-3b20-491b-9702-c438a33c40b6:localhost:node-41b3b042-78e6-4d92-aaec-ef8864954260:Node 41b3b042-78e6-4d92-aaec-ef8864954260 :: false

publishItemsToNodes 0.101s
2022-12-16 21:48:56 |

2022-12-16 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:56 | ------------------------------------

2022-12-16 21:48:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "entry": "<test>item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1</test>",
    "item-id": "item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1"
}

2022-12-16 21:48:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1"
}

2022-12-16 21:48:56 | [Mutex] waiting for: [published:item:notifieditem-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1:admin@test-domain.com]

2022-12-16 21:48:56 | [Mutex] received everything.

2022-12-16 21:48:56 | [Mutex] isItemNotified: published:item:notifieditem-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-12-16 21:48:56 |

2022-12-16 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:56 | ------------------------------------

2022-12-16 21:48:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "item-id": "item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1"
}

2022-12-16 21:48:57 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1"
}

2022-12-16 21:48:57 | [Mutex] received everything.

2022-12-16 21:48:57 | [Mutex] isItemNotified: retracted:item:notifieditem-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.016s
2022-12-16 21:48:56 |

2022-12-16 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:56 | ------------------------------------

2022-12-16 21:48:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "item-id": "item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1"
}

2022-12-16 21:48:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "item-id": "item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1",
    "item": [
        "<item id=\"item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1\"><test>item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1</test></item>"
    ]
}

2022-12-16 21:48:56 | [Mutex] notify: [retrieved:item:item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1:payload-matches:true:localhost]

2022-12-16 21:48:56 | [Mutex] received everything.

2022-12-16 21:48:56 | [Mutex] isItemNotified: retrieved:item:item-a64fcc85-c8e9-4e61-b3dd-e2ef8abee8b1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-12-16 21:48:56 |

2022-12-16 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:56 | ------------------------------------

2022-12-16 21:48:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-16 21:48:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-49eec36e-1527-49aa-8c17-d80e7a9abc83",
        "test",
        "node-41b3b042-78e6-4d92-aaec-ef8864954260"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-16 21:48:56 |

2022-12-16 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:56 | ------------------------------------

2022-12-16 21:48:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-41b3b042-78e6-4d92-aaec-ef8864954260)"
}

2022-12-16 21:48:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-12-16 21:48:55 |

2022-12-16 21:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:55 | ------------------------------------

2022-12-16 21:48:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-16 21:48:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-12-16 21:48:57 |

2022-12-16 21:48:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-16 21:48:57 | ------------------------------------

2022-12-16 21:48:57 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-41b3b042-78e6-4d92-aaec-ef8864954260",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-16 21:48:57 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}