Generated by TestNG with ReportNG at 07:20 PST on Monday 06 March 2023
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.580s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-03-06 07:35:02 |

2023-03-06 07:35:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:02 | ------------------------------------

2023-03-06 07:35:02 | [Mutex] waiting for: [configured:node:node-80f256a0-ff44-4490-a11a-ed0062879975:node-2c944a8d-1a39-416f-9b0e-37398b342cbb]

2023-03-06 07:35:02 | [Mutex] received everything.

2023-03-06 07:35:02 | [Mutex] isItemNotified: configured:node:node-80f256a0-ff44-4490-a11a-ed0062879975:node-2c944a8d-1a39-416f-9b0e-37398b342cbb :: true

2023-03-06 07:35:03 | [Mutex] waiting for: [received:nodes:c5ad27fe-e895-4c3b-bbe1-ce65e816bd9c:localhost]

2023-03-06 07:35:03 | [Mutex] received everything.

2023-03-06 07:35:03 | [Mutex] isItemNotified: received:node:c5ad27fe-e895-4c3b-bbe1-ce65e816bd9c:localhost:node-80f256a0-ff44-4490-a11a-ed0062879975:Node 80f256a0-ff44-4490-a11a-ed0062879975 :: true

2023-03-06 07:35:03 | [Mutex] waiting for: [received:nodes:8e191c11-3058-4927-9a3b-1f1466a6dd50:localhost]

2023-03-06 07:35:03 | [Mutex] waiting for: [received:nodes:8e191c11-3058-4927-9a3b-1f1466a6dd50:localhost]

2023-03-06 07:35:03 | [Mutex] waiting for: [received:nodes:8e191c11-3058-4927-9a3b-1f1466a6dd50:localhost]

2023-03-06 07:35:03 | [Mutex] received everything.

2023-03-06 07:35:03 | [Mutex] isItemNotified: received:node:8e191c11-3058-4927-9a3b-1f1466a6dd50:localhost:node-80f256a0-ff44-4490-a11a-ed0062879975:Node 80f256a0-ff44-4490-a11a-ed0062879975 :: false

createNodes 1.522s
2023-03-06 07:35:00 |

2023-03-06 07:35:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:00 | ------------------------------------

2023-03-06 07:35:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "pubsub#title": "Node 80f256a0-ff44-4490-a11a-ed0062879975"
}

2023-03-06 07:35:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:35:01 | [Mutex] waiting for: [received:nodes:9fbe7cda-f21a-4fd1-8154-438b6607d966:localhost]

2023-03-06 07:35:01 | [Mutex] waiting for: [received:nodes:9fbe7cda-f21a-4fd1-8154-438b6607d966:localhost]

2023-03-06 07:35:01 | [Mutex] waiting for: [received:nodes:9fbe7cda-f21a-4fd1-8154-438b6607d966:localhost]

2023-03-06 07:35:01 | [Mutex] waiting for: [received:nodes:9fbe7cda-f21a-4fd1-8154-438b6607d966:localhost]

2023-03-06 07:35:01 | [Mutex] received everything.

2023-03-06 07:35:01 | [Mutex] isItemNotified: received:node:9fbe7cda-f21a-4fd1-8154-438b6607d966:localhost:node-80f256a0-ff44-4490-a11a-ed0062879975:Node 80f256a0-ff44-4490-a11a-ed0062879975 :: true

createSubnodes 1.034s
2023-03-06 07:35:01 |

2023-03-06 07:35:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:01 | ------------------------------------

2023-03-06 07:35:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2c944a8d-1a39-416f-9b0e-37398b342cbb",
    "pubsub#title": "Node 2c944a8d-1a39-416f-9b0e-37398b342cbb"
}

2023-03-06 07:35:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:35:02 | [Mutex] waiting for: [received:nodes:b8063342-bfa6-43e6-8a35-02e8b4def663:localhost]

2023-03-06 07:35:02 | [Mutex] waiting for: [received:nodes:b8063342-bfa6-43e6-8a35-02e8b4def663:localhost]

2023-03-06 07:35:02 | [Mutex] waiting for: [received:nodes:b8063342-bfa6-43e6-8a35-02e8b4def663:localhost]

2023-03-06 07:35:02 | [Mutex] received everything.

2023-03-06 07:35:02 | [Mutex] isItemNotified: received:node:b8063342-bfa6-43e6-8a35-02e8b4def663:localhost:node-2c944a8d-1a39-416f-9b0e-37398b342cbb:Node 2c944a8d-1a39-416f-9b0e-37398b342cbb :: true

deleteNodes 1.027s
2023-03-06 07:35:07 |

2023-03-06 07:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:07 | ------------------------------------

2023-03-06 07:35:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2c944a8d-1a39-416f-9b0e-37398b342cbb"
}

2023-03-06 07:35:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:35:08 | [Mutex] waiting for: [received:nodes:21f2fe4c-a99f-4f73-ad1e-6498918f84c5:localhost]

2023-03-06 07:35:08 | [Mutex] waiting for: [received:nodes:21f2fe4c-a99f-4f73-ad1e-6498918f84c5:localhost]

2023-03-06 07:35:08 | [Mutex] waiting for: [received:nodes:21f2fe4c-a99f-4f73-ad1e-6498918f84c5:localhost]

2023-03-06 07:35:08 | [Mutex] received everything.

2023-03-06 07:35:08 | [Mutex] isItemNotified: received:node:21f2fe4c-a99f-4f73-ad1e-6498918f84c5:localhost:node-2c944a8d-1a39-416f-9b0e-37398b342cbb:Node 2c944a8d-1a39-416f-9b0e-37398b342cbb :: false

deleteSubnodes 1.023s
2023-03-06 07:35:06 |

2023-03-06 07:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:06 | ------------------------------------

2023-03-06 07:35:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975"
}

2023-03-06 07:35:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:35:07 | [Mutex] waiting for: [received:nodes:3f6569cf-8457-47d7-8d45-517e59112fb6:localhost]

2023-03-06 07:35:07 | [Mutex] waiting for: [received:nodes:3f6569cf-8457-47d7-8d45-517e59112fb6:localhost]

2023-03-06 07:35:07 | [Mutex] waiting for: [received:nodes:3f6569cf-8457-47d7-8d45-517e59112fb6:localhost]

2023-03-06 07:35:07 | [Mutex] waiting for: [received:nodes:3f6569cf-8457-47d7-8d45-517e59112fb6:localhost]

2023-03-06 07:35:07 | [Mutex] received everything.

2023-03-06 07:35:07 | [Mutex] isItemNotified: received:node:3f6569cf-8457-47d7-8d45-517e59112fb6:localhost:node-80f256a0-ff44-4490-a11a-ed0062879975:Node 80f256a0-ff44-4490-a11a-ed0062879975 :: false

2023-03-06 07:35:07 | [Mutex] waiting for: [received:nodes:bffd4e70-0471-41f1-8e15-644ee07b01ed:localhost]

2023-03-06 07:35:07 | [Mutex] received everything.

2023-03-06 07:35:07 | [Mutex] isItemNotified: received:node:bffd4e70-0471-41f1-8e15-644ee07b01ed:localhost:node-80f256a0-ff44-4490-a11a-ed0062879975:Node 80f256a0-ff44-4490-a11a-ed0062879975 :: false

publishItemsToNodes 0.051s
2023-03-06 07:35:04 |

2023-03-06 07:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:04 | ------------------------------------

2023-03-06 07:35:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "entry": "<test>item-e6c63580-4771-4111-9881-7a1ae806d5b7</test>",
    "item-id": "item-e6c63580-4771-4111-9881-7a1ae806d5b7"
}

2023-03-06 07:35:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e6c63580-4771-4111-9881-7a1ae806d5b7"
}

2023-03-06 07:35:04 | [Mutex] waiting for: [published:item:notifieditem-e6c63580-4771-4111-9881-7a1ae806d5b7:admin@test-domain.com]

2023-03-06 07:35:04 | [Mutex] received everything.

2023-03-06 07:35:04 | [Mutex] isItemNotified: published:item:notifieditem-e6c63580-4771-4111-9881-7a1ae806d5b7:admin@test-domain.com :: true

retractItemsFromNodes 0.091s
2023-03-06 07:35:05 |

2023-03-06 07:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:05 | ------------------------------------

2023-03-06 07:35:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "item-id": "item-e6c63580-4771-4111-9881-7a1ae806d5b7"
}

2023-03-06 07:35:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e6c63580-4771-4111-9881-7a1ae806d5b7"
}

2023-03-06 07:35:05 | [Mutex] received everything.

2023-03-06 07:35:05 | [Mutex] isItemNotified: retracted:item:notifieditem-e6c63580-4771-4111-9881-7a1ae806d5b7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2023-03-06 07:35:04 |

2023-03-06 07:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:04 | ------------------------------------

2023-03-06 07:35:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "item-id": "item-e6c63580-4771-4111-9881-7a1ae806d5b7"
}

2023-03-06 07:35:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "item-id": "item-e6c63580-4771-4111-9881-7a1ae806d5b7",
    "item": [
        "<item id=\"item-e6c63580-4771-4111-9881-7a1ae806d5b7\"><test>item-e6c63580-4771-4111-9881-7a1ae806d5b7</test></item>"
    ]
}

2023-03-06 07:35:05 | [Mutex] notify: [retrieved:item:item-e6c63580-4771-4111-9881-7a1ae806d5b7:payload-matches:true:localhost]

2023-03-06 07:35:05 | [Mutex] received everything.

2023-03-06 07:35:05 | [Mutex] isItemNotified: retrieved:item:item-e6c63580-4771-4111-9881-7a1ae806d5b7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.074s
2023-03-06 07:35:05 |

2023-03-06 07:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:05 | ------------------------------------

2023-03-06 07:35:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-06 07:35:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-80f256a0-ff44-4490-a11a-ed0062879975",
        "node-2c944a8d-1a39-416f-9b0e-37398b342cbb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-06 07:35:05 |

2023-03-06 07:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:05 | ------------------------------------

2023-03-06 07:35:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-80f256a0-ff44-4490-a11a-ed0062879975)"
}

2023-03-06 07:35:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-03-06 07:35:03 |

2023-03-06 07:35:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:03 | ------------------------------------

2023-03-06 07:35:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 07:35:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-03-06 07:35:05 |

2023-03-06 07:35:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:35:05 | ------------------------------------

2023-03-06 07:35:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-80f256a0-ff44-4490-a11a-ed0062879975",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 07:35:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}