Generated by TestNG with ReportNG at 22:50 PDT on Sunday 08 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.835s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2022-05-08 23:12:53 |

2022-05-08 23:12:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:53 | ------------------------------------

2022-05-08 23:12:53 | [Mutex] waiting for: [configured:node:node-036f4034-dd95-4a72-a8fb-0963095a60e3:node-a65e59ce-491a-4d6d-ad87-4eaab90f763b]

2022-05-08 23:12:53 | [Mutex] received everything.

2022-05-08 23:12:53 | [Mutex] isItemNotified: configured:node:node-036f4034-dd95-4a72-a8fb-0963095a60e3:node-a65e59ce-491a-4d6d-ad87-4eaab90f763b :: true

2022-05-08 23:12:54 | [Mutex] waiting for: [received:nodes:ce903a6b-3d59-4eb3-ab3f-ed22249595e1:localhost]

2022-05-08 23:12:54 | [Mutex] received everything.

2022-05-08 23:12:54 | [Mutex] isItemNotified: received:node:ce903a6b-3d59-4eb3-ab3f-ed22249595e1:localhost:node-036f4034-dd95-4a72-a8fb-0963095a60e3:Node 036f4034-dd95-4a72-a8fb-0963095a60e3 :: true

2022-05-08 23:12:54 | [Mutex] waiting for: [received:nodes:5f7edb94-9948-472f-be12-919603399414:localhost]

2022-05-08 23:12:54 | [Mutex] received everything.

2022-05-08 23:12:54 | [Mutex] isItemNotified: received:node:5f7edb94-9948-472f-be12-919603399414:localhost:node-036f4034-dd95-4a72-a8fb-0963095a60e3:Node 036f4034-dd95-4a72-a8fb-0963095a60e3 :: false

createNodes 1.599s
2022-05-08 23:12:50 |

2022-05-08 23:12:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:50 | ------------------------------------

2022-05-08 23:12:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "pubsub#title": "Node 036f4034-dd95-4a72-a8fb-0963095a60e3"
}

2022-05-08 23:12:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-08 23:12:52 | [Mutex] waiting for: [received:nodes:c7366c2f-7beb-498c-8acb-055b3cf5309c:localhost]

2022-05-08 23:12:52 | [Mutex] received everything.

2022-05-08 23:12:52 | [Mutex] isItemNotified: received:node:c7366c2f-7beb-498c-8acb-055b3cf5309c:localhost:node-036f4034-dd95-4a72-a8fb-0963095a60e3:Node 036f4034-dd95-4a72-a8fb-0963095a60e3 :: true

createSubnodes 1.029s
2022-05-08 23:12:52 |

2022-05-08 23:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:52 | ------------------------------------

2022-05-08 23:12:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a65e59ce-491a-4d6d-ad87-4eaab90f763b",
    "pubsub#title": "Node a65e59ce-491a-4d6d-ad87-4eaab90f763b"
}

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

2022-05-08 23:12:53 | [Mutex] waiting for: [received:nodes:68345aa6-b750-4a98-b76d-d2c1e068d45c:localhost]

2022-05-08 23:12:53 | [Mutex] received everything.

2022-05-08 23:12:53 | [Mutex] isItemNotified: received:node:68345aa6-b750-4a98-b76d-d2c1e068d45c:localhost:node-a65e59ce-491a-4d6d-ad87-4eaab90f763b:Node a65e59ce-491a-4d6d-ad87-4eaab90f763b :: true

deleteNodes 1.031s
2022-05-08 23:12:58 |

2022-05-08 23:12:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:58 | ------------------------------------

2022-05-08 23:12:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a65e59ce-491a-4d6d-ad87-4eaab90f763b"
}

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

2022-05-08 23:12:59 | [Mutex] waiting for: [received:nodes:16a86770-5d7b-48ab-b099-9d8219345d4c:localhost]

2022-05-08 23:12:59 | [Mutex] waiting for: [received:nodes:16a86770-5d7b-48ab-b099-9d8219345d4c:localhost]

2022-05-08 23:12:59 | [Mutex] received everything.

2022-05-08 23:12:59 | [Mutex] isItemNotified: received:node:16a86770-5d7b-48ab-b099-9d8219345d4c:localhost:node-a65e59ce-491a-4d6d-ad87-4eaab90f763b:Node a65e59ce-491a-4d6d-ad87-4eaab90f763b :: false

deleteSubnodes 1.027s
2022-05-08 23:12:57 |

2022-05-08 23:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:57 | ------------------------------------

2022-05-08 23:12:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3"
}

2022-05-08 23:12:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-08 23:12:58 | [Mutex] waiting for: [received:nodes:b5950db3-6602-42ea-a704-794696f5161e:localhost]

2022-05-08 23:12:58 | [Mutex] waiting for: [received:nodes:b5950db3-6602-42ea-a704-794696f5161e:localhost]

2022-05-08 23:12:58 | [Mutex] received everything.

2022-05-08 23:12:58 | [Mutex] isItemNotified: received:node:b5950db3-6602-42ea-a704-794696f5161e:localhost:node-036f4034-dd95-4a72-a8fb-0963095a60e3:Node 036f4034-dd95-4a72-a8fb-0963095a60e3 :: false

2022-05-08 23:12:58 | [Mutex] waiting for: [received:nodes:98991c58-fc1a-4e39-8aa3-be6d55d456ae:localhost]

2022-05-08 23:12:58 | [Mutex] received everything.

2022-05-08 23:12:58 | [Mutex] isItemNotified: received:node:98991c58-fc1a-4e39-8aa3-be6d55d456ae:localhost:node-036f4034-dd95-4a72-a8fb-0963095a60e3:Node 036f4034-dd95-4a72-a8fb-0963095a60e3 :: false

publishItemsToNodes 0.040s
2022-05-08 23:12:55 |

2022-05-08 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:55 | ------------------------------------

2022-05-08 23:12:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "entry": "<test>item-28abbe79-861e-4be3-8632-7848796c9ae5</test>",
    "item-id": "item-28abbe79-861e-4be3-8632-7848796c9ae5"
}

2022-05-08 23:12:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-28abbe79-861e-4be3-8632-7848796c9ae5"
}

2022-05-08 23:12:55 | [Mutex] waiting for: [published:item:notifieditem-28abbe79-861e-4be3-8632-7848796c9ae5:admin@test-domain.com]

2022-05-08 23:12:55 | [Mutex] received everything.

2022-05-08 23:12:55 | [Mutex] isItemNotified: published:item:notifieditem-28abbe79-861e-4be3-8632-7848796c9ae5:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-05-08 23:12:55 |

2022-05-08 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:55 | ------------------------------------

2022-05-08 23:12:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "item-id": "item-28abbe79-861e-4be3-8632-7848796c9ae5"
}

2022-05-08 23:12:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-28abbe79-861e-4be3-8632-7848796c9ae5"
}

2022-05-08 23:12:55 | [Mutex] received everything.

2022-05-08 23:12:55 | [Mutex] isItemNotified: retracted:item:notifieditem-28abbe79-861e-4be3-8632-7848796c9ae5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.107s
2022-05-08 23:12:55 |

2022-05-08 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:55 | ------------------------------------

2022-05-08 23:12:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "item-id": "item-28abbe79-861e-4be3-8632-7848796c9ae5"
}

2022-05-08 23:12:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "item-id": "item-28abbe79-861e-4be3-8632-7848796c9ae5",
    "item": [
        "<item id=\"item-28abbe79-861e-4be3-8632-7848796c9ae5\"><test>item-28abbe79-861e-4be3-8632-7848796c9ae5</test></item>"
    ]
}

2022-05-08 23:12:55 | [Mutex] notify: [retrieved:item:item-28abbe79-861e-4be3-8632-7848796c9ae5:payload-matches:true:localhost]

2022-05-08 23:12:55 | [Mutex] received everything.

2022-05-08 23:12:55 | [Mutex] isItemNotified: retrieved:item:item-28abbe79-861e-4be3-8632-7848796c9ae5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-08 23:12:55 |

2022-05-08 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:55 | ------------------------------------

2022-05-08 23:12:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-08 23:12:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
        "node-a65e59ce-491a-4d6d-ad87-4eaab90f763b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-08 23:12:55 |

2022-05-08 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:55 | ------------------------------------

2022-05-08 23:12:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-036f4034-dd95-4a72-a8fb-0963095a60e3)"
}

2022-05-08 23:12:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-05-08 23:12:54 |

2022-05-08 23:12:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:54 | ------------------------------------

2022-05-08 23:12:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-08 23:12:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.084s
2022-05-08 23:12:55 |

2022-05-08 23:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-08 23:12:55 | ------------------------------------

2022-05-08 23:12:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-036f4034-dd95-4a72-a8fb-0963095a60e3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-08 23:12:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}