Generated by TestNG with ReportNG at 21:18 PST on Thursday 17 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.948s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.154s
2022-02-17 21:32:24 |

2022-02-17 21:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:24 | ------------------------------------

2022-02-17 21:32:24 | [Mutex] waiting for: [configured:node:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71]

2022-02-17 21:32:24 | [Mutex] received everything.

2022-02-17 21:32:24 | [Mutex] isItemNotified: configured:node:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71 :: true

2022-02-17 21:32:25 | [Mutex] waiting for: [received:nodes:41689d07-e0ed-4817-a9ef-7b4887f7913b:localhost]

2022-02-17 21:32:25 | [Mutex] received everything.

2022-02-17 21:32:25 | [Mutex] isItemNotified: received:node:41689d07-e0ed-4817-a9ef-7b4887f7913b:localhost:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:Node 96f0022d-dbf1-439a-9bce-a6be58ce6a5b :: true

2022-02-17 21:32:25 | [Mutex] waiting for: [received:nodes:084ffe57-d055-47a1-9b4f-5780a299d532:localhost]

2022-02-17 21:32:25 | [Mutex] received everything.

2022-02-17 21:32:25 | [Mutex] isItemNotified: received:node:084ffe57-d055-47a1-9b4f-5780a299d532:localhost:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:Node 96f0022d-dbf1-439a-9bce-a6be58ce6a5b :: false

createNodes 1.676s
2022-02-17 21:32:21 |

2022-02-17 21:32:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:21 | ------------------------------------

2022-02-17 21:32:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "pubsub#title": "Node 96f0022d-dbf1-439a-9bce-a6be58ce6a5b"
}

2022-02-17 21:32:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 21:32:23 | [Mutex] waiting for: [received:nodes:4da1ad0e-9fcd-4f4b-8e8d-359c6207bad8:localhost]

2022-02-17 21:32:23 | [Mutex] waiting for: [received:nodes:4da1ad0e-9fcd-4f4b-8e8d-359c6207bad8:localhost]

2022-02-17 21:32:23 | [Mutex] received everything.

2022-02-17 21:32:23 | [Mutex] isItemNotified: received:node:4da1ad0e-9fcd-4f4b-8e8d-359c6207bad8:localhost:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:Node 96f0022d-dbf1-439a-9bce-a6be58ce6a5b :: true

createSubnodes 1.027s
2022-02-17 21:32:23 |

2022-02-17 21:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:23 | ------------------------------------

2022-02-17 21:32:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71",
    "pubsub#title": "Node 1ed87bf8-52d7-45b7-86aa-1f886bb67b71"
}

2022-02-17 21:32:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 21:32:24 | [Mutex] waiting for: [received:nodes:b62eaac4-c93c-4e81-8274-16d7d00b443f:localhost]

2022-02-17 21:32:24 | [Mutex] received everything.

2022-02-17 21:32:24 | [Mutex] isItemNotified: received:node:b62eaac4-c93c-4e81-8274-16d7d00b443f:localhost:node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71:Node 1ed87bf8-52d7-45b7-86aa-1f886bb67b71 :: true

deleteNodes 1.019s
2022-02-17 21:32:28 |

2022-02-17 21:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:28 | ------------------------------------

2022-02-17 21:32:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71"
}

2022-02-17 21:32:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 21:32:29 | [Mutex] waiting for: [received:nodes:5143db8b-646b-41b2-b27f-48722808433d:localhost]

2022-02-17 21:32:29 | [Mutex] received everything.

2022-02-17 21:32:29 | [Mutex] isItemNotified: received:node:5143db8b-646b-41b2-b27f-48722808433d:localhost:node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71:Node 1ed87bf8-52d7-45b7-86aa-1f886bb67b71 :: false

deleteSubnodes 1.027s
2022-02-17 21:32:27 |

2022-02-17 21:32:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:27 | ------------------------------------

2022-02-17 21:32:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b"
}

2022-02-17 21:32:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 21:32:28 | [Mutex] waiting for: [received:nodes:9dcaf568-16eb-401f-b99d-f55eb6ee2a7d:localhost]

2022-02-17 21:32:28 | [Mutex] received everything.

2022-02-17 21:32:28 | [Mutex] isItemNotified: received:node:9dcaf568-16eb-401f-b99d-f55eb6ee2a7d:localhost:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:Node 96f0022d-dbf1-439a-9bce-a6be58ce6a5b :: false

2022-02-17 21:32:28 | [Mutex] waiting for: [received:nodes:18e728bd-4732-4db3-86e1-aca75f58ad1c:localhost]

2022-02-17 21:32:28 | [Mutex] received everything.

2022-02-17 21:32:28 | [Mutex] isItemNotified: received:node:18e728bd-4732-4db3-86e1-aca75f58ad1c:localhost:node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b:Node 96f0022d-dbf1-439a-9bce-a6be58ce6a5b :: false

publishItemsToNodes 0.034s
2022-02-17 21:32:26 |

2022-02-17 21:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:26 | ------------------------------------

2022-02-17 21:32:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "entry": "<test>item-688a27cf-b1ac-42d2-8464-de707eb989e7</test>",
    "item-id": "item-688a27cf-b1ac-42d2-8464-de707eb989e7"
}

2022-02-17 21:32:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-688a27cf-b1ac-42d2-8464-de707eb989e7"
}

2022-02-17 21:32:26 | [Mutex] waiting for: [published:item:notifieditem-688a27cf-b1ac-42d2-8464-de707eb989e7:admin@test-domain.com]

2022-02-17 21:32:26 | [Mutex] received everything.

2022-02-17 21:32:26 | [Mutex] isItemNotified: published:item:notifieditem-688a27cf-b1ac-42d2-8464-de707eb989e7:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2022-02-17 21:32:26 |

2022-02-17 21:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:26 | ------------------------------------

2022-02-17 21:32:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "item-id": "item-688a27cf-b1ac-42d2-8464-de707eb989e7"
}

2022-02-17 21:32:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-688a27cf-b1ac-42d2-8464-de707eb989e7"
}

2022-02-17 21:32:26 | [Mutex] waiting for: [retracted:item:notifieditem-688a27cf-b1ac-42d2-8464-de707eb989e7:admin@test-domain.com]

2022-02-17 21:32:26 | [Mutex] received everything.

2022-02-17 21:32:26 | [Mutex] isItemNotified: retracted:item:notifieditem-688a27cf-b1ac-42d2-8464-de707eb989e7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2022-02-17 21:32:26 |

2022-02-17 21:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:26 | ------------------------------------

2022-02-17 21:32:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "item-id": "item-688a27cf-b1ac-42d2-8464-de707eb989e7"
}

2022-02-17 21:32:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "item-id": "item-688a27cf-b1ac-42d2-8464-de707eb989e7",
    "item": [
        "<item id=\"item-688a27cf-b1ac-42d2-8464-de707eb989e7\"><test>item-688a27cf-b1ac-42d2-8464-de707eb989e7</test></item>"
    ]
}

2022-02-17 21:32:26 | [Mutex] notify: [retrieved:item:item-688a27cf-b1ac-42d2-8464-de707eb989e7:payload-matches:true:localhost]

2022-02-17 21:32:26 | [Mutex] received everything.

2022-02-17 21:32:26 | [Mutex] isItemNotified: retrieved:item:item-688a27cf-b1ac-42d2-8464-de707eb989e7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-17 21:32:26 |

2022-02-17 21:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:26 | ------------------------------------

2022-02-17 21:32:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-17 21:32:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1ed87bf8-52d7-45b7-86aa-1f886bb67b71",
        "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-17 21:32:26 |

2022-02-17 21:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:26 | ------------------------------------

2022-02-17 21:32:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b)"
}

2022-02-17 21:32:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-02-17 21:32:25 |

2022-02-17 21:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:25 | ------------------------------------

2022-02-17 21:32:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 21:32:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.065s
2022-02-17 21:32:26 |

2022-02-17 21:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 21:32:26 | ------------------------------------

2022-02-17 21:32:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-96f0022d-dbf1-439a-9bce-a6be58ce6a5b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 21:32:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}