Generated by TestNG with ReportNG at 22:20 PDT on Thursday 08 September 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.694s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2022-09-08 22:35:28 |

2022-09-08 22:35:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:28 | ------------------------------------

2022-09-08 22:35:28 | [Mutex] waiting for: [configured:node:node-7684b137-9424-4a28-b413-2dfa348bea32:node-e8bef06f-c4b0-4f69-af80-f417c7cb008d]

2022-09-08 22:35:28 | [Mutex] received everything.

2022-09-08 22:35:28 | [Mutex] isItemNotified: configured:node:node-7684b137-9424-4a28-b413-2dfa348bea32:node-e8bef06f-c4b0-4f69-af80-f417c7cb008d :: true

2022-09-08 22:35:29 | [Mutex] waiting for: [received:nodes:e614a98c-eb8d-49a4-b53a-e733366f4bd8:localhost]

2022-09-08 22:35:29 | [Mutex] received everything.

2022-09-08 22:35:29 | [Mutex] isItemNotified: received:node:e614a98c-eb8d-49a4-b53a-e733366f4bd8:localhost:node-7684b137-9424-4a28-b413-2dfa348bea32:Node 7684b137-9424-4a28-b413-2dfa348bea32 :: true

2022-09-08 22:35:29 | [Mutex] waiting for: [received:nodes:306eeeff-4c70-4893-9b75-733efbe774af:localhost]

2022-09-08 22:35:29 | [Mutex] received everything.

2022-09-08 22:35:29 | [Mutex] isItemNotified: received:node:306eeeff-4c70-4893-9b75-733efbe774af:localhost:node-7684b137-9424-4a28-b413-2dfa348bea32:Node 7684b137-9424-4a28-b413-2dfa348bea32 :: false

createNodes 1.643s
2022-09-08 22:35:25 |

2022-09-08 22:35:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:25 | ------------------------------------

2022-09-08 22:35: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-7684b137-9424-4a28-b413-2dfa348bea32",
    "pubsub#title": "Node 7684b137-9424-4a28-b413-2dfa348bea32"
}

2022-09-08 22:35:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-08 22:35:27 | [Mutex] waiting for: [received:nodes:a74612f2-f712-4106-bb93-396d7310d7d2:localhost]

2022-09-08 22:35:27 | [Mutex] waiting for: [received:nodes:a74612f2-f712-4106-bb93-396d7310d7d2:localhost]

2022-09-08 22:35:27 | [Mutex] received everything.

2022-09-08 22:35:27 | [Mutex] isItemNotified: received:node:a74612f2-f712-4106-bb93-396d7310d7d2:localhost:node-7684b137-9424-4a28-b413-2dfa348bea32:Node 7684b137-9424-4a28-b413-2dfa348bea32 :: true

createSubnodes 1.033s
2022-09-08 22:35:27 |

2022-09-08 22:35:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:27 | ------------------------------------

2022-09-08 22:35: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-e8bef06f-c4b0-4f69-af80-f417c7cb008d",
    "pubsub#title": "Node e8bef06f-c4b0-4f69-af80-f417c7cb008d"
}

2022-09-08 22:35:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-08 22:35:28 | [Mutex] waiting for: [received:nodes:710d150d-42c6-4d63-a312-fc0effc3710a:localhost]

2022-09-08 22:35:28 | [Mutex] received everything.

2022-09-08 22:35:28 | [Mutex] isItemNotified: received:node:710d150d-42c6-4d63-a312-fc0effc3710a:localhost:node-e8bef06f-c4b0-4f69-af80-f417c7cb008d:Node e8bef06f-c4b0-4f69-af80-f417c7cb008d :: true

deleteNodes 1.021s
2022-09-08 22:35:33 |

2022-09-08 22:35:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:33 | ------------------------------------

2022-09-08 22:35:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e8bef06f-c4b0-4f69-af80-f417c7cb008d"
}

2022-09-08 22:35:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-08 22:35:34 | [Mutex] waiting for: [received:nodes:5050bc71-a60e-46e6-b58e-e637fc021d66:localhost]

2022-09-08 22:35:34 | [Mutex] waiting for: [received:nodes:5050bc71-a60e-46e6-b58e-e637fc021d66:localhost]

2022-09-08 22:35:34 | [Mutex] waiting for: [received:nodes:5050bc71-a60e-46e6-b58e-e637fc021d66:localhost]

2022-09-08 22:35:34 | [Mutex] received everything.

2022-09-08 22:35:34 | [Mutex] isItemNotified: received:node:5050bc71-a60e-46e6-b58e-e637fc021d66:localhost:node-e8bef06f-c4b0-4f69-af80-f417c7cb008d:Node e8bef06f-c4b0-4f69-af80-f417c7cb008d :: false

deleteSubnodes 1.032s
2022-09-08 22:35:32 |

2022-09-08 22:35:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:32 | ------------------------------------

2022-09-08 22:35:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32"
}

2022-09-08 22:35:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-08 22:35:33 | [Mutex] waiting for: [received:nodes:e779ef1a-43cf-4a97-b2e6-d1b3e96a50ab:localhost]

2022-09-08 22:35:33 | [Mutex] waiting for: [received:nodes:e779ef1a-43cf-4a97-b2e6-d1b3e96a50ab:localhost]

2022-09-08 22:35:33 | [Mutex] received everything.

2022-09-08 22:35:33 | [Mutex] isItemNotified: received:node:e779ef1a-43cf-4a97-b2e6-d1b3e96a50ab:localhost:node-7684b137-9424-4a28-b413-2dfa348bea32:Node 7684b137-9424-4a28-b413-2dfa348bea32 :: false

2022-09-08 22:35:33 | [Mutex] waiting for: [received:nodes:5681009b-32bc-4801-aab7-9dba337fe3a3:localhost]

2022-09-08 22:35:33 | [Mutex] received everything.

2022-09-08 22:35:33 | [Mutex] isItemNotified: received:node:5681009b-32bc-4801-aab7-9dba337fe3a3:localhost:node-7684b137-9424-4a28-b413-2dfa348bea32:Node 7684b137-9424-4a28-b413-2dfa348bea32 :: false

publishItemsToNodes 0.057s
2022-09-08 22:35:30 |

2022-09-08 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:30 | ------------------------------------

2022-09-08 22:35:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32",
    "entry": "<test>item-e13226b6-babe-42cb-9541-548c5d205cd4</test>",
    "item-id": "item-e13226b6-babe-42cb-9541-548c5d205cd4"
}

2022-09-08 22:35:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e13226b6-babe-42cb-9541-548c5d205cd4"
}

2022-09-08 22:35:30 | [Mutex] waiting for: [published:item:notifieditem-e13226b6-babe-42cb-9541-548c5d205cd4:admin@test-domain.com]

2022-09-08 22:35:30 | [Mutex] received everything.

2022-09-08 22:35:30 | [Mutex] isItemNotified: published:item:notifieditem-e13226b6-babe-42cb-9541-548c5d205cd4:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-09-08 22:35:30 |

2022-09-08 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:30 | ------------------------------------

2022-09-08 22:35:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32",
    "item-id": "item-e13226b6-babe-42cb-9541-548c5d205cd4"
}

2022-09-08 22:35:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e13226b6-babe-42cb-9541-548c5d205cd4"
}

2022-09-08 22:35:30 | [Mutex] waiting for: [retracted:item:notifieditem-e13226b6-babe-42cb-9541-548c5d205cd4:admin@test-domain.com]

2022-09-08 22:35:30 | [Mutex] received everything.

2022-09-08 22:35:30 | [Mutex] isItemNotified: retracted:item:notifieditem-e13226b6-babe-42cb-9541-548c5d205cd4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-09-08 22:35:30 |

2022-09-08 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:30 | ------------------------------------

2022-09-08 22:35:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32",
    "item-id": "item-e13226b6-babe-42cb-9541-548c5d205cd4"
}

2022-09-08 22:35:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32",
    "item-id": "item-e13226b6-babe-42cb-9541-548c5d205cd4",
    "item": [
        "<item id=\"item-e13226b6-babe-42cb-9541-548c5d205cd4\"><test>item-e13226b6-babe-42cb-9541-548c5d205cd4</test></item>"
    ]
}

2022-09-08 22:35:30 | [Mutex] notify: [retrieved:item:item-e13226b6-babe-42cb-9541-548c5d205cd4:payload-matches:true:localhost]

2022-09-08 22:35:30 | [Mutex] received everything.

2022-09-08 22:35:30 | [Mutex] isItemNotified: retrieved:item:item-e13226b6-babe-42cb-9541-548c5d205cd4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-08 22:35:30 |

2022-09-08 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:30 | ------------------------------------

2022-09-08 22:35:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-08 22:35:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e8bef06f-c4b0-4f69-af80-f417c7cb008d",
        "test",
        "node-7684b137-9424-4a28-b413-2dfa348bea32"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-08 22:35:30 |

2022-09-08 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:30 | ------------------------------------

2022-09-08 22:35:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7684b137-9424-4a28-b413-2dfa348bea32)"
}

2022-09-08 22:35:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-09-08 22:35:29 |

2022-09-08 22:35:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:29 | ------------------------------------

2022-09-08 22:35:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-08 22:35:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-09-08 22:35:30 |

2022-09-08 22:35:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-08 22:35:30 | ------------------------------------

2022-09-08 22:35:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7684b137-9424-4a28-b413-2dfa348bea32",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-08 22:35:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}