Generated by TestNG with ReportNG at 22:42 PDT on Friday 23 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.332s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2020-10-23 22:59:55 |

2020-10-23 22:59:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:55 | ------------------------------------

2020-10-23 22:59:55 | [Mutex] waiting for: [configured:node:node-e74ea1da-c301-4277-80e6-f89f94912692:node-60540092-2d16-4061-ab9a-770f7d2cfaa0]

2020-10-23 22:59:55 | [Mutex] received everything.

2020-10-23 22:59:55 | [Mutex] isItemNotified: configured:node:node-e74ea1da-c301-4277-80e6-f89f94912692:node-60540092-2d16-4061-ab9a-770f7d2cfaa0 :: true

2020-10-23 22:59:56 | [Mutex] waiting for: [received:nodes:e543a5c6-e43a-44a4-b18d-c1e1808d785c:localhost]

2020-10-23 22:59:56 | [Mutex] received everything.

2020-10-23 22:59:56 | [Mutex] isItemNotified: received:node:e543a5c6-e43a-44a4-b18d-c1e1808d785c:localhost:node-e74ea1da-c301-4277-80e6-f89f94912692:Node e74ea1da-c301-4277-80e6-f89f94912692 :: true

2020-10-23 22:59:56 | [Mutex] waiting for: [received:nodes:5c011b40-3dc4-4372-9f26-38dafc3ef344:localhost]

2020-10-23 22:59:56 | [Mutex] waiting for: [received:nodes:5c011b40-3dc4-4372-9f26-38dafc3ef344:localhost]

2020-10-23 22:59:56 | [Mutex] received everything.

2020-10-23 22:59:56 | [Mutex] isItemNotified: received:node:5c011b40-3dc4-4372-9f26-38dafc3ef344:localhost:node-e74ea1da-c301-4277-80e6-f89f94912692:Node e74ea1da-c301-4277-80e6-f89f94912692 :: false

createNodes 1.918s
2020-10-23 22:59:52 |

2020-10-23 22:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:52 | ------------------------------------

2020-10-23 22:59:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "pubsub#title": "Node e74ea1da-c301-4277-80e6-f89f94912692"
}

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

2020-10-23 22:59:54 | [Mutex] waiting for: [received:nodes:10b52974-a09d-44d6-800c-714e7067104c:localhost]

2020-10-23 22:59:54 | [Mutex] received everything.

2020-10-23 22:59:54 | [Mutex] isItemNotified: received:node:10b52974-a09d-44d6-800c-714e7067104c:localhost:node-e74ea1da-c301-4277-80e6-f89f94912692:Node e74ea1da-c301-4277-80e6-f89f94912692 :: true

createSubnodes 1.027s
2020-10-23 22:59:54 |

2020-10-23 22:59:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:54 | ------------------------------------

2020-10-23 22:59:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-60540092-2d16-4061-ab9a-770f7d2cfaa0",
    "pubsub#title": "Node 60540092-2d16-4061-ab9a-770f7d2cfaa0"
}

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

2020-10-23 22:59:55 | [Mutex] waiting for: [received:nodes:1387b6c9-c30f-44e9-92f0-3de405b20fcb:localhost]

2020-10-23 22:59:55 | [Mutex] received everything.

2020-10-23 22:59:55 | [Mutex] isItemNotified: received:node:1387b6c9-c30f-44e9-92f0-3de405b20fcb:localhost:node-60540092-2d16-4061-ab9a-770f7d2cfaa0:Node 60540092-2d16-4061-ab9a-770f7d2cfaa0 :: true

deleteNodes 1.027s
2020-10-23 23:00:00 |

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

2020-10-23 23:00:00 | ------------------------------------

2020-10-23 23:00:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60540092-2d16-4061-ab9a-770f7d2cfaa0"
}

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

2020-10-23 23:00:01 | [Mutex] waiting for: [received:nodes:b015ea9c-f391-43bf-943a-2e4faf499fcf:localhost]

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

2020-10-23 23:00:01 | [Mutex] isItemNotified: received:node:b015ea9c-f391-43bf-943a-2e4faf499fcf:localhost:node-60540092-2d16-4061-ab9a-770f7d2cfaa0:Node 60540092-2d16-4061-ab9a-770f7d2cfaa0 :: false

deleteSubnodes 1.063s
2020-10-23 22:59:59 |

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

2020-10-23 22:59:59 | ------------------------------------

2020-10-23 22:59:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692"
}

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

2020-10-23 23:00:00 | [Mutex] waiting for: [received:nodes:de102ee4-c3f9-4b08-8ed9-9899786f56b5:localhost]

2020-10-23 23:00:00 | [Mutex] waiting for: [received:nodes:de102ee4-c3f9-4b08-8ed9-9899786f56b5:localhost]

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

2020-10-23 23:00:00 | [Mutex] isItemNotified: received:node:de102ee4-c3f9-4b08-8ed9-9899786f56b5:localhost:node-e74ea1da-c301-4277-80e6-f89f94912692:Node e74ea1da-c301-4277-80e6-f89f94912692 :: false

2020-10-23 23:00:00 | [Mutex] waiting for: [received:nodes:23f3d15b-a02b-4156-b503-42d21544bc07:localhost]

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

2020-10-23 23:00:00 | [Mutex] isItemNotified: received:node:23f3d15b-a02b-4156-b503-42d21544bc07:localhost:node-e74ea1da-c301-4277-80e6-f89f94912692:Node e74ea1da-c301-4277-80e6-f89f94912692 :: false

publishItemsToNodes 0.075s
2020-10-23 22:59:57 |

2020-10-23 22:59:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:57 | ------------------------------------

2020-10-23 22:59:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "entry": "<test>item-14bc67dc-6866-4b4f-b319-f0ec3436b403</test>",
    "item-id": "item-14bc67dc-6866-4b4f-b319-f0ec3436b403"
}

2020-10-23 22:59:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-14bc67dc-6866-4b4f-b319-f0ec3436b403"
}

2020-10-23 22:59:58 | [Mutex] waiting for: [published:item:notifieditem-14bc67dc-6866-4b4f-b319-f0ec3436b403:admin@test-domain.com]

2020-10-23 22:59:58 | [Mutex] received everything.

2020-10-23 22:59:58 | [Mutex] isItemNotified: published:item:notifieditem-14bc67dc-6866-4b4f-b319-f0ec3436b403:admin@test-domain.com :: true

retractItemsFromNodes 0.078s
2020-10-23 22:59:58 |

2020-10-23 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:58 | ------------------------------------

2020-10-23 22:59:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "item-id": "item-14bc67dc-6866-4b4f-b319-f0ec3436b403"
}

2020-10-23 22:59:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-14bc67dc-6866-4b4f-b319-f0ec3436b403"
}

2020-10-23 22:59:58 | [Mutex] received everything.

2020-10-23 22:59:58 | [Mutex] isItemNotified: retracted:item:notifieditem-14bc67dc-6866-4b4f-b319-f0ec3436b403:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2020-10-23 22:59:58 |

2020-10-23 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:58 | ------------------------------------

2020-10-23 22:59:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "item-id": "item-14bc67dc-6866-4b4f-b319-f0ec3436b403"
}

2020-10-23 22:59:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "item-id": "item-14bc67dc-6866-4b4f-b319-f0ec3436b403",
    "item": [
        "<item id=\"item-14bc67dc-6866-4b4f-b319-f0ec3436b403\"><test>item-14bc67dc-6866-4b4f-b319-f0ec3436b403</test></item>"
    ]
}

2020-10-23 22:59:58 | [Mutex] notify: [retrieved:item:item-14bc67dc-6866-4b4f-b319-f0ec3436b403:payload-matches:true:localhost]

2020-10-23 22:59:58 | [Mutex] received everything.

2020-10-23 22:59:58 | [Mutex] isItemNotified: retrieved:item:item-14bc67dc-6866-4b4f-b319-f0ec3436b403:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.065s
2020-10-23 22:59:58 |

2020-10-23 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:58 | ------------------------------------

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

2020-10-23 22:59:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e74ea1da-c301-4277-80e6-f89f94912692",
        "node-60540092-2d16-4061-ab9a-770f7d2cfaa0"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-23 22:59:58 |

2020-10-23 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:58 | ------------------------------------

2020-10-23 22:59:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e74ea1da-c301-4277-80e6-f89f94912692)"
}

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

subscribeNodes 1.012s
2020-10-23 22:59:56 |

2020-10-23 22:59:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:56 | ------------------------------------

2020-10-23 22:59:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-10-23 22:59:58 |

2020-10-23 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-23 22:59:58 | ------------------------------------

2020-10-23 22:59:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e74ea1da-c301-4277-80e6-f89f94912692",
    "jids": [
        "admin@test-domain.com"
    ]
}

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