Generated by TestNG with ReportNG at 22:42 PDT on Friday 25 September 2020
root@0c1cdac2218e / 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.080s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2020-09-25 22:58:46 |

2020-09-25 22:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:46 | ------------------------------------

2020-09-25 22:58:46 | [Mutex] waiting for: [configured:node:node-4cf78595-8309-4e01-9c24-1278f3456efa:node-12ca232b-5555-42a6-8ad2-820610c45478]

2020-09-25 22:58:46 | [Mutex] received everything.

2020-09-25 22:58:46 | [Mutex] isItemNotified: configured:node:node-4cf78595-8309-4e01-9c24-1278f3456efa:node-12ca232b-5555-42a6-8ad2-820610c45478 :: true

2020-09-25 22:58:47 | [Mutex] waiting for: [received:nodes:17822d78-1a18-4bc3-8ca1-c3991da72ab3:localhost]

2020-09-25 22:58:47 | [Mutex] received everything.

2020-09-25 22:58:47 | [Mutex] isItemNotified: received:node:17822d78-1a18-4bc3-8ca1-c3991da72ab3:localhost:node-4cf78595-8309-4e01-9c24-1278f3456efa:Node 4cf78595-8309-4e01-9c24-1278f3456efa :: true

2020-09-25 22:58:47 | [Mutex] waiting for: [received:nodes:c0f9760f-41e4-463e-ba1f-51c7a4164759:localhost]

2020-09-25 22:58:47 | [Mutex] received everything.

2020-09-25 22:58:47 | [Mutex] isItemNotified: received:node:c0f9760f-41e4-463e-ba1f-51c7a4164759:localhost:node-4cf78595-8309-4e01-9c24-1278f3456efa:Node 4cf78595-8309-4e01-9c24-1278f3456efa :: false

createNodes 1.708s
2020-09-25 22:58:43 |

2020-09-25 22:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:43 | ------------------------------------

2020-09-25 22:58:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "pubsub#title": "Node 4cf78595-8309-4e01-9c24-1278f3456efa"
}

2020-09-25 22:58:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:58:45 | [Mutex] waiting for: [received:nodes:8677eb8c-6571-4fd9-8318-fe3083c1cce9:localhost]

2020-09-25 22:58:45 | [Mutex] waiting for: [received:nodes:8677eb8c-6571-4fd9-8318-fe3083c1cce9:localhost]

2020-09-25 22:58:45 | [Mutex] received everything.

2020-09-25 22:58:45 | [Mutex] isItemNotified: received:node:8677eb8c-6571-4fd9-8318-fe3083c1cce9:localhost:node-4cf78595-8309-4e01-9c24-1278f3456efa:Node 4cf78595-8309-4e01-9c24-1278f3456efa :: true

createSubnodes 1.052s
2020-09-25 22:58:45 |

2020-09-25 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:45 | ------------------------------------

2020-09-25 22:58:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-12ca232b-5555-42a6-8ad2-820610c45478",
    "pubsub#title": "Node 12ca232b-5555-42a6-8ad2-820610c45478"
}

2020-09-25 22:58:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:58:46 | [Mutex] waiting for: [received:nodes:e8e78438-2bae-453e-b56f-ce1c2aa755bc:localhost]

2020-09-25 22:58:46 | [Mutex] received everything.

2020-09-25 22:58:46 | [Mutex] isItemNotified: received:node:e8e78438-2bae-453e-b56f-ce1c2aa755bc:localhost:node-12ca232b-5555-42a6-8ad2-820610c45478:Node 12ca232b-5555-42a6-8ad2-820610c45478 :: true

deleteNodes 1.020s
2020-09-25 22:58:50 |

2020-09-25 22:58:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:50 | ------------------------------------

2020-09-25 22:58:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-12ca232b-5555-42a6-8ad2-820610c45478"
}

2020-09-25 22:58:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:58:51 | [Mutex] waiting for: [received:nodes:c31ada38-4503-4437-bed7-07c890dcae19:localhost]

2020-09-25 22:58:51 | [Mutex] received everything.

2020-09-25 22:58:51 | [Mutex] isItemNotified: received:node:c31ada38-4503-4437-bed7-07c890dcae19:localhost:node-12ca232b-5555-42a6-8ad2-820610c45478:Node 12ca232b-5555-42a6-8ad2-820610c45478 :: false

deleteSubnodes 1.031s
2020-09-25 22:58:49 |

2020-09-25 22:58:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:49 | ------------------------------------

2020-09-25 22:58:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa"
}

2020-09-25 22:58:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-25 22:58:50 | [Mutex] waiting for: [received:nodes:f5c015f3-245b-47f4-984b-e90c731ccb8c:localhost]

2020-09-25 22:58:50 | [Mutex] received everything.

2020-09-25 22:58:50 | [Mutex] isItemNotified: received:node:f5c015f3-245b-47f4-984b-e90c731ccb8c:localhost:node-4cf78595-8309-4e01-9c24-1278f3456efa:Node 4cf78595-8309-4e01-9c24-1278f3456efa :: false

2020-09-25 22:58:50 | [Mutex] waiting for: [received:nodes:9d788b05-6296-4478-b906-b48efb38f0ac:localhost]

2020-09-25 22:58:50 | [Mutex] received everything.

2020-09-25 22:58:50 | [Mutex] isItemNotified: received:node:9d788b05-6296-4478-b906-b48efb38f0ac:localhost:node-4cf78595-8309-4e01-9c24-1278f3456efa:Node 4cf78595-8309-4e01-9c24-1278f3456efa :: false

publishItemsToNodes 0.035s
2020-09-25 22:58:48 |

2020-09-25 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:48 | ------------------------------------

2020-09-25 22:58:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "entry": "<test>item-ed173656-a47b-4232-bd80-e013e2dfbbf7</test>",
    "item-id": "item-ed173656-a47b-4232-bd80-e013e2dfbbf7"
}

2020-09-25 22:58:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ed173656-a47b-4232-bd80-e013e2dfbbf7"
}

2020-09-25 22:58:48 | [Mutex] waiting for: [published:item:notifieditem-ed173656-a47b-4232-bd80-e013e2dfbbf7:admin@test-domain.com]

2020-09-25 22:58:48 | [Mutex] received everything.

2020-09-25 22:58:48 | [Mutex] isItemNotified: published:item:notifieditem-ed173656-a47b-4232-bd80-e013e2dfbbf7:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2020-09-25 22:58:48 |

2020-09-25 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:48 | ------------------------------------

2020-09-25 22:58:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "item-id": "item-ed173656-a47b-4232-bd80-e013e2dfbbf7"
}

2020-09-25 22:58:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ed173656-a47b-4232-bd80-e013e2dfbbf7"
}

2020-09-25 22:58:48 | [Mutex] received everything.

2020-09-25 22:58:48 | [Mutex] isItemNotified: retracted:item:notifieditem-ed173656-a47b-4232-bd80-e013e2dfbbf7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-09-25 22:58:48 |

2020-09-25 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:48 | ------------------------------------

2020-09-25 22:58:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "item-id": "item-ed173656-a47b-4232-bd80-e013e2dfbbf7"
}

2020-09-25 22:58:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "item-id": "item-ed173656-a47b-4232-bd80-e013e2dfbbf7",
    "item": [
        "<item id=\"item-ed173656-a47b-4232-bd80-e013e2dfbbf7\"><test>item-ed173656-a47b-4232-bd80-e013e2dfbbf7</test></item>"
    ]
}

2020-09-25 22:58:48 | [Mutex] notify: [retrieved:item:item-ed173656-a47b-4232-bd80-e013e2dfbbf7:payload-matches:true:localhost]

2020-09-25 22:58:48 | [Mutex] received everything.

2020-09-25 22:58:48 | [Mutex] isItemNotified: retrieved:item:item-ed173656-a47b-4232-bd80-e013e2dfbbf7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-25 22:58:48 |

2020-09-25 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:48 | ------------------------------------

2020-09-25 22:58:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-25 22:58:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4cf78595-8309-4e01-9c24-1278f3456efa",
        "node-12ca232b-5555-42a6-8ad2-820610c45478"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-09-25 22:58:48 |

2020-09-25 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:48 | ------------------------------------

2020-09-25 22:58:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4cf78595-8309-4e01-9c24-1278f3456efa)"
}

2020-09-25 22:58:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-09-25 22:58:47 |

2020-09-25 22:58:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:47 | ------------------------------------

2020-09-25 22:58:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 22:58:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-25 22:58:48 |

2020-09-25 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-25 22:58:48 | ------------------------------------

2020-09-25 22:58:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4cf78595-8309-4e01-9c24-1278f3456efa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-25 22:58:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}