Generated by TestNG with ReportNG at 22:44 PDT on Thursday 04 May 2023
root@1512af24e4a5 / Java 17.0.6 (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.559s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2023-05-04 22:59:28 |

2023-05-04 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:28 | ------------------------------------

2023-05-04 22:59:28 | [Mutex] waiting for: [configured:node:node-2bae949f-4d94-46af-98d8-69cb711867ae:node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0]

2023-05-04 22:59:28 | [Mutex] received everything.

2023-05-04 22:59:28 | [Mutex] isItemNotified: configured:node:node-2bae949f-4d94-46af-98d8-69cb711867ae:node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0 :: true

2023-05-04 22:59:29 | [Mutex] waiting for: [received:nodes:2b84ac32-e3db-415c-af51-ea85361d3b05:localhost]

2023-05-04 22:59:29 | [Mutex] received everything.

2023-05-04 22:59:29 | [Mutex] isItemNotified: received:node:2b84ac32-e3db-415c-af51-ea85361d3b05:localhost:node-2bae949f-4d94-46af-98d8-69cb711867ae:Node 2bae949f-4d94-46af-98d8-69cb711867ae :: true

2023-05-04 22:59:29 | [Mutex] waiting for: [received:nodes:d354261c-c086-4c78-bc87-efa2080cf4f9:localhost]

2023-05-04 22:59:29 | [Mutex] waiting for: [received:nodes:d354261c-c086-4c78-bc87-efa2080cf4f9:localhost]

2023-05-04 22:59:29 | [Mutex] waiting for: [received:nodes:d354261c-c086-4c78-bc87-efa2080cf4f9:localhost]

2023-05-04 22:59:29 | [Mutex] received everything.

2023-05-04 22:59:29 | [Mutex] isItemNotified: received:node:d354261c-c086-4c78-bc87-efa2080cf4f9:localhost:node-2bae949f-4d94-46af-98d8-69cb711867ae:Node 2bae949f-4d94-46af-98d8-69cb711867ae :: false

createNodes 1.559s
2023-05-04 22:59:26 |

2023-05-04 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:26 | ------------------------------------

2023-05-04 22:59:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "pubsub#title": "Node 2bae949f-4d94-46af-98d8-69cb711867ae"
}

2023-05-04 22:59:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 22:59:27 | [Mutex] waiting for: [received:nodes:ea832fd4-638e-4830-a3c5-92f7d9c3b49e:localhost]

2023-05-04 22:59:27 | [Mutex] waiting for: [received:nodes:ea832fd4-638e-4830-a3c5-92f7d9c3b49e:localhost]

2023-05-04 22:59:27 | [Mutex] received everything.

2023-05-04 22:59:27 | [Mutex] isItemNotified: received:node:ea832fd4-638e-4830-a3c5-92f7d9c3b49e:localhost:node-2bae949f-4d94-46af-98d8-69cb711867ae:Node 2bae949f-4d94-46af-98d8-69cb711867ae :: true

createSubnodes 1.025s
2023-05-04 22:59:27 |

2023-05-04 22:59:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:27 | ------------------------------------

2023-05-04 22:59:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0",
    "pubsub#title": "Node fdd0fdb3-62f1-478a-8146-47b9a1082ac0"
}

2023-05-04 22:59:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 22:59:28 | [Mutex] waiting for: [received:nodes:921787a0-f33b-4f9c-8ad2-d976e8457512:localhost]

2023-05-04 22:59:28 | [Mutex] waiting for: [received:nodes:921787a0-f33b-4f9c-8ad2-d976e8457512:localhost]

2023-05-04 22:59:28 | [Mutex] received everything.

2023-05-04 22:59:28 | [Mutex] isItemNotified: received:node:921787a0-f33b-4f9c-8ad2-d976e8457512:localhost:node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0:Node fdd0fdb3-62f1-478a-8146-47b9a1082ac0 :: true

deleteNodes 1.015s
2023-05-04 22:59:33 |

2023-05-04 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:33 | ------------------------------------

2023-05-04 22:59:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0"
}

2023-05-04 22:59:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 22:59:34 | [Mutex] waiting for: [received:nodes:9f7b47e5-5eb2-432c-b60c-936ebe7fd7c4:localhost]

2023-05-04 22:59:34 | [Mutex] waiting for: [received:nodes:9f7b47e5-5eb2-432c-b60c-936ebe7fd7c4:localhost]

2023-05-04 22:59:34 | [Mutex] waiting for: [received:nodes:9f7b47e5-5eb2-432c-b60c-936ebe7fd7c4:localhost]

2023-05-04 22:59:34 | [Mutex] received everything.

2023-05-04 22:59:34 | [Mutex] isItemNotified: received:node:9f7b47e5-5eb2-432c-b60c-936ebe7fd7c4:localhost:node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0:Node fdd0fdb3-62f1-478a-8146-47b9a1082ac0 :: false

deleteSubnodes 1.020s
2023-05-04 22:59:32 |

2023-05-04 22:59:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:32 | ------------------------------------

2023-05-04 22:59:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae"
}

2023-05-04 22:59:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-04 22:59:33 | [Mutex] waiting for: [received:nodes:f80253e5-93c7-473c-9971-f3e720f751e0:localhost]

2023-05-04 22:59:33 | [Mutex] waiting for: [received:nodes:f80253e5-93c7-473c-9971-f3e720f751e0:localhost]

2023-05-04 22:59:33 | [Mutex] waiting for: [received:nodes:f80253e5-93c7-473c-9971-f3e720f751e0:localhost]

2023-05-04 22:59:33 | [Mutex] waiting for: [received:nodes:f80253e5-93c7-473c-9971-f3e720f751e0:localhost]

2023-05-04 22:59:33 | [Mutex] received everything.

2023-05-04 22:59:33 | [Mutex] isItemNotified: received:node:f80253e5-93c7-473c-9971-f3e720f751e0:localhost:node-2bae949f-4d94-46af-98d8-69cb711867ae:Node 2bae949f-4d94-46af-98d8-69cb711867ae :: false

2023-05-04 22:59:33 | [Mutex] waiting for: [received:nodes:1d634f46-fbaa-4130-9bf3-e9d66baa639a:localhost]

2023-05-04 22:59:33 | [Mutex] received everything.

2023-05-04 22:59:33 | [Mutex] isItemNotified: received:node:1d634f46-fbaa-4130-9bf3-e9d66baa639a:localhost:node-2bae949f-4d94-46af-98d8-69cb711867ae:Node 2bae949f-4d94-46af-98d8-69cb711867ae :: false

publishItemsToNodes 0.034s
2023-05-04 22:59:30 |

2023-05-04 22:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:30 | ------------------------------------

2023-05-04 22:59:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "entry": "<test>item-a40bea32-708b-4da1-94cc-a75451c75269</test>",
    "item-id": "item-a40bea32-708b-4da1-94cc-a75451c75269"
}

2023-05-04 22:59:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a40bea32-708b-4da1-94cc-a75451c75269"
}

2023-05-04 22:59:30 | [Mutex] waiting for: [published:item:notifieditem-a40bea32-708b-4da1-94cc-a75451c75269:admin@test-domain.com]

2023-05-04 22:59:30 | [Mutex] received everything.

2023-05-04 22:59:30 | [Mutex] isItemNotified: published:item:notifieditem-a40bea32-708b-4da1-94cc-a75451c75269:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-05-04 22:59:31 |

2023-05-04 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:31 | ------------------------------------

2023-05-04 22:59:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "item-id": "item-a40bea32-708b-4da1-94cc-a75451c75269"
}

2023-05-04 22:59:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a40bea32-708b-4da1-94cc-a75451c75269"
}

2023-05-04 22:59:31 | [Mutex] received everything.

2023-05-04 22:59:31 | [Mutex] isItemNotified: retracted:item:notifieditem-a40bea32-708b-4da1-94cc-a75451c75269:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2023-05-04 22:59:30 |

2023-05-04 22:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:30 | ------------------------------------

2023-05-04 22:59:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "item-id": "item-a40bea32-708b-4da1-94cc-a75451c75269"
}

2023-05-04 22:59:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "item-id": "item-a40bea32-708b-4da1-94cc-a75451c75269",
    "item": [
        "<item id=\"item-a40bea32-708b-4da1-94cc-a75451c75269\"><test>item-a40bea32-708b-4da1-94cc-a75451c75269</test></item>"
    ]
}

2023-05-04 22:59:31 | [Mutex] notify: [retrieved:item:item-a40bea32-708b-4da1-94cc-a75451c75269:payload-matches:true:localhost]

2023-05-04 22:59:31 | [Mutex] received everything.

2023-05-04 22:59:31 | [Mutex] isItemNotified: retrieved:item:item-a40bea32-708b-4da1-94cc-a75451c75269:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-05-04 22:59:31 |

2023-05-04 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:31 | ------------------------------------

2023-05-04 22:59:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-05-04 22:59:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fdd0fdb3-62f1-478a-8146-47b9a1082ac0",
        "node-2bae949f-4d94-46af-98d8-69cb711867ae"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-05-04 22:59:31 |

2023-05-04 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:31 | ------------------------------------

2023-05-04 22:59:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2bae949f-4d94-46af-98d8-69cb711867ae)"
}

2023-05-04 22:59:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-05-04 22:59:29 |

2023-05-04 22:59:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:29 | ------------------------------------

2023-05-04 22:59:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-04 22:59:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-05-04 22:59:31 |

2023-05-04 22:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-04 22:59:31 | ------------------------------------

2023-05-04 22:59:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2bae949f-4d94-46af-98d8-69cb711867ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-04 22:59:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}