Generated by TestNG with ReportNG at 07:45 PST on Friday 30 December 2022
root@7c41cec37518 / 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.536s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-12-30 07:59:55 |

2022-12-30 07:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:55 | ------------------------------------

2022-12-30 07:59:55 | [Mutex] waiting for: [configured:node:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3]

2022-12-30 07:59:55 | [Mutex] received everything.

2022-12-30 07:59:55 | [Mutex] isItemNotified: configured:node:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3 :: true

2022-12-30 07:59:56 | [Mutex] waiting for: [received:nodes:d9afd197-a836-4745-9c42-01ca6b452a08:localhost]

2022-12-30 07:59:56 | [Mutex] waiting for: [received:nodes:d9afd197-a836-4745-9c42-01ca6b452a08:localhost]

2022-12-30 07:59:56 | [Mutex] received everything.

2022-12-30 07:59:56 | [Mutex] isItemNotified: received:node:d9afd197-a836-4745-9c42-01ca6b452a08:localhost:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:Node 397018f8-cfe3-4a85-9382-a85d4a0d5dcd :: true

2022-12-30 07:59:56 | [Mutex] waiting for: [received:nodes:5e5e1ac5-936c-47eb-94b2-015c1472cab8:localhost]

2022-12-30 07:59:56 | [Mutex] waiting for: [received:nodes:5e5e1ac5-936c-47eb-94b2-015c1472cab8:localhost]

2022-12-30 07:59:56 | [Mutex] waiting for: [received:nodes:5e5e1ac5-936c-47eb-94b2-015c1472cab8:localhost]

2022-12-30 07:59:56 | [Mutex] waiting for: [received:nodes:5e5e1ac5-936c-47eb-94b2-015c1472cab8:localhost]

2022-12-30 07:59:56 | [Mutex] received everything.

2022-12-30 07:59:56 | [Mutex] isItemNotified: received:node:5e5e1ac5-936c-47eb-94b2-015c1472cab8:localhost:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:Node 397018f8-cfe3-4a85-9382-a85d4a0d5dcd :: false

createNodes 1.522s
2022-12-30 07:59:53 |

2022-12-30 07:59:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:53 | ------------------------------------

2022-12-30 07:59:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "pubsub#title": "Node 397018f8-cfe3-4a85-9382-a85d4a0d5dcd"
}

2022-12-30 07:59:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 07:59:54 | [Mutex] waiting for: [received:nodes:9d9c5e92-a6cc-4af0-be35-84de9cfd6b4f:localhost]

2022-12-30 07:59:54 | [Mutex] waiting for: [received:nodes:9d9c5e92-a6cc-4af0-be35-84de9cfd6b4f:localhost]

2022-12-30 07:59:54 | [Mutex] waiting for: [received:nodes:9d9c5e92-a6cc-4af0-be35-84de9cfd6b4f:localhost]

2022-12-30 07:59:54 | [Mutex] received everything.

2022-12-30 07:59:54 | [Mutex] isItemNotified: received:node:9d9c5e92-a6cc-4af0-be35-84de9cfd6b4f:localhost:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:Node 397018f8-cfe3-4a85-9382-a85d4a0d5dcd :: true

createSubnodes 1.027s
2022-12-30 07:59:54 |

2022-12-30 07:59:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:54 | ------------------------------------

2022-12-30 07:59:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3",
    "pubsub#title": "Node 793da4b8-45c3-4cbb-80a9-3e8a6204c7f3"
}

2022-12-30 07:59:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 07:59:55 | [Mutex] waiting for: [received:nodes:bf33558a-db50-42a9-9662-a62c48a7a768:localhost]

2022-12-30 07:59:55 | [Mutex] waiting for: [received:nodes:bf33558a-db50-42a9-9662-a62c48a7a768:localhost]

2022-12-30 07:59:55 | [Mutex] waiting for: [received:nodes:bf33558a-db50-42a9-9662-a62c48a7a768:localhost]

2022-12-30 07:59:55 | [Mutex] waiting for: [received:nodes:bf33558a-db50-42a9-9662-a62c48a7a768:localhost]

2022-12-30 07:59:55 | [Mutex] waiting for: [received:nodes:bf33558a-db50-42a9-9662-a62c48a7a768:localhost]

2022-12-30 07:59:55 | [Mutex] received everything.

2022-12-30 07:59:55 | [Mutex] isItemNotified: received:node:bf33558a-db50-42a9-9662-a62c48a7a768:localhost:node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3:Node 793da4b8-45c3-4cbb-80a9-3e8a6204c7f3 :: true

deleteNodes 1.023s
2022-12-30 08:00:00 |

2022-12-30 08:00:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:00:00 | ------------------------------------

2022-12-30 08:00:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3"
}

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

2022-12-30 08:00:01 | [Mutex] waiting for: [received:nodes:afeb5130-6f5d-460c-b0fc-01c972935a04:localhost]

2022-12-30 08:00:01 | [Mutex] waiting for: [received:nodes:afeb5130-6f5d-460c-b0fc-01c972935a04:localhost]

2022-12-30 08:00:01 | [Mutex] waiting for: [received:nodes:afeb5130-6f5d-460c-b0fc-01c972935a04:localhost]

2022-12-30 08:00:01 | [Mutex] received everything.

2022-12-30 08:00:01 | [Mutex] isItemNotified: received:node:afeb5130-6f5d-460c-b0fc-01c972935a04:localhost:node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3:Node 793da4b8-45c3-4cbb-80a9-3e8a6204c7f3 :: false

deleteSubnodes 1.045s
2022-12-30 07:59:59 |

2022-12-30 07:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:59 | ------------------------------------

2022-12-30 07:59:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd"
}

2022-12-30 07:59:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:00:00 | [Mutex] waiting for: [received:nodes:86cf8878-4e04-46d1-a7e1-9bafcdf2abfb:localhost]

2022-12-30 08:00:00 | [Mutex] waiting for: [received:nodes:86cf8878-4e04-46d1-a7e1-9bafcdf2abfb:localhost]

2022-12-30 08:00:00 | [Mutex] waiting for: [received:nodes:86cf8878-4e04-46d1-a7e1-9bafcdf2abfb:localhost]

2022-12-30 08:00:00 | [Mutex] received everything.

2022-12-30 08:00:00 | [Mutex] isItemNotified: received:node:86cf8878-4e04-46d1-a7e1-9bafcdf2abfb:localhost:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:Node 397018f8-cfe3-4a85-9382-a85d4a0d5dcd :: false

2022-12-30 08:00:00 | [Mutex] waiting for: [received:nodes:d934a1f2-8d6a-4725-8b73-7c36c93d272b:localhost]

2022-12-30 08:00:00 | [Mutex] received everything.

2022-12-30 08:00:00 | [Mutex] isItemNotified: received:node:d934a1f2-8d6a-4725-8b73-7c36c93d272b:localhost:node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd:Node 397018f8-cfe3-4a85-9382-a85d4a0d5dcd :: false

publishItemsToNodes 0.094s
2022-12-30 07:59:57 |

2022-12-30 07:59:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:57 | ------------------------------------

2022-12-30 07:59:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "entry": "<test>item-6b05ebb3-1171-4981-bcf6-880d8b6694b6</test>",
    "item-id": "item-6b05ebb3-1171-4981-bcf6-880d8b6694b6"
}

2022-12-30 07:59:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6b05ebb3-1171-4981-bcf6-880d8b6694b6"
}

2022-12-30 07:59:57 | [Mutex] waiting for: [published:item:notifieditem-6b05ebb3-1171-4981-bcf6-880d8b6694b6:admin@test-domain.com]

2022-12-30 07:59:58 | [Mutex] received everything.

2022-12-30 07:59:58 | [Mutex] isItemNotified: published:item:notifieditem-6b05ebb3-1171-4981-bcf6-880d8b6694b6:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-12-30 07:59:58 |

2022-12-30 07:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:58 | ------------------------------------

2022-12-30 07:59:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "item-id": "item-6b05ebb3-1171-4981-bcf6-880d8b6694b6"
}

2022-12-30 07:59:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6b05ebb3-1171-4981-bcf6-880d8b6694b6"
}

2022-12-30 07:59:58 | [Mutex] received everything.

2022-12-30 07:59:58 | [Mutex] isItemNotified: retracted:item:notifieditem-6b05ebb3-1171-4981-bcf6-880d8b6694b6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2022-12-30 07:59:58 |

2022-12-30 07:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:58 | ------------------------------------

2022-12-30 07:59:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "item-id": "item-6b05ebb3-1171-4981-bcf6-880d8b6694b6"
}

2022-12-30 07:59:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "item-id": "item-6b05ebb3-1171-4981-bcf6-880d8b6694b6",
    "item": [
        "<item id=\"item-6b05ebb3-1171-4981-bcf6-880d8b6694b6\"><test>item-6b05ebb3-1171-4981-bcf6-880d8b6694b6</test></item>"
    ]
}

2022-12-30 07:59:58 | [Mutex] notify: [retrieved:item:item-6b05ebb3-1171-4981-bcf6-880d8b6694b6:payload-matches:true:localhost]

2022-12-30 07:59:58 | [Mutex] received everything.

2022-12-30 07:59:58 | [Mutex] isItemNotified: retrieved:item:item-6b05ebb3-1171-4981-bcf6-880d8b6694b6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-12-30 07:59:58 |

2022-12-30 07:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:58 | ------------------------------------

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

2022-12-30 07:59:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
        "node-793da4b8-45c3-4cbb-80a9-3e8a6204c7f3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.046s
2022-12-30 07:59:58 |

2022-12-30 07:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:58 | ------------------------------------

2022-12-30 07:59:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd)"
}

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

subscribeNodes 1.008s
2022-12-30 07:59:56 |

2022-12-30 07:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:56 | ------------------------------------

2022-12-30 07:59:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 07:59:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-12-30 07:59:58 |

2022-12-30 07:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 07:59:58 | ------------------------------------

2022-12-30 07:59:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-397018f8-cfe3-4a85-9382-a85d4a0d5dcd",
    "jids": [
        "admin@test-domain.com"
    ]
}

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