Generated by TestNG with ReportNG at 22:46 PDT on Tuesday 20 October 2020
root@87f6aca6b6f2 / 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.518s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.140s
2020-10-20 23:01:15 |

2020-10-20 23:01:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:15 | ------------------------------------

2020-10-20 23:01:15 | [Mutex] waiting for: [configured:node:node-dfadf467-a4b9-46a7-b565-71b103278449:node-d2a408b6-d96c-46ca-9af5-55bc906337e5]

2020-10-20 23:01:15 | [Mutex] received everything.

2020-10-20 23:01:15 | [Mutex] isItemNotified: configured:node:node-dfadf467-a4b9-46a7-b565-71b103278449:node-d2a408b6-d96c-46ca-9af5-55bc906337e5 :: true

2020-10-20 23:01:16 | [Mutex] waiting for: [received:nodes:fe5ae8f9-3ea7-442f-90e5-b49db692122a:localhost]

2020-10-20 23:01:16 | [Mutex] received everything.

2020-10-20 23:01:16 | [Mutex] isItemNotified: received:node:fe5ae8f9-3ea7-442f-90e5-b49db692122a:localhost:node-dfadf467-a4b9-46a7-b565-71b103278449:Node dfadf467-a4b9-46a7-b565-71b103278449 :: true

2020-10-20 23:01:16 | [Mutex] waiting for: [received:nodes:2d84a78a-468a-4101-aa3e-4a77b0d9b499:localhost]

2020-10-20 23:01:16 | [Mutex] waiting for: [received:nodes:2d84a78a-468a-4101-aa3e-4a77b0d9b499:localhost]

2020-10-20 23:01:16 | [Mutex] received everything.

2020-10-20 23:01:16 | [Mutex] isItemNotified: received:node:2d84a78a-468a-4101-aa3e-4a77b0d9b499:localhost:node-dfadf467-a4b9-46a7-b565-71b103278449:Node dfadf467-a4b9-46a7-b565-71b103278449 :: false

createNodes 1.918s
2020-10-20 23:01:12 |

2020-10-20 23:01:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:12 | ------------------------------------

2020-10-20 23:01:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "pubsub#title": "Node dfadf467-a4b9-46a7-b565-71b103278449"
}

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

2020-10-20 23:01:14 | [Mutex] waiting for: [received:nodes:7b0f1c58-57dc-4189-b4cd-9bd0b9b23768:localhost]

2020-10-20 23:01:14 | [Mutex] received everything.

2020-10-20 23:01:14 | [Mutex] isItemNotified: received:node:7b0f1c58-57dc-4189-b4cd-9bd0b9b23768:localhost:node-dfadf467-a4b9-46a7-b565-71b103278449:Node dfadf467-a4b9-46a7-b565-71b103278449 :: true

createSubnodes 1.028s
2020-10-20 23:01:14 |

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

2020-10-20 23:01:14 | ------------------------------------

2020-10-20 23:01:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d2a408b6-d96c-46ca-9af5-55bc906337e5",
    "pubsub#title": "Node d2a408b6-d96c-46ca-9af5-55bc906337e5"
}

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

2020-10-20 23:01:15 | [Mutex] waiting for: [received:nodes:7752f761-2e02-4adc-94bc-729ddc787765:localhost]

2020-10-20 23:01:15 | [Mutex] received everything.

2020-10-20 23:01:15 | [Mutex] isItemNotified: received:node:7752f761-2e02-4adc-94bc-729ddc787765:localhost:node-d2a408b6-d96c-46ca-9af5-55bc906337e5:Node d2a408b6-d96c-46ca-9af5-55bc906337e5 :: true

deleteNodes 1.024s
2020-10-20 23:01:20 |

2020-10-20 23:01:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:20 | ------------------------------------

2020-10-20 23:01:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d2a408b6-d96c-46ca-9af5-55bc906337e5"
}

2020-10-20 23:01:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:01:21 | [Mutex] waiting for: [received:nodes:34119e1e-07a7-48d3-af94-0ad303699530:localhost]

2020-10-20 23:01:21 | [Mutex] received everything.

2020-10-20 23:01:21 | [Mutex] isItemNotified: received:node:34119e1e-07a7-48d3-af94-0ad303699530:localhost:node-d2a408b6-d96c-46ca-9af5-55bc906337e5:Node d2a408b6-d96c-46ca-9af5-55bc906337e5 :: false

deleteSubnodes 1.052s
2020-10-20 23:01:18 |

2020-10-20 23:01:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:18 | ------------------------------------

2020-10-20 23:01:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449"
}

2020-10-20 23:01:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-20 23:01:19 | [Mutex] waiting for: [received:nodes:c8bc4edc-ef7b-40db-9600-a78c22f04a00:localhost]

2020-10-20 23:01:20 | [Mutex] received everything.

2020-10-20 23:01:20 | [Mutex] isItemNotified: received:node:c8bc4edc-ef7b-40db-9600-a78c22f04a00:localhost:node-dfadf467-a4b9-46a7-b565-71b103278449:Node dfadf467-a4b9-46a7-b565-71b103278449 :: false

2020-10-20 23:01:20 | [Mutex] waiting for: [received:nodes:108eee95-7122-42f6-b5c0-5c29c0a04a32:localhost]

2020-10-20 23:01:20 | [Mutex] received everything.

2020-10-20 23:01:20 | [Mutex] isItemNotified: received:node:108eee95-7122-42f6-b5c0-5c29c0a04a32:localhost:node-dfadf467-a4b9-46a7-b565-71b103278449:Node dfadf467-a4b9-46a7-b565-71b103278449 :: false

publishItemsToNodes 0.023s
2020-10-20 23:01:17 |

2020-10-20 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:17 | ------------------------------------

2020-10-20 23:01:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "entry": "<test>item-b773a3a3-0037-4049-b02f-cc7769b11498</test>",
    "item-id": "item-b773a3a3-0037-4049-b02f-cc7769b11498"
}

2020-10-20 23:01:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b773a3a3-0037-4049-b02f-cc7769b11498"
}

2020-10-20 23:01:17 | [Mutex] waiting for: [published:item:notifieditem-b773a3a3-0037-4049-b02f-cc7769b11498:admin@test-domain.com]

2020-10-20 23:01:17 | [Mutex] received everything.

2020-10-20 23:01:17 | [Mutex] isItemNotified: published:item:notifieditem-b773a3a3-0037-4049-b02f-cc7769b11498:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2020-10-20 23:01:17 |

2020-10-20 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:17 | ------------------------------------

2020-10-20 23:01:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "item-id": "item-b773a3a3-0037-4049-b02f-cc7769b11498"
}

2020-10-20 23:01:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b773a3a3-0037-4049-b02f-cc7769b11498"
}

2020-10-20 23:01:17 | [Mutex] waiting for: [retracted:item:notifieditem-b773a3a3-0037-4049-b02f-cc7769b11498:admin@test-domain.com]

2020-10-20 23:01:17 | [Mutex] received everything.

2020-10-20 23:01:17 | [Mutex] isItemNotified: retracted:item:notifieditem-b773a3a3-0037-4049-b02f-cc7769b11498:admin@test-domain.com :: true

retrieveItemsFromNodes 0.091s
2020-10-20 23:01:17 |

2020-10-20 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:17 | ------------------------------------

2020-10-20 23:01:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "item-id": "item-b773a3a3-0037-4049-b02f-cc7769b11498"
}

2020-10-20 23:01:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "item-id": "item-b773a3a3-0037-4049-b02f-cc7769b11498",
    "item": [
        "<item id=\"item-b773a3a3-0037-4049-b02f-cc7769b11498\"><test>item-b773a3a3-0037-4049-b02f-cc7769b11498</test></item>"
    ]
}

2020-10-20 23:01:17 | [Mutex] notify: [retrieved:item:item-b773a3a3-0037-4049-b02f-cc7769b11498:payload-matches:true:localhost]

2020-10-20 23:01:17 | [Mutex] received everything.

2020-10-20 23:01:17 | [Mutex] isItemNotified: retrieved:item:item-b773a3a3-0037-4049-b02f-cc7769b11498:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2020-10-20 23:01:17 |

2020-10-20 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:17 | ------------------------------------

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

2020-10-20 23:01:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-dfadf467-a4b9-46a7-b565-71b103278449",
        "node-d2a408b6-d96c-46ca-9af5-55bc906337e5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-20 23:01:17 |

2020-10-20 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:17 | ------------------------------------

2020-10-20 23:01:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dfadf467-a4b9-46a7-b565-71b103278449)"
}

2020-10-20 23:01:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2020-10-20 23:01:16 |

2020-10-20 23:01:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:16 | ------------------------------------

2020-10-20 23:01:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-20 23:01:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2020-10-20 23:01:17 |

2020-10-20 23:01:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-20 23:01:17 | ------------------------------------

2020-10-20 23:01:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dfadf467-a4b9-46a7-b565-71b103278449",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-20 23:01:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}