Generated by TestNG with ReportNG at 00:04 PDT on Tuesday 21 September 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.178s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2021-09-21 00:19:05 |

2021-09-21 00:19:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:05 | ------------------------------------

2021-09-21 00:19:05 | [Mutex] waiting for: [configured:node:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:node-3052303f-a616-4815-b126-455a340e8e1f]

2021-09-21 00:19:05 | [Mutex] received everything.

2021-09-21 00:19:05 | [Mutex] isItemNotified: configured:node:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:node-3052303f-a616-4815-b126-455a340e8e1f :: true

2021-09-21 00:19:06 | [Mutex] waiting for: [received:nodes:e6d2e7bd-9273-4e0b-bd16-cee9531987c8:localhost]

2021-09-21 00:19:06 | [Mutex] received everything.

2021-09-21 00:19:06 | [Mutex] isItemNotified: received:node:e6d2e7bd-9273-4e0b-bd16-cee9531987c8:localhost:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:Node 1a6ed2dc-40ea-4351-994b-28c4f850f6f3 :: true

2021-09-21 00:19:06 | [Mutex] waiting for: [received:nodes:c0e468a8-5f46-420a-92be-417cda55f254:localhost]

2021-09-21 00:19:06 | [Mutex] received everything.

2021-09-21 00:19:06 | [Mutex] isItemNotified: received:node:c0e468a8-5f46-420a-92be-417cda55f254:localhost:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:Node 1a6ed2dc-40ea-4351-994b-28c4f850f6f3 :: false

createNodes 1.824s
2021-09-21 00:19:02 |

2021-09-21 00:19:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:02 | ------------------------------------

2021-09-21 00:19:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "pubsub#title": "Node 1a6ed2dc-40ea-4351-994b-28c4f850f6f3"
}

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

2021-09-21 00:19:04 | [Mutex] waiting for: [received:nodes:67973efa-bbf2-4bed-88e9-77e2cc1f7229:localhost]

2021-09-21 00:19:04 | [Mutex] received everything.

2021-09-21 00:19:04 | [Mutex] isItemNotified: received:node:67973efa-bbf2-4bed-88e9-77e2cc1f7229:localhost:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:Node 1a6ed2dc-40ea-4351-994b-28c4f850f6f3 :: true

createSubnodes 1.026s
2021-09-21 00:19:04 |

2021-09-21 00:19:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:04 | ------------------------------------

2021-09-21 00:19:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3052303f-a616-4815-b126-455a340e8e1f",
    "pubsub#title": "Node 3052303f-a616-4815-b126-455a340e8e1f"
}

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

2021-09-21 00:19:05 | [Mutex] waiting for: [received:nodes:1f55867f-b001-46cd-94ab-ecd8e584deb7:localhost]

2021-09-21 00:19:05 | [Mutex] received everything.

2021-09-21 00:19:05 | [Mutex] isItemNotified: received:node:1f55867f-b001-46cd-94ab-ecd8e584deb7:localhost:node-3052303f-a616-4815-b126-455a340e8e1f:Node 3052303f-a616-4815-b126-455a340e8e1f :: true

deleteNodes 1.024s
2021-09-21 00:19:10 |

2021-09-21 00:19:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:10 | ------------------------------------

2021-09-21 00:19:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3052303f-a616-4815-b126-455a340e8e1f"
}

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

2021-09-21 00:19:11 | [Mutex] waiting for: [received:nodes:471216c7-9ddf-4316-adf8-42456988f91b:localhost]

2021-09-21 00:19:11 | [Mutex] received everything.

2021-09-21 00:19:11 | [Mutex] isItemNotified: received:node:471216c7-9ddf-4316-adf8-42456988f91b:localhost:node-3052303f-a616-4815-b126-455a340e8e1f:Node 3052303f-a616-4815-b126-455a340e8e1f :: false

deleteSubnodes 1.028s
2021-09-21 00:19:09 |

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

2021-09-21 00:19:09 | ------------------------------------

2021-09-21 00:19:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3"
}

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

2021-09-21 00:19:10 | [Mutex] waiting for: [received:nodes:31b50307-4d15-41e9-9cc3-483464ee179e:localhost]

2021-09-21 00:19:10 | [Mutex] received everything.

2021-09-21 00:19:10 | [Mutex] isItemNotified: received:node:31b50307-4d15-41e9-9cc3-483464ee179e:localhost:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:Node 1a6ed2dc-40ea-4351-994b-28c4f850f6f3 :: false

2021-09-21 00:19:10 | [Mutex] waiting for: [received:nodes:8da7d2dc-c602-4f4b-bbf7-6f7663987616:localhost]

2021-09-21 00:19:10 | [Mutex] received everything.

2021-09-21 00:19:10 | [Mutex] isItemNotified: received:node:8da7d2dc-c602-4f4b-bbf7-6f7663987616:localhost:node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3:Node 1a6ed2dc-40ea-4351-994b-28c4f850f6f3 :: false

publishItemsToNodes 0.046s
2021-09-21 00:19:07 |

2021-09-21 00:19:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:07 | ------------------------------------

2021-09-21 00:19:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "entry": "<test>item-8bf2814e-f7ca-4011-af60-35f91d9dedcf</test>",
    "item-id": "item-8bf2814e-f7ca-4011-af60-35f91d9dedcf"
}

2021-09-21 00:19:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8bf2814e-f7ca-4011-af60-35f91d9dedcf"
}

2021-09-21 00:19:07 | [Mutex] waiting for: [published:item:notifieditem-8bf2814e-f7ca-4011-af60-35f91d9dedcf:admin@test-domain.com]

2021-09-21 00:19:07 | [Mutex] received everything.

2021-09-21 00:19:07 | [Mutex] isItemNotified: published:item:notifieditem-8bf2814e-f7ca-4011-af60-35f91d9dedcf:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-09-21 00:19:08 |

2021-09-21 00:19:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:08 | ------------------------------------

2021-09-21 00:19:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "item-id": "item-8bf2814e-f7ca-4011-af60-35f91d9dedcf"
}

2021-09-21 00:19:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8bf2814e-f7ca-4011-af60-35f91d9dedcf"
}

2021-09-21 00:19:08 | [Mutex] received everything.

2021-09-21 00:19:08 | [Mutex] isItemNotified: retracted:item:notifieditem-8bf2814e-f7ca-4011-af60-35f91d9dedcf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.100s
2021-09-21 00:19:07 |

2021-09-21 00:19:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:07 | ------------------------------------

2021-09-21 00:19:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "item-id": "item-8bf2814e-f7ca-4011-af60-35f91d9dedcf"
}

2021-09-21 00:19:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "item-id": "item-8bf2814e-f7ca-4011-af60-35f91d9dedcf",
    "item": [
        "<item id=\"item-8bf2814e-f7ca-4011-af60-35f91d9dedcf\"><test>item-8bf2814e-f7ca-4011-af60-35f91d9dedcf</test></item>"
    ]
}

2021-09-21 00:19:08 | [Mutex] notify: [retrieved:item:item-8bf2814e-f7ca-4011-af60-35f91d9dedcf:payload-matches:true:localhost]

2021-09-21 00:19:08 | [Mutex] received everything.

2021-09-21 00:19:08 | [Mutex] isItemNotified: retrieved:item:item-8bf2814e-f7ca-4011-af60-35f91d9dedcf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-09-21 00:19:08 |

2021-09-21 00:19:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:08 | ------------------------------------

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

2021-09-21 00:19:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3052303f-a616-4815-b126-455a340e8e1f",
        "test",
        "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-09-21 00:19:08 |

2021-09-21 00:19:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:08 | ------------------------------------

2021-09-21 00:19:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3)"
}

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

subscribeNodes 1.012s
2021-09-21 00:19:06 |

2021-09-21 00:19:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:06 | ------------------------------------

2021-09-21 00:19:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2021-09-21 00:19:08 |

2021-09-21 00:19:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-21 00:19:08 | ------------------------------------

2021-09-21 00:19:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1a6ed2dc-40ea-4351-994b-28c4f850f6f3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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