Generated by TestNG with ReportNG at 23:13 PDT on Saturday 04 November 2023
root@8dfa9d99ff97 / 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.514s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.143s
2023-11-04 23:28:12 |

2023-11-04 23:28:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:12 | ------------------------------------

2023-11-04 23:28:12 | [Mutex] waiting for: [configured:node:node-602e7010-12f7-484a-bc54-03966e02c229:node-28b4ed09-e1c7-480c-bf44-61fc901e3c31]

2023-11-04 23:28:12 | [Mutex] received everything.

2023-11-04 23:28:12 | [Mutex] isItemNotified: configured:node:node-602e7010-12f7-484a-bc54-03966e02c229:node-28b4ed09-e1c7-480c-bf44-61fc901e3c31 :: true

2023-11-04 23:28:13 | [Mutex] waiting for: [received:nodes:ff0f561f-3117-4f2f-8a9d-f38aa772178c:localhost]

2023-11-04 23:28:13 | [Mutex] received everything.

2023-11-04 23:28:13 | [Mutex] isItemNotified: received:node:ff0f561f-3117-4f2f-8a9d-f38aa772178c:localhost:node-602e7010-12f7-484a-bc54-03966e02c229:Node 602e7010-12f7-484a-bc54-03966e02c229 :: true

2023-11-04 23:28:13 | [Mutex] waiting for: [received:nodes:08ef728f-a776-44f4-bc93-005d40e66f7d:localhost]

2023-11-04 23:28:13 | [Mutex] waiting for: [received:nodes:08ef728f-a776-44f4-bc93-005d40e66f7d:localhost]

2023-11-04 23:28:13 | [Mutex] waiting for: [received:nodes:08ef728f-a776-44f4-bc93-005d40e66f7d:localhost]

2023-11-04 23:28:13 | [Mutex] waiting for: [received:nodes:08ef728f-a776-44f4-bc93-005d40e66f7d:localhost]

2023-11-04 23:28:13 | [Mutex] received everything.

2023-11-04 23:28:13 | [Mutex] isItemNotified: received:node:08ef728f-a776-44f4-bc93-005d40e66f7d:localhost:node-602e7010-12f7-484a-bc54-03966e02c229:Node 602e7010-12f7-484a-bc54-03966e02c229 :: false

createNodes 1.497s
2023-11-04 23:28:10 |

2023-11-04 23:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:10 | ------------------------------------

2023-11-04 23:28:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "pubsub#title": "Node 602e7010-12f7-484a-bc54-03966e02c229"
}

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

2023-11-04 23:28:11 | [Mutex] waiting for: [received:nodes:63fba850-381f-42bd-924f-2168b0805600:localhost]

2023-11-04 23:28:11 | [Mutex] waiting for: [received:nodes:63fba850-381f-42bd-924f-2168b0805600:localhost]

2023-11-04 23:28:11 | [Mutex] waiting for: [received:nodes:63fba850-381f-42bd-924f-2168b0805600:localhost]

2023-11-04 23:28:11 | [Mutex] waiting for: [received:nodes:63fba850-381f-42bd-924f-2168b0805600:localhost]

2023-11-04 23:28:11 | [Mutex] received everything.

2023-11-04 23:28:11 | [Mutex] isItemNotified: received:node:63fba850-381f-42bd-924f-2168b0805600:localhost:node-602e7010-12f7-484a-bc54-03966e02c229:Node 602e7010-12f7-484a-bc54-03966e02c229 :: true

createSubnodes 1.023s
2023-11-04 23:28:11 |

2023-11-04 23:28:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:11 | ------------------------------------

2023-11-04 23:28:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-28b4ed09-e1c7-480c-bf44-61fc901e3c31",
    "pubsub#title": "Node 28b4ed09-e1c7-480c-bf44-61fc901e3c31"
}

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

2023-11-04 23:28:12 | [Mutex] waiting for: [received:nodes:30377ef2-cc62-426c-976d-963eb8218883:localhost]

2023-11-04 23:28:12 | [Mutex] waiting for: [received:nodes:30377ef2-cc62-426c-976d-963eb8218883:localhost]

2023-11-04 23:28:12 | [Mutex] waiting for: [received:nodes:30377ef2-cc62-426c-976d-963eb8218883:localhost]

2023-11-04 23:28:12 | [Mutex] waiting for: [received:nodes:30377ef2-cc62-426c-976d-963eb8218883:localhost]

2023-11-04 23:28:12 | [Mutex] waiting for: [received:nodes:30377ef2-cc62-426c-976d-963eb8218883:localhost]

2023-11-04 23:28:12 | [Mutex] received everything.

2023-11-04 23:28:12 | [Mutex] isItemNotified: received:node:30377ef2-cc62-426c-976d-963eb8218883:localhost:node-28b4ed09-e1c7-480c-bf44-61fc901e3c31:Node 28b4ed09-e1c7-480c-bf44-61fc901e3c31 :: true

deleteNodes 1.026s
2023-11-04 23:28:17 |

2023-11-04 23:28:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:17 | ------------------------------------

2023-11-04 23:28:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-28b4ed09-e1c7-480c-bf44-61fc901e3c31"
}

2023-11-04 23:28:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-04 23:28:18 | [Mutex] waiting for: [received:nodes:dd8ea760-1f23-4f37-9d8f-22ad0781fb62:localhost]

2023-11-04 23:28:18 | [Mutex] waiting for: [received:nodes:dd8ea760-1f23-4f37-9d8f-22ad0781fb62:localhost]

2023-11-04 23:28:18 | [Mutex] waiting for: [received:nodes:dd8ea760-1f23-4f37-9d8f-22ad0781fb62:localhost]

2023-11-04 23:28:18 | [Mutex] received everything.

2023-11-04 23:28:18 | [Mutex] isItemNotified: received:node:dd8ea760-1f23-4f37-9d8f-22ad0781fb62:localhost:node-28b4ed09-e1c7-480c-bf44-61fc901e3c31:Node 28b4ed09-e1c7-480c-bf44-61fc901e3c31 :: false

deleteSubnodes 1.026s
2023-11-04 23:28:16 |

2023-11-04 23:28:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:16 | ------------------------------------

2023-11-04 23:28:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229"
}

2023-11-04 23:28:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-04 23:28:17 | [Mutex] waiting for: [received:nodes:3c78711c-8b8c-4851-908e-b51885704084:localhost]

2023-11-04 23:28:17 | [Mutex] waiting for: [received:nodes:3c78711c-8b8c-4851-908e-b51885704084:localhost]

2023-11-04 23:28:17 | [Mutex] waiting for: [received:nodes:3c78711c-8b8c-4851-908e-b51885704084:localhost]

2023-11-04 23:28:17 | [Mutex] received everything.

2023-11-04 23:28:17 | [Mutex] isItemNotified: received:node:3c78711c-8b8c-4851-908e-b51885704084:localhost:node-602e7010-12f7-484a-bc54-03966e02c229:Node 602e7010-12f7-484a-bc54-03966e02c229 :: false

2023-11-04 23:28:17 | [Mutex] waiting for: [received:nodes:3a555cc2-29ae-4661-bba4-37ed2fa3f9f4:localhost]

2023-11-04 23:28:17 | [Mutex] received everything.

2023-11-04 23:28:17 | [Mutex] isItemNotified: received:node:3a555cc2-29ae-4661-bba4-37ed2fa3f9f4:localhost:node-602e7010-12f7-484a-bc54-03966e02c229:Node 602e7010-12f7-484a-bc54-03966e02c229 :: false

publishItemsToNodes 0.059s
2023-11-04 23:28:14 |

2023-11-04 23:28:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:14 | ------------------------------------

2023-11-04 23:28:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "entry": "<test>item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6</test>",
    "item-id": "item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6"
}

2023-11-04 23:28:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6"
}

2023-11-04 23:28:15 | [Mutex] waiting for: [published:item:notifieditem-0e1785f8-8aa2-4998-ac48-10d53c70d7a6:admin@test-domain.com]

2023-11-04 23:28:15 | [Mutex] received everything.

2023-11-04 23:28:15 | [Mutex] isItemNotified: published:item:notifieditem-0e1785f8-8aa2-4998-ac48-10d53c70d7a6:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-11-04 23:28:15 |

2023-11-04 23:28:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:15 | ------------------------------------

2023-11-04 23:28:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "item-id": "item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6"
}

2023-11-04 23:28:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6"
}

2023-11-04 23:28:15 | [Mutex] received everything.

2023-11-04 23:28:15 | [Mutex] isItemNotified: retracted:item:notifieditem-0e1785f8-8aa2-4998-ac48-10d53c70d7a6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2023-11-04 23:28:15 |

2023-11-04 23:28:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:15 | ------------------------------------

2023-11-04 23:28:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "item-id": "item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6"
}

2023-11-04 23:28:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "item-id": "item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6",
    "item": [
        "<item id=\"item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6\"><test>item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6</test></item>"
    ]
}

2023-11-04 23:28:15 | [Mutex] notify: [retrieved:item:item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6:payload-matches:true:localhost]

2023-11-04 23:28:15 | [Mutex] received everything.

2023-11-04 23:28:15 | [Mutex] isItemNotified: retrieved:item:item-0e1785f8-8aa2-4998-ac48-10d53c70d7a6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-11-04 23:28:15 |

2023-11-04 23:28:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:15 | ------------------------------------

2023-11-04 23:28:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-11-04 23:28:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-602e7010-12f7-484a-bc54-03966e02c229",
        "node-28b4ed09-e1c7-480c-bf44-61fc901e3c31",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-11-04 23:28:15 |

2023-11-04 23:28:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:15 | ------------------------------------

2023-11-04 23:28:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-602e7010-12f7-484a-bc54-03966e02c229)"
}

2023-11-04 23:28:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-11-04 23:28:13 |

2023-11-04 23:28:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:13 | ------------------------------------

2023-11-04 23:28:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-04 23:28:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2023-11-04 23:28:15 |

2023-11-04 23:28:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 23:28:15 | ------------------------------------

2023-11-04 23:28:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-602e7010-12f7-484a-bc54-03966e02c229",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-04 23:28:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}