Generated by TestNG with ReportNG at 22:38 PDT on Sunday 28 August 2022
root@f9c07ffec79b / 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.784s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2022-08-28 22:52:54 |

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

2022-08-28 22:52:54 | ------------------------------------

2022-08-28 22:52:54 | [Mutex] waiting for: [configured:node:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5]

2022-08-28 22:52:54 | [Mutex] received everything.

2022-08-28 22:52:54 | [Mutex] isItemNotified: configured:node:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5 :: true

2022-08-28 22:52:55 | [Mutex] waiting for: [received:nodes:11d33948-2ab7-4a66-845b-50c959dbd85c:localhost]

2022-08-28 22:52:55 | [Mutex] received everything.

2022-08-28 22:52:55 | [Mutex] isItemNotified: received:node:11d33948-2ab7-4a66-845b-50c959dbd85c:localhost:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:Node 05c986f2-4923-47ff-ad6f-f82ed9cb6be6 :: true

2022-08-28 22:52:55 | [Mutex] waiting for: [received:nodes:1ec6a102-db4b-4e57-9d4a-481d7b8b4e7c:localhost]

2022-08-28 22:52:55 | [Mutex] received everything.

2022-08-28 22:52:55 | [Mutex] isItemNotified: received:node:1ec6a102-db4b-4e57-9d4a-481d7b8b4e7c:localhost:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:Node 05c986f2-4923-47ff-ad6f-f82ed9cb6be6 :: false

createNodes 1.717s
2022-08-28 22:52:51 |

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

2022-08-28 22:52:51 | ------------------------------------

2022-08-28 22:52:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "pubsub#title": "Node 05c986f2-4923-47ff-ad6f-f82ed9cb6be6"
}

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

2022-08-28 22:52:53 | [Mutex] waiting for: [received:nodes:f53958c1-a525-4e23-af84-d0aa8af52db4:localhost]

2022-08-28 22:52:53 | [Mutex] waiting for: [received:nodes:f53958c1-a525-4e23-af84-d0aa8af52db4:localhost]

2022-08-28 22:52:53 | [Mutex] received everything.

2022-08-28 22:52:53 | [Mutex] isItemNotified: received:node:f53958c1-a525-4e23-af84-d0aa8af52db4:localhost:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:Node 05c986f2-4923-47ff-ad6f-f82ed9cb6be6 :: true

createSubnodes 1.022s
2022-08-28 22:52:53 |

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

2022-08-28 22:52:53 | ------------------------------------

2022-08-28 22:52:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5",
    "pubsub#title": "Node b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5"
}

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

2022-08-28 22:52:54 | [Mutex] waiting for: [received:nodes:bca28b16-cc90-41f5-9a1b-26c8f8ec245c:localhost]

2022-08-28 22:52:54 | [Mutex] waiting for: [received:nodes:bca28b16-cc90-41f5-9a1b-26c8f8ec245c:localhost]

2022-08-28 22:52:54 | [Mutex] received everything.

2022-08-28 22:52:54 | [Mutex] isItemNotified: received:node:bca28b16-cc90-41f5-9a1b-26c8f8ec245c:localhost:node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5:Node b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5 :: true

deleteNodes 1.022s
2022-08-28 22:52:58 |

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

2022-08-28 22:52:58 | ------------------------------------

2022-08-28 22:52:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5"
}

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

2022-08-28 22:52:59 | [Mutex] waiting for: [received:nodes:a20395e8-21e8-46da-b874-403d83a4c8ba:localhost]

2022-08-28 22:52:59 | [Mutex] received everything.

2022-08-28 22:52:59 | [Mutex] isItemNotified: received:node:a20395e8-21e8-46da-b874-403d83a4c8ba:localhost:node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5:Node b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5 :: false

deleteSubnodes 1.025s
2022-08-28 22:52:57 |

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

2022-08-28 22:52:57 | ------------------------------------

2022-08-28 22:52:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6"
}

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

2022-08-28 22:52:58 | [Mutex] waiting for: [received:nodes:c491db31-886a-4d6f-b745-a559d75a7814:localhost]

2022-08-28 22:52:58 | [Mutex] received everything.

2022-08-28 22:52:58 | [Mutex] isItemNotified: received:node:c491db31-886a-4d6f-b745-a559d75a7814:localhost:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:Node 05c986f2-4923-47ff-ad6f-f82ed9cb6be6 :: false

2022-08-28 22:52:58 | [Mutex] waiting for: [received:nodes:502b3cb2-ea0a-4ca2-b86f-f2abbfee6ea8:localhost]

2022-08-28 22:52:58 | [Mutex] received everything.

2022-08-28 22:52:58 | [Mutex] isItemNotified: received:node:502b3cb2-ea0a-4ca2-b86f-f2abbfee6ea8:localhost:node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6:Node 05c986f2-4923-47ff-ad6f-f82ed9cb6be6 :: false

publishItemsToNodes 0.049s
2022-08-28 22:52:56 |

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

2022-08-28 22:52:56 | ------------------------------------

2022-08-28 22:52:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "entry": "<test>item-9c6e193a-e8ab-4227-a184-243ae3d62265</test>",
    "item-id": "item-9c6e193a-e8ab-4227-a184-243ae3d62265"
}

2022-08-28 22:52:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9c6e193a-e8ab-4227-a184-243ae3d62265"
}

2022-08-28 22:52:56 | [Mutex] waiting for: [published:item:notifieditem-9c6e193a-e8ab-4227-a184-243ae3d62265:admin@test-domain.com]

2022-08-28 22:52:56 | [Mutex] received everything.

2022-08-28 22:52:56 | [Mutex] isItemNotified: published:item:notifieditem-9c6e193a-e8ab-4227-a184-243ae3d62265:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-28 22:52:56 |

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

2022-08-28 22:52:56 | ------------------------------------

2022-08-28 22:52:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "item-id": "item-9c6e193a-e8ab-4227-a184-243ae3d62265"
}

2022-08-28 22:52:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9c6e193a-e8ab-4227-a184-243ae3d62265"
}

2022-08-28 22:52:56 | [Mutex] received everything.

2022-08-28 22:52:56 | [Mutex] isItemNotified: retracted:item:notifieditem-9c6e193a-e8ab-4227-a184-243ae3d62265:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2022-08-28 22:52:56 |

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

2022-08-28 22:52:56 | ------------------------------------

2022-08-28 22:52:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "item-id": "item-9c6e193a-e8ab-4227-a184-243ae3d62265"
}

2022-08-28 22:52:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "item-id": "item-9c6e193a-e8ab-4227-a184-243ae3d62265",
    "item": [
        "<item id=\"item-9c6e193a-e8ab-4227-a184-243ae3d62265\"><test>item-9c6e193a-e8ab-4227-a184-243ae3d62265</test></item>"
    ]
}

2022-08-28 22:52:56 | [Mutex] notify: [retrieved:item:item-9c6e193a-e8ab-4227-a184-243ae3d62265:payload-matches:true:localhost]

2022-08-28 22:52:56 | [Mutex] received everything.

2022-08-28 22:52:56 | [Mutex] isItemNotified: retrieved:item:item-9c6e193a-e8ab-4227-a184-243ae3d62265:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-08-28 22:52:56 |

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

2022-08-28 22:52:56 | ------------------------------------

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

2022-08-28 22:52:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
        "test",
        "node-b5987bc4-95a5-4ad3-8be9-6cc10b9c16e5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-28 22:52:56 |

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

2022-08-28 22:52:56 | ------------------------------------

2022-08-28 22:52:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6)"
}

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

subscribeNodes 1.010s
2022-08-28 22:52:55 |

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

2022-08-28 22:52:55 | ------------------------------------

2022-08-28 22:52:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-08-28 22:52:56 |

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

2022-08-28 22:52:56 | ------------------------------------

2022-08-28 22:52:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-05c986f2-4923-47ff-ad6f-f82ed9cb6be6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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