Generated by TestNG with ReportNG at 18:48 PDT on Tuesday 25 August 2020
root@9adf47d9b258 / 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.181s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.059s
2020-08-25 19:03:31 |

2020-08-25 19:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:31 | ------------------------------------

2020-08-25 19:03:31 | [Mutex] waiting for: [configured:node:node-8b066626-245f-40e7-949f-512d10a3cd42:node-41df54cf-0ed0-4283-ad51-2d43b3741b35]

2020-08-25 19:03:31 | [Mutex] received everything.

2020-08-25 19:03:31 | [Mutex] isItemNotified: configured:node:node-8b066626-245f-40e7-949f-512d10a3cd42:node-41df54cf-0ed0-4283-ad51-2d43b3741b35 :: true

2020-08-25 19:03:32 | [Mutex] waiting for: [received:nodes:e4a8e144-de26-4556-8fc3-207306623867:localhost]

2020-08-25 19:03:32 | [Mutex] received everything.

2020-08-25 19:03:32 | [Mutex] isItemNotified: received:node:e4a8e144-de26-4556-8fc3-207306623867:localhost:node-8b066626-245f-40e7-949f-512d10a3cd42:Node 8b066626-245f-40e7-949f-512d10a3cd42 :: true

2020-08-25 19:03:32 | [Mutex] waiting for: [received:nodes:6a332765-09e4-479b-a485-2370ed2699f1:localhost]

2020-08-25 19:03:32 | [Mutex] received everything.

2020-08-25 19:03:32 | [Mutex] isItemNotified: received:node:6a332765-09e4-479b-a485-2370ed2699f1:localhost:node-8b066626-245f-40e7-949f-512d10a3cd42:Node 8b066626-245f-40e7-949f-512d10a3cd42 :: false

createNodes 1.813s
2020-08-25 19:03:28 |

2020-08-25 19:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:28 | ------------------------------------

2020-08-25 19:03:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "pubsub#title": "Node 8b066626-245f-40e7-949f-512d10a3cd42"
}

2020-08-25 19:03:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 19:03:30 | [Mutex] waiting for: [received:nodes:7d8ca9c4-079b-4f04-8f14-59adca596fb8:localhost]

2020-08-25 19:03:30 | [Mutex] received everything.

2020-08-25 19:03:30 | [Mutex] isItemNotified: received:node:7d8ca9c4-079b-4f04-8f14-59adca596fb8:localhost:node-8b066626-245f-40e7-949f-512d10a3cd42:Node 8b066626-245f-40e7-949f-512d10a3cd42 :: true

createSubnodes 1.027s
2020-08-25 19:03:30 |

2020-08-25 19:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:30 | ------------------------------------

2020-08-25 19:03:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-41df54cf-0ed0-4283-ad51-2d43b3741b35",
    "pubsub#title": "Node 41df54cf-0ed0-4283-ad51-2d43b3741b35"
}

2020-08-25 19:03:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 19:03:31 | [Mutex] waiting for: [received:nodes:93cacdcc-d206-4e9f-bd3b-7a310e61803f:localhost]

2020-08-25 19:03:31 | [Mutex] waiting for: [received:nodes:93cacdcc-d206-4e9f-bd3b-7a310e61803f:localhost]

2020-08-25 19:03:31 | [Mutex] received everything.

2020-08-25 19:03:31 | [Mutex] isItemNotified: received:node:93cacdcc-d206-4e9f-bd3b-7a310e61803f:localhost:node-41df54cf-0ed0-4283-ad51-2d43b3741b35:Node 41df54cf-0ed0-4283-ad51-2d43b3741b35 :: true

deleteNodes 1.044s
2020-08-25 19:03:35 |

2020-08-25 19:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:35 | ------------------------------------

2020-08-25 19:03:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-41df54cf-0ed0-4283-ad51-2d43b3741b35"
}

2020-08-25 19:03:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 19:03:36 | [Mutex] waiting for: [received:nodes:7349a32d-9de3-4127-8359-51d09a077172:localhost]

2020-08-25 19:03:36 | [Mutex] received everything.

2020-08-25 19:03:36 | [Mutex] isItemNotified: received:node:7349a32d-9de3-4127-8359-51d09a077172:localhost:node-41df54cf-0ed0-4283-ad51-2d43b3741b35:Node 41df54cf-0ed0-4283-ad51-2d43b3741b35 :: false

deleteSubnodes 1.038s
2020-08-25 19:03:34 |

2020-08-25 19:03:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:34 | ------------------------------------

2020-08-25 19:03:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42"
}

2020-08-25 19:03:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-25 19:03:35 | [Mutex] waiting for: [received:nodes:df02bcbb-f6fd-48ad-8273-f6d9ced0e821:localhost]

2020-08-25 19:03:35 | [Mutex] received everything.

2020-08-25 19:03:35 | [Mutex] isItemNotified: received:node:df02bcbb-f6fd-48ad-8273-f6d9ced0e821:localhost:node-8b066626-245f-40e7-949f-512d10a3cd42:Node 8b066626-245f-40e7-949f-512d10a3cd42 :: false

2020-08-25 19:03:35 | [Mutex] waiting for: [received:nodes:856af208-80ba-4d12-8b03-082022edced5:localhost]

2020-08-25 19:03:35 | [Mutex] received everything.

2020-08-25 19:03:35 | [Mutex] isItemNotified: received:node:856af208-80ba-4d12-8b03-082022edced5:localhost:node-8b066626-245f-40e7-949f-512d10a3cd42:Node 8b066626-245f-40e7-949f-512d10a3cd42 :: false

publishItemsToNodes 0.058s
2020-08-25 19:03:33 |

2020-08-25 19:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:33 | ------------------------------------

2020-08-25 19:03:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "entry": "<test>item-c488872e-a02a-4de9-8bcb-c93faef37504</test>",
    "item-id": "item-c488872e-a02a-4de9-8bcb-c93faef37504"
}

2020-08-25 19:03:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c488872e-a02a-4de9-8bcb-c93faef37504"
}

2020-08-25 19:03:33 | [Mutex] waiting for: [published:item:notifieditem-c488872e-a02a-4de9-8bcb-c93faef37504:admin@test-domain.com]

2020-08-25 19:03:33 | [Mutex] received everything.

2020-08-25 19:03:33 | [Mutex] isItemNotified: published:item:notifieditem-c488872e-a02a-4de9-8bcb-c93faef37504:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-08-25 19:03:33 |

2020-08-25 19:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:33 | ------------------------------------

2020-08-25 19:03:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "item-id": "item-c488872e-a02a-4de9-8bcb-c93faef37504"
}

2020-08-25 19:03:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c488872e-a02a-4de9-8bcb-c93faef37504"
}

2020-08-25 19:03:33 | [Mutex] received everything.

2020-08-25 19:03:33 | [Mutex] isItemNotified: retracted:item:notifieditem-c488872e-a02a-4de9-8bcb-c93faef37504:admin@test-domain.com :: true

retrieveItemsFromNodes 0.044s
2020-08-25 19:03:33 |

2020-08-25 19:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:33 | ------------------------------------

2020-08-25 19:03:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "item-id": "item-c488872e-a02a-4de9-8bcb-c93faef37504"
}

2020-08-25 19:03:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "item-id": "item-c488872e-a02a-4de9-8bcb-c93faef37504",
    "item": [
        "<item id=\"item-c488872e-a02a-4de9-8bcb-c93faef37504\"><test>item-c488872e-a02a-4de9-8bcb-c93faef37504</test></item>"
    ]
}

2020-08-25 19:03:33 | [Mutex] notify: [retrieved:item:item-c488872e-a02a-4de9-8bcb-c93faef37504:payload-matches:true:localhost]

2020-08-25 19:03:33 | [Mutex] received everything.

2020-08-25 19:03:33 | [Mutex] isItemNotified: retrieved:item:item-c488872e-a02a-4de9-8bcb-c93faef37504:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2020-08-25 19:03:33 |

2020-08-25 19:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:33 | ------------------------------------

2020-08-25 19:03:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-25 19:03:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-41df54cf-0ed0-4283-ad51-2d43b3741b35",
        "test",
        "node-8b066626-245f-40e7-949f-512d10a3cd42"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-08-25 19:03:33 |

2020-08-25 19:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:33 | ------------------------------------

2020-08-25 19:03:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8b066626-245f-40e7-949f-512d10a3cd42)"
}

2020-08-25 19:03:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-08-25 19:03:32 |

2020-08-25 19:03:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:32 | ------------------------------------

2020-08-25 19:03:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 19:03:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.091s
2020-08-25 19:03:33 |

2020-08-25 19:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-25 19:03:33 | ------------------------------------

2020-08-25 19:03:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8b066626-245f-40e7-949f-512d10a3cd42",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-25 19:03:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}