Generated by TestNG with ReportNG at 04:00 PST on Monday 26 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.616s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2022-12-26 04:15:27 |

2022-12-26 04:15:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:27 | ------------------------------------

2022-12-26 04:15:27 | [Mutex] waiting for: [configured:node:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:node-70fe3965-8c31-4231-982d-cee2e15c84e6]

2022-12-26 04:15:27 | [Mutex] received everything.

2022-12-26 04:15:27 | [Mutex] isItemNotified: configured:node:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:node-70fe3965-8c31-4231-982d-cee2e15c84e6 :: true

2022-12-26 04:15:28 | [Mutex] waiting for: [received:nodes:75a84ccc-1297-41d9-be1c-026cff590299:localhost]

2022-12-26 04:15:28 | [Mutex] received everything.

2022-12-26 04:15:28 | [Mutex] isItemNotified: received:node:75a84ccc-1297-41d9-be1c-026cff590299:localhost:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:Node 86c1a6dc-248d-4611-b83c-f4e8c0740309 :: true

2022-12-26 04:15:28 | [Mutex] waiting for: [received:nodes:53a81187-014d-4413-ac56-4104abfefef8:localhost]

2022-12-26 04:15:28 | [Mutex] waiting for: [received:nodes:53a81187-014d-4413-ac56-4104abfefef8:localhost]

2022-12-26 04:15:28 | [Mutex] received everything.

2022-12-26 04:15:28 | [Mutex] isItemNotified: received:node:53a81187-014d-4413-ac56-4104abfefef8:localhost:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:Node 86c1a6dc-248d-4611-b83c-f4e8c0740309 :: false

createNodes 1.516s
2022-12-26 04:15:25 |

2022-12-26 04:15:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:25 | ------------------------------------

2022-12-26 04:15:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "pubsub#title": "Node 86c1a6dc-248d-4611-b83c-f4e8c0740309"
}

2022-12-26 04:15:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:15:26 | [Mutex] waiting for: [received:nodes:374507ec-7b54-45e9-a0ce-eb6e45d5b6ca:localhost]

2022-12-26 04:15:26 | [Mutex] waiting for: [received:nodes:374507ec-7b54-45e9-a0ce-eb6e45d5b6ca:localhost]

2022-12-26 04:15:26 | [Mutex] waiting for: [received:nodes:374507ec-7b54-45e9-a0ce-eb6e45d5b6ca:localhost]

2022-12-26 04:15:26 | [Mutex] waiting for: [received:nodes:374507ec-7b54-45e9-a0ce-eb6e45d5b6ca:localhost]

2022-12-26 04:15:26 | [Mutex] received everything.

2022-12-26 04:15:26 | [Mutex] isItemNotified: received:node:374507ec-7b54-45e9-a0ce-eb6e45d5b6ca:localhost:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:Node 86c1a6dc-248d-4611-b83c-f4e8c0740309 :: true

createSubnodes 1.025s
2022-12-26 04:15:26 |

2022-12-26 04:15:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:26 | ------------------------------------

2022-12-26 04:15:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-70fe3965-8c31-4231-982d-cee2e15c84e6",
    "pubsub#title": "Node 70fe3965-8c31-4231-982d-cee2e15c84e6"
}

2022-12-26 04:15:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:15:27 | [Mutex] waiting for: [received:nodes:c1327100-f375-4b3b-9dde-603ffd78b552:localhost]

2022-12-26 04:15:27 | [Mutex] waiting for: [received:nodes:c1327100-f375-4b3b-9dde-603ffd78b552:localhost]

2022-12-26 04:15:27 | [Mutex] waiting for: [received:nodes:c1327100-f375-4b3b-9dde-603ffd78b552:localhost]

2022-12-26 04:15:27 | [Mutex] waiting for: [received:nodes:c1327100-f375-4b3b-9dde-603ffd78b552:localhost]

2022-12-26 04:15:27 | [Mutex] received everything.

2022-12-26 04:15:27 | [Mutex] isItemNotified: received:node:c1327100-f375-4b3b-9dde-603ffd78b552:localhost:node-70fe3965-8c31-4231-982d-cee2e15c84e6:Node 70fe3965-8c31-4231-982d-cee2e15c84e6 :: true

deleteNodes 1.024s
2022-12-26 04:15:32 |

2022-12-26 04:15:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:32 | ------------------------------------

2022-12-26 04:15:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-70fe3965-8c31-4231-982d-cee2e15c84e6"
}

2022-12-26 04:15:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:15:33 | [Mutex] waiting for: [received:nodes:c725f775-a8ef-4716-b6a0-1892aa5aa1c8:localhost]

2022-12-26 04:15:33 | [Mutex] waiting for: [received:nodes:c725f775-a8ef-4716-b6a0-1892aa5aa1c8:localhost]

2022-12-26 04:15:33 | [Mutex] waiting for: [received:nodes:c725f775-a8ef-4716-b6a0-1892aa5aa1c8:localhost]

2022-12-26 04:15:33 | [Mutex] received everything.

2022-12-26 04:15:33 | [Mutex] isItemNotified: received:node:c725f775-a8ef-4716-b6a0-1892aa5aa1c8:localhost:node-70fe3965-8c31-4231-982d-cee2e15c84e6:Node 70fe3965-8c31-4231-982d-cee2e15c84e6 :: false

deleteSubnodes 1.025s
2022-12-26 04:15:31 |

2022-12-26 04:15:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:31 | ------------------------------------

2022-12-26 04:15:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309"
}

2022-12-26 04:15:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:15:32 | [Mutex] waiting for: [received:nodes:b2542ada-a137-4272-a91f-36b3dd6d2386:localhost]

2022-12-26 04:15:32 | [Mutex] waiting for: [received:nodes:b2542ada-a137-4272-a91f-36b3dd6d2386:localhost]

2022-12-26 04:15:32 | [Mutex] received everything.

2022-12-26 04:15:32 | [Mutex] isItemNotified: received:node:b2542ada-a137-4272-a91f-36b3dd6d2386:localhost:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:Node 86c1a6dc-248d-4611-b83c-f4e8c0740309 :: false

2022-12-26 04:15:32 | [Mutex] waiting for: [received:nodes:c396e430-ef19-4427-aad5-afcf626d5cc3:localhost]

2022-12-26 04:15:32 | [Mutex] received everything.

2022-12-26 04:15:32 | [Mutex] isItemNotified: received:node:c396e430-ef19-4427-aad5-afcf626d5cc3:localhost:node-86c1a6dc-248d-4611-b83c-f4e8c0740309:Node 86c1a6dc-248d-4611-b83c-f4e8c0740309 :: false

publishItemsToNodes 0.045s
2022-12-26 04:15:29 |

2022-12-26 04:15:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:29 | ------------------------------------

2022-12-26 04:15:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "entry": "<test>item-b31ce027-54ac-463e-ae1a-0a4740732728</test>",
    "item-id": "item-b31ce027-54ac-463e-ae1a-0a4740732728"
}

2022-12-26 04:15:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b31ce027-54ac-463e-ae1a-0a4740732728"
}

2022-12-26 04:15:29 | [Mutex] waiting for: [published:item:notifieditem-b31ce027-54ac-463e-ae1a-0a4740732728:admin@test-domain.com]

2022-12-26 04:15:29 | [Mutex] received everything.

2022-12-26 04:15:29 | [Mutex] isItemNotified: published:item:notifieditem-b31ce027-54ac-463e-ae1a-0a4740732728:admin@test-domain.com :: true

retractItemsFromNodes 0.085s
2022-12-26 04:15:30 |

2022-12-26 04:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:30 | ------------------------------------

2022-12-26 04:15:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "item-id": "item-b31ce027-54ac-463e-ae1a-0a4740732728"
}

2022-12-26 04:15:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b31ce027-54ac-463e-ae1a-0a4740732728"
}

2022-12-26 04:15:30 | [Mutex] waiting for: [retracted:item:notifieditem-b31ce027-54ac-463e-ae1a-0a4740732728:admin@test-domain.com]

2022-12-26 04:15:30 | [Mutex] received everything.

2022-12-26 04:15:30 | [Mutex] isItemNotified: retracted:item:notifieditem-b31ce027-54ac-463e-ae1a-0a4740732728:admin@test-domain.com :: true

retrieveItemsFromNodes 0.087s
2022-12-26 04:15:29 |

2022-12-26 04:15:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:29 | ------------------------------------

2022-12-26 04:15:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "item-id": "item-b31ce027-54ac-463e-ae1a-0a4740732728"
}

2022-12-26 04:15:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "item-id": "item-b31ce027-54ac-463e-ae1a-0a4740732728",
    "item": [
        "<item id=\"item-b31ce027-54ac-463e-ae1a-0a4740732728\"><test>item-b31ce027-54ac-463e-ae1a-0a4740732728</test></item>"
    ]
}

2022-12-26 04:15:30 | [Mutex] notify: [retrieved:item:item-b31ce027-54ac-463e-ae1a-0a4740732728:payload-matches:true:localhost]

2022-12-26 04:15:30 | [Mutex] received everything.

2022-12-26 04:15:30 | [Mutex] isItemNotified: retrieved:item:item-b31ce027-54ac-463e-ae1a-0a4740732728:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-26 04:15:30 |

2022-12-26 04:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:30 | ------------------------------------

2022-12-26 04:15:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-26 04:15:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
        "node-70fe3965-8c31-4231-982d-cee2e15c84e6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-26 04:15:30 |

2022-12-26 04:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:30 | ------------------------------------

2022-12-26 04:15:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-86c1a6dc-248d-4611-b83c-f4e8c0740309)"
}

2022-12-26 04:15:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-12-26 04:15:28 |

2022-12-26 04:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:28 | ------------------------------------

2022-12-26 04:15:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-26 04:15:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.073s
2022-12-26 04:15:30 |

2022-12-26 04:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:15:30 | ------------------------------------

2022-12-26 04:15:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-86c1a6dc-248d-4611-b83c-f4e8c0740309",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-26 04:15:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}