Generated by TestNG with ReportNG at 09:05 PST on Tuesday 21 December 2021
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 : 9.063s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-12-21 09:21:26 |

2021-12-21 09:21:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:26 | ------------------------------------

2021-12-21 09:21:26 | [Mutex] waiting for: [configured:node:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:node-dcebf715-a24c-490e-94c7-5de720ad8019]

2021-12-21 09:21:27 | [Mutex] received everything.

2021-12-21 09:21:27 | [Mutex] isItemNotified: configured:node:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:node-dcebf715-a24c-490e-94c7-5de720ad8019 :: true

2021-12-21 09:21:28 | [Mutex] waiting for: [received:nodes:b0cdd8af-b1b8-4ad4-a083-e5e667a434e7:localhost]

2021-12-21 09:21:28 | [Mutex] received everything.

2021-12-21 09:21:28 | [Mutex] isItemNotified: received:node:b0cdd8af-b1b8-4ad4-a083-e5e667a434e7:localhost:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:Node 683baf35-b9bc-4fab-81dc-4c62a2ce321c :: true

2021-12-21 09:21:28 | [Mutex] waiting for: [received:nodes:20eb6fa4-d611-433c-a87c-3c4aa39b0016:localhost]

2021-12-21 09:21:28 | [Mutex] received everything.

2021-12-21 09:21:28 | [Mutex] isItemNotified: received:node:20eb6fa4-d611-433c-a87c-3c4aa39b0016:localhost:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:Node 683baf35-b9bc-4fab-81dc-4c62a2ce321c :: false

createNodes 1.555s
2021-12-21 09:21:24 |

2021-12-21 09:21:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:24 | ------------------------------------

2021-12-21 09:21:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "pubsub#title": "Node 683baf35-b9bc-4fab-81dc-4c62a2ce321c"
}

2021-12-21 09:21:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:21:25 | [Mutex] waiting for: [received:nodes:f88f415e-b317-4c59-9127-c82a5cb5b3e8:localhost]

2021-12-21 09:21:25 | [Mutex] waiting for: [received:nodes:f88f415e-b317-4c59-9127-c82a5cb5b3e8:localhost]

2021-12-21 09:21:25 | [Mutex] received everything.

2021-12-21 09:21:25 | [Mutex] isItemNotified: received:node:f88f415e-b317-4c59-9127-c82a5cb5b3e8:localhost:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:Node 683baf35-b9bc-4fab-81dc-4c62a2ce321c :: true

createSubnodes 1.028s
2021-12-21 09:21:25 |

2021-12-21 09:21:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:25 | ------------------------------------

2021-12-21 09:21:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dcebf715-a24c-490e-94c7-5de720ad8019",
    "pubsub#title": "Node dcebf715-a24c-490e-94c7-5de720ad8019"
}

2021-12-21 09:21:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:21:26 | [Mutex] waiting for: [received:nodes:f844ad59-02fe-466f-97c1-fac7a9676669:localhost]

2021-12-21 09:21:26 | [Mutex] received everything.

2021-12-21 09:21:26 | [Mutex] isItemNotified: received:node:f844ad59-02fe-466f-97c1-fac7a9676669:localhost:node-dcebf715-a24c-490e-94c7-5de720ad8019:Node dcebf715-a24c-490e-94c7-5de720ad8019 :: true

deleteNodes 1.056s
2021-12-21 09:21:31 |

2021-12-21 09:21:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:31 | ------------------------------------

2021-12-21 09:21:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dcebf715-a24c-490e-94c7-5de720ad8019"
}

2021-12-21 09:21:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:21:32 | [Mutex] waiting for: [received:nodes:c79f1d80-bc01-4571-96f2-e24ad59e1ef0:localhost]

2021-12-21 09:21:32 | [Mutex] received everything.

2021-12-21 09:21:32 | [Mutex] isItemNotified: received:node:c79f1d80-bc01-4571-96f2-e24ad59e1ef0:localhost:node-dcebf715-a24c-490e-94c7-5de720ad8019:Node dcebf715-a24c-490e-94c7-5de720ad8019 :: false

deleteSubnodes 1.031s
2021-12-21 09:21:30 |

2021-12-21 09:21:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:30 | ------------------------------------

2021-12-21 09:21:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c"
}

2021-12-21 09:21:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-21 09:21:31 | [Mutex] waiting for: [received:nodes:e5197d6a-6091-4894-a8a6-d029f975c2b3:localhost]

2021-12-21 09:21:31 | [Mutex] received everything.

2021-12-21 09:21:31 | [Mutex] isItemNotified: received:node:e5197d6a-6091-4894-a8a6-d029f975c2b3:localhost:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:Node 683baf35-b9bc-4fab-81dc-4c62a2ce321c :: false

2021-12-21 09:21:31 | [Mutex] waiting for: [received:nodes:3e204263-44c4-4ea5-92ac-3303d26cb0c5:localhost]

2021-12-21 09:21:31 | [Mutex] received everything.

2021-12-21 09:21:31 | [Mutex] isItemNotified: received:node:3e204263-44c4-4ea5-92ac-3303d26cb0c5:localhost:node-683baf35-b9bc-4fab-81dc-4c62a2ce321c:Node 683baf35-b9bc-4fab-81dc-4c62a2ce321c :: false

publishItemsToNodes 0.049s
2021-12-21 09:21:29 |

2021-12-21 09:21:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:29 | ------------------------------------

2021-12-21 09:21:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "entry": "<test>item-1e06bace-d800-4c82-9664-1f5677653e57</test>",
    "item-id": "item-1e06bace-d800-4c82-9664-1f5677653e57"
}

2021-12-21 09:21:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1e06bace-d800-4c82-9664-1f5677653e57"
}

2021-12-21 09:21:29 | [Mutex] waiting for: [published:item:notifieditem-1e06bace-d800-4c82-9664-1f5677653e57:admin@test-domain.com]

2021-12-21 09:21:29 | [Mutex] received everything.

2021-12-21 09:21:29 | [Mutex] isItemNotified: published:item:notifieditem-1e06bace-d800-4c82-9664-1f5677653e57:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-12-21 09:21:29 |

2021-12-21 09:21:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:29 | ------------------------------------

2021-12-21 09:21:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "item-id": "item-1e06bace-d800-4c82-9664-1f5677653e57"
}

2021-12-21 09:21:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1e06bace-d800-4c82-9664-1f5677653e57"
}

2021-12-21 09:21:29 | [Mutex] received everything.

2021-12-21 09:21:29 | [Mutex] isItemNotified: retracted:item:notifieditem-1e06bace-d800-4c82-9664-1f5677653e57:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2021-12-21 09:21:29 |

2021-12-21 09:21:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:29 | ------------------------------------

2021-12-21 09:21:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "item-id": "item-1e06bace-d800-4c82-9664-1f5677653e57"
}

2021-12-21 09:21:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "item-id": "item-1e06bace-d800-4c82-9664-1f5677653e57",
    "item": [
        "<item id=\"item-1e06bace-d800-4c82-9664-1f5677653e57\"><test>item-1e06bace-d800-4c82-9664-1f5677653e57</test></item>"
    ]
}

2021-12-21 09:21:29 | [Mutex] notify: [retrieved:item:item-1e06bace-d800-4c82-9664-1f5677653e57:payload-matches:true:localhost]

2021-12-21 09:21:29 | [Mutex] received everything.

2021-12-21 09:21:29 | [Mutex] isItemNotified: retrieved:item:item-1e06bace-d800-4c82-9664-1f5677653e57:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.089s
2021-12-21 09:21:29 |

2021-12-21 09:21:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:29 | ------------------------------------

2021-12-21 09:21:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-21 09:21:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-dcebf715-a24c-490e-94c7-5de720ad8019",
        "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-12-21 09:21:29 |

2021-12-21 09:21:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:29 | ------------------------------------

2021-12-21 09:21:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-683baf35-b9bc-4fab-81dc-4c62a2ce321c)"
}

2021-12-21 09:21:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-12-21 09:21:28 |

2021-12-21 09:21:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:28 | ------------------------------------

2021-12-21 09:21:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-21 09:21:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-12-21 09:21:29 |

2021-12-21 09:21:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-21 09:21:29 | ------------------------------------

2021-12-21 09:21:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-683baf35-b9bc-4fab-81dc-4c62a2ce321c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-21 09:21:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}