Generated by TestNG with ReportNG at 21:13 PST on Monday 09 November 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.181s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2020-11-09 21:29:14 |

2020-11-09 21:29:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:14 | ------------------------------------

2020-11-09 21:29:14 | [Mutex] waiting for: [configured:node:node-692938c8-9019-46e1-aa6a-1369c0f672ab:node-13f8f974-72c8-4af6-9ee9-4b42687fa733]

2020-11-09 21:29:14 | [Mutex] received everything.

2020-11-09 21:29:14 | [Mutex] isItemNotified: configured:node:node-692938c8-9019-46e1-aa6a-1369c0f672ab:node-13f8f974-72c8-4af6-9ee9-4b42687fa733 :: true

2020-11-09 21:29:15 | [Mutex] waiting for: [received:nodes:80fd4411-dff1-4090-9769-2a46e388b1e2:localhost]

2020-11-09 21:29:15 | [Mutex] received everything.

2020-11-09 21:29:15 | [Mutex] isItemNotified: received:node:80fd4411-dff1-4090-9769-2a46e388b1e2:localhost:node-692938c8-9019-46e1-aa6a-1369c0f672ab:Node 692938c8-9019-46e1-aa6a-1369c0f672ab :: true

2020-11-09 21:29:15 | [Mutex] waiting for: [received:nodes:f919c452-506c-4c5a-b08a-d9681c66e990:localhost]

2020-11-09 21:29:15 | [Mutex] received everything.

2020-11-09 21:29:15 | [Mutex] isItemNotified: received:node:f919c452-506c-4c5a-b08a-d9681c66e990:localhost:node-692938c8-9019-46e1-aa6a-1369c0f672ab:Node 692938c8-9019-46e1-aa6a-1369c0f672ab :: false

createNodes 1.709s
2020-11-09 21:29:11 |

2020-11-09 21:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:11 | ------------------------------------

2020-11-09 21:29:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "pubsub#title": "Node 692938c8-9019-46e1-aa6a-1369c0f672ab"
}

2020-11-09 21:29:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:13 | [Mutex] waiting for: [received:nodes:d9cd3c74-fa0a-4824-93fe-11da79e32613:localhost]

2020-11-09 21:29:13 | [Mutex] waiting for: [received:nodes:d9cd3c74-fa0a-4824-93fe-11da79e32613:localhost]

2020-11-09 21:29:13 | [Mutex] received everything.

2020-11-09 21:29:13 | [Mutex] isItemNotified: received:node:d9cd3c74-fa0a-4824-93fe-11da79e32613:localhost:node-692938c8-9019-46e1-aa6a-1369c0f672ab:Node 692938c8-9019-46e1-aa6a-1369c0f672ab :: true

createSubnodes 1.032s
2020-11-09 21:29:13 |

2020-11-09 21:29:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:13 | ------------------------------------

2020-11-09 21:29:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-13f8f974-72c8-4af6-9ee9-4b42687fa733",
    "pubsub#title": "Node 13f8f974-72c8-4af6-9ee9-4b42687fa733"
}

2020-11-09 21:29:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:14 | [Mutex] waiting for: [received:nodes:be3ef7b5-7532-4c50-ade9-9e0411518745:localhost]

2020-11-09 21:29:14 | [Mutex] waiting for: [received:nodes:be3ef7b5-7532-4c50-ade9-9e0411518745:localhost]

2020-11-09 21:29:14 | [Mutex] received everything.

2020-11-09 21:29:14 | [Mutex] isItemNotified: received:node:be3ef7b5-7532-4c50-ade9-9e0411518745:localhost:node-13f8f974-72c8-4af6-9ee9-4b42687fa733:Node 13f8f974-72c8-4af6-9ee9-4b42687fa733 :: true

deleteNodes 1.023s
2020-11-09 21:29:18 |

2020-11-09 21:29:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:18 | ------------------------------------

2020-11-09 21:29:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-13f8f974-72c8-4af6-9ee9-4b42687fa733"
}

2020-11-09 21:29:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:19 | [Mutex] waiting for: [received:nodes:93881c6c-4f9d-49c9-bcb9-19d9bc372aa0:localhost]

2020-11-09 21:29:19 | [Mutex] received everything.

2020-11-09 21:29:19 | [Mutex] isItemNotified: received:node:93881c6c-4f9d-49c9-bcb9-19d9bc372aa0:localhost:node-13f8f974-72c8-4af6-9ee9-4b42687fa733:Node 13f8f974-72c8-4af6-9ee9-4b42687fa733 :: false

deleteSubnodes 1.029s
2020-11-09 21:29:17 |

2020-11-09 21:29:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:17 | ------------------------------------

2020-11-09 21:29:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab"
}

2020-11-09 21:29:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-09 21:29:18 | [Mutex] waiting for: [received:nodes:82e26498-a737-4e30-893d-e93273100914:localhost]

2020-11-09 21:29:18 | [Mutex] received everything.

2020-11-09 21:29:18 | [Mutex] isItemNotified: received:node:82e26498-a737-4e30-893d-e93273100914:localhost:node-692938c8-9019-46e1-aa6a-1369c0f672ab:Node 692938c8-9019-46e1-aa6a-1369c0f672ab :: false

2020-11-09 21:29:18 | [Mutex] waiting for: [received:nodes:58e4b2b8-ea0f-4e39-a143-e5438983d1f8:localhost]

2020-11-09 21:29:18 | [Mutex] received everything.

2020-11-09 21:29:18 | [Mutex] isItemNotified: received:node:58e4b2b8-ea0f-4e39-a143-e5438983d1f8:localhost:node-692938c8-9019-46e1-aa6a-1369c0f672ab:Node 692938c8-9019-46e1-aa6a-1369c0f672ab :: false

publishItemsToNodes 0.040s
2020-11-09 21:29:16 |

2020-11-09 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:16 | ------------------------------------

2020-11-09 21:29:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "entry": "<test>item-bb7237a7-56af-4059-9205-1b86fe670b3d</test>",
    "item-id": "item-bb7237a7-56af-4059-9205-1b86fe670b3d"
}

2020-11-09 21:29:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bb7237a7-56af-4059-9205-1b86fe670b3d"
}

2020-11-09 21:29:16 | [Mutex] waiting for: [published:item:notifieditem-bb7237a7-56af-4059-9205-1b86fe670b3d:admin@test-domain.com]

2020-11-09 21:29:16 | [Mutex] received everything.

2020-11-09 21:29:16 | [Mutex] isItemNotified: published:item:notifieditem-bb7237a7-56af-4059-9205-1b86fe670b3d:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2020-11-09 21:29:16 |

2020-11-09 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:16 | ------------------------------------

2020-11-09 21:29:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "item-id": "item-bb7237a7-56af-4059-9205-1b86fe670b3d"
}

2020-11-09 21:29:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bb7237a7-56af-4059-9205-1b86fe670b3d"
}

2020-11-09 21:29:16 | [Mutex] waiting for: [retracted:item:notifieditem-bb7237a7-56af-4059-9205-1b86fe670b3d:admin@test-domain.com]

2020-11-09 21:29:16 | [Mutex] received everything.

2020-11-09 21:29:16 | [Mutex] isItemNotified: retracted:item:notifieditem-bb7237a7-56af-4059-9205-1b86fe670b3d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.100s
2020-11-09 21:29:16 |

2020-11-09 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:16 | ------------------------------------

2020-11-09 21:29:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "item-id": "item-bb7237a7-56af-4059-9205-1b86fe670b3d"
}

2020-11-09 21:29:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "item-id": "item-bb7237a7-56af-4059-9205-1b86fe670b3d",
    "item": [
        "<item id=\"item-bb7237a7-56af-4059-9205-1b86fe670b3d\"><test>item-bb7237a7-56af-4059-9205-1b86fe670b3d</test></item>"
    ]
}

2020-11-09 21:29:16 | [Mutex] notify: [retrieved:item:item-bb7237a7-56af-4059-9205-1b86fe670b3d:payload-matches:true:localhost]

2020-11-09 21:29:16 | [Mutex] received everything.

2020-11-09 21:29:16 | [Mutex] isItemNotified: retrieved:item:item-bb7237a7-56af-4059-9205-1b86fe670b3d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2020-11-09 21:29:16 |

2020-11-09 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:16 | ------------------------------------

2020-11-09 21:29:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-09 21:29:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-13f8f974-72c8-4af6-9ee9-4b42687fa733",
        "node-692938c8-9019-46e1-aa6a-1369c0f672ab"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-09 21:29:16 |

2020-11-09 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:16 | ------------------------------------

2020-11-09 21:29:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-692938c8-9019-46e1-aa6a-1369c0f672ab)"
}

2020-11-09 21:29:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2020-11-09 21:29:15 |

2020-11-09 21:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:15 | ------------------------------------

2020-11-09 21:29:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-09 21:29:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2020-11-09 21:29:16 |

2020-11-09 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-09 21:29:16 | ------------------------------------

2020-11-09 21:29:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-692938c8-9019-46e1-aa6a-1369c0f672ab",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-09 21:29:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}