Generated by TestNG with ReportNG at 22:46 PDT on Tuesday 14 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.787s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2023-03-14 23:01:21 |

2023-03-14 23:01:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:21 | ------------------------------------

2023-03-14 23:01:21 | [Mutex] waiting for: [configured:node:node-60ed864a-5f06-4355-bbb9-4d075e20c893:node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6]

2023-03-14 23:01:21 | [Mutex] received everything.

2023-03-14 23:01:21 | [Mutex] isItemNotified: configured:node:node-60ed864a-5f06-4355-bbb9-4d075e20c893:node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6 :: true

2023-03-14 23:01:22 | [Mutex] waiting for: [received:nodes:99e94b53-b008-4c56-95aa-d225ec76441a:localhost]

2023-03-14 23:01:22 | [Mutex] received everything.

2023-03-14 23:01:22 | [Mutex] isItemNotified: received:node:99e94b53-b008-4c56-95aa-d225ec76441a:localhost:node-60ed864a-5f06-4355-bbb9-4d075e20c893:Node 60ed864a-5f06-4355-bbb9-4d075e20c893 :: true

2023-03-14 23:01:22 | [Mutex] waiting for: [received:nodes:c5342734-2a4b-460b-bd04-4dff6e7e70c1:localhost]

2023-03-14 23:01:22 | [Mutex] waiting for: [received:nodes:c5342734-2a4b-460b-bd04-4dff6e7e70c1:localhost]

2023-03-14 23:01:22 | [Mutex] waiting for: [received:nodes:c5342734-2a4b-460b-bd04-4dff6e7e70c1:localhost]

2023-03-14 23:01:22 | [Mutex] received everything.

2023-03-14 23:01:22 | [Mutex] isItemNotified: received:node:c5342734-2a4b-460b-bd04-4dff6e7e70c1:localhost:node-60ed864a-5f06-4355-bbb9-4d075e20c893:Node 60ed864a-5f06-4355-bbb9-4d075e20c893 :: false

createNodes 1.810s
2023-03-14 23:01:18 |

2023-03-14 23:01:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:18 | ------------------------------------

2023-03-14 23:01:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "pubsub#title": "Node 60ed864a-5f06-4355-bbb9-4d075e20c893"
}

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

2023-03-14 23:01:20 | [Mutex] waiting for: [received:nodes:52a560ed-434a-4aa4-ac42-97b8758f5a2e:localhost]

2023-03-14 23:01:20 | [Mutex] waiting for: [received:nodes:52a560ed-434a-4aa4-ac42-97b8758f5a2e:localhost]

2023-03-14 23:01:20 | [Mutex] waiting for: [received:nodes:52a560ed-434a-4aa4-ac42-97b8758f5a2e:localhost]

2023-03-14 23:01:20 | [Mutex] waiting for: [received:nodes:52a560ed-434a-4aa4-ac42-97b8758f5a2e:localhost]

2023-03-14 23:01:20 | [Mutex] received everything.

2023-03-14 23:01:20 | [Mutex] isItemNotified: received:node:52a560ed-434a-4aa4-ac42-97b8758f5a2e:localhost:node-60ed864a-5f06-4355-bbb9-4d075e20c893:Node 60ed864a-5f06-4355-bbb9-4d075e20c893 :: true

createSubnodes 1.026s
2023-03-14 23:01:20 |

2023-03-14 23:01:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:20 | ------------------------------------

2023-03-14 23:01:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6",
    "pubsub#title": "Node 38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6"
}

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

2023-03-14 23:01:21 | [Mutex] waiting for: [received:nodes:769c553c-d49e-43cb-ba7e-7a9015380c82:localhost]

2023-03-14 23:01:21 | [Mutex] waiting for: [received:nodes:769c553c-d49e-43cb-ba7e-7a9015380c82:localhost]

2023-03-14 23:01:21 | [Mutex] waiting for: [received:nodes:769c553c-d49e-43cb-ba7e-7a9015380c82:localhost]

2023-03-14 23:01:21 | [Mutex] waiting for: [received:nodes:769c553c-d49e-43cb-ba7e-7a9015380c82:localhost]

2023-03-14 23:01:21 | [Mutex] received everything.

2023-03-14 23:01:21 | [Mutex] isItemNotified: received:node:769c553c-d49e-43cb-ba7e-7a9015380c82:localhost:node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6:Node 38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6 :: true

deleteNodes 1.024s
2023-03-14 23:01:25 |

2023-03-14 23:01:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:25 | ------------------------------------

2023-03-14 23:01:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6"
}

2023-03-14 23:01:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-14 23:01:26 | [Mutex] waiting for: [received:nodes:819053b7-37c5-468d-b7be-41e9b3b1d10a:localhost]

2023-03-14 23:01:27 | [Mutex] waiting for: [received:nodes:819053b7-37c5-468d-b7be-41e9b3b1d10a:localhost]

2023-03-14 23:01:27 | [Mutex] waiting for: [received:nodes:819053b7-37c5-468d-b7be-41e9b3b1d10a:localhost]

2023-03-14 23:01:27 | [Mutex] received everything.

2023-03-14 23:01:27 | [Mutex] isItemNotified: received:node:819053b7-37c5-468d-b7be-41e9b3b1d10a:localhost:node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6:Node 38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6 :: false

deleteSubnodes 1.022s
2023-03-14 23:01:24 |

2023-03-14 23:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:24 | ------------------------------------

2023-03-14 23:01:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893"
}

2023-03-14 23:01:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-14 23:01:25 | [Mutex] waiting for: [received:nodes:143b9cb4-9a52-4184-ad38-69e1ae71001c:localhost]

2023-03-14 23:01:25 | [Mutex] waiting for: [received:nodes:143b9cb4-9a52-4184-ad38-69e1ae71001c:localhost]

2023-03-14 23:01:25 | [Mutex] waiting for: [received:nodes:143b9cb4-9a52-4184-ad38-69e1ae71001c:localhost]

2023-03-14 23:01:25 | [Mutex] received everything.

2023-03-14 23:01:25 | [Mutex] isItemNotified: received:node:143b9cb4-9a52-4184-ad38-69e1ae71001c:localhost:node-60ed864a-5f06-4355-bbb9-4d075e20c893:Node 60ed864a-5f06-4355-bbb9-4d075e20c893 :: false

2023-03-14 23:01:25 | [Mutex] waiting for: [received:nodes:5c2b09e9-5866-4e4e-8ee9-667d4ef78f8d:localhost]

2023-03-14 23:01:25 | [Mutex] received everything.

2023-03-14 23:01:25 | [Mutex] isItemNotified: received:node:5c2b09e9-5866-4e4e-8ee9-667d4ef78f8d:localhost:node-60ed864a-5f06-4355-bbb9-4d075e20c893:Node 60ed864a-5f06-4355-bbb9-4d075e20c893 :: false

publishItemsToNodes 0.053s
2023-03-14 23:01:23 |

2023-03-14 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:23 | ------------------------------------

2023-03-14 23:01:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "entry": "<test>item-776f983b-d9e6-47ac-902d-221804879f4f</test>",
    "item-id": "item-776f983b-d9e6-47ac-902d-221804879f4f"
}

2023-03-14 23:01:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-776f983b-d9e6-47ac-902d-221804879f4f"
}

2023-03-14 23:01:23 | [Mutex] waiting for: [published:item:notifieditem-776f983b-d9e6-47ac-902d-221804879f4f:admin@test-domain.com]

2023-03-14 23:01:23 | [Mutex] received everything.

2023-03-14 23:01:23 | [Mutex] isItemNotified: published:item:notifieditem-776f983b-d9e6-47ac-902d-221804879f4f:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-03-14 23:01:23 |

2023-03-14 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:23 | ------------------------------------

2023-03-14 23:01:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "item-id": "item-776f983b-d9e6-47ac-902d-221804879f4f"
}

2023-03-14 23:01:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-776f983b-d9e6-47ac-902d-221804879f4f"
}

2023-03-14 23:01:23 | [Mutex] received everything.

2023-03-14 23:01:23 | [Mutex] isItemNotified: retracted:item:notifieditem-776f983b-d9e6-47ac-902d-221804879f4f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.050s
2023-03-14 23:01:23 |

2023-03-14 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:23 | ------------------------------------

2023-03-14 23:01:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "item-id": "item-776f983b-d9e6-47ac-902d-221804879f4f"
}

2023-03-14 23:01:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "item-id": "item-776f983b-d9e6-47ac-902d-221804879f4f",
    "item": [
        "<item id=\"item-776f983b-d9e6-47ac-902d-221804879f4f\"><test>item-776f983b-d9e6-47ac-902d-221804879f4f</test></item>"
    ]
}

2023-03-14 23:01:23 | [Mutex] notify: [retrieved:item:item-776f983b-d9e6-47ac-902d-221804879f4f:payload-matches:true:localhost]

2023-03-14 23:01:23 | [Mutex] received everything.

2023-03-14 23:01:23 | [Mutex] isItemNotified: retrieved:item:item-776f983b-d9e6-47ac-902d-221804879f4f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-03-14 23:01:23 |

2023-03-14 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:23 | ------------------------------------

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

2023-03-14 23:01:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-38e82d6b-60ca-4f3e-8df0-cd95e44c4ce6",
        "node-60ed864a-5f06-4355-bbb9-4d075e20c893"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-14 23:01:23 |

2023-03-14 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:23 | ------------------------------------

2023-03-14 23:01:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-60ed864a-5f06-4355-bbb9-4d075e20c893)"
}

2023-03-14 23:01:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-03-14 23:01:22 |

2023-03-14 23:01:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:22 | ------------------------------------

2023-03-14 23:01:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-14 23:01:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-03-14 23:01:23 |

2023-03-14 23:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-14 23:01:23 | ------------------------------------

2023-03-14 23:01:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-60ed864a-5f06-4355-bbb9-4d075e20c893",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-14 23:01:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}