Generated by TestNG with ReportNG at 21:48 PST on Monday 21 February 2022
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 : 8.796s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2022-02-21 22:04:15 |

2022-02-21 22:04:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:15 | ------------------------------------

2022-02-21 22:04:15 | [Mutex] waiting for: [configured:node:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:node-e96501de-9a54-4c4d-b41c-092b4ebff22d]

2022-02-21 22:04:15 | [Mutex] received everything.

2022-02-21 22:04:15 | [Mutex] isItemNotified: configured:node:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:node-e96501de-9a54-4c4d-b41c-092b4ebff22d :: true

2022-02-21 22:04:16 | [Mutex] waiting for: [received:nodes:ba3f337e-819d-40d6-bccb-dc6b5203ae42:localhost]

2022-02-21 22:04:16 | [Mutex] received everything.

2022-02-21 22:04:16 | [Mutex] isItemNotified: received:node:ba3f337e-819d-40d6-bccb-dc6b5203ae42:localhost:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:Node 32d638d2-b1d0-4e9d-8493-8d3659b9c02e :: true

2022-02-21 22:04:16 | [Mutex] waiting for: [received:nodes:1bffe6e5-518d-414e-bc40-9476c3864aff:localhost]

2022-02-21 22:04:16 | [Mutex] received everything.

2022-02-21 22:04:16 | [Mutex] isItemNotified: received:node:1bffe6e5-518d-414e-bc40-9476c3864aff:localhost:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:Node 32d638d2-b1d0-4e9d-8493-8d3659b9c02e :: false

createNodes 1.503s
2022-02-21 22:04:12 |

2022-02-21 22:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:12 | ------------------------------------

2022-02-21 22:04: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-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "pubsub#title": "Node 32d638d2-b1d0-4e9d-8493-8d3659b9c02e"
}

2022-02-21 22:04:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 22:04:14 | [Mutex] waiting for: [received:nodes:6cab1930-bd35-4190-a93f-a80a4d443018:localhost]

2022-02-21 22:04:14 | [Mutex] waiting for: [received:nodes:6cab1930-bd35-4190-a93f-a80a4d443018:localhost]

2022-02-21 22:04:14 | [Mutex] waiting for: [received:nodes:6cab1930-bd35-4190-a93f-a80a4d443018:localhost]

2022-02-21 22:04:14 | [Mutex] received everything.

2022-02-21 22:04:14 | [Mutex] isItemNotified: received:node:6cab1930-bd35-4190-a93f-a80a4d443018:localhost:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:Node 32d638d2-b1d0-4e9d-8493-8d3659b9c02e :: true

createSubnodes 1.026s
2022-02-21 22:04:14 |

2022-02-21 22:04:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:14 | ------------------------------------

2022-02-21 22:04: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-e96501de-9a54-4c4d-b41c-092b4ebff22d",
    "pubsub#title": "Node e96501de-9a54-4c4d-b41c-092b4ebff22d"
}

2022-02-21 22:04:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 22:04:15 | [Mutex] waiting for: [received:nodes:f56db577-4f1a-4367-872f-fcc28baed786:localhost]

2022-02-21 22:04:15 | [Mutex] received everything.

2022-02-21 22:04:15 | [Mutex] isItemNotified: received:node:f56db577-4f1a-4367-872f-fcc28baed786:localhost:node-e96501de-9a54-4c4d-b41c-092b4ebff22d:Node e96501de-9a54-4c4d-b41c-092b4ebff22d :: true

deleteNodes 1.024s
2022-02-21 22:04:19 |

2022-02-21 22:04:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:19 | ------------------------------------

2022-02-21 22:04:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e96501de-9a54-4c4d-b41c-092b4ebff22d"
}

2022-02-21 22:04:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 22:04:20 | [Mutex] waiting for: [received:nodes:e72e3984-73f1-417e-9927-6006f014c172:localhost]

2022-02-21 22:04:20 | [Mutex] received everything.

2022-02-21 22:04:20 | [Mutex] isItemNotified: received:node:e72e3984-73f1-417e-9927-6006f014c172:localhost:node-e96501de-9a54-4c4d-b41c-092b4ebff22d:Node e96501de-9a54-4c4d-b41c-092b4ebff22d :: false

deleteSubnodes 1.029s
2022-02-21 22:04:18 |

2022-02-21 22:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:18 | ------------------------------------

2022-02-21 22:04:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e"
}

2022-02-21 22:04:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-21 22:04:19 | [Mutex] waiting for: [received:nodes:67df0d0c-7790-4230-94a1-0d4b75249321:localhost]

2022-02-21 22:04:19 | [Mutex] received everything.

2022-02-21 22:04:19 | [Mutex] isItemNotified: received:node:67df0d0c-7790-4230-94a1-0d4b75249321:localhost:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:Node 32d638d2-b1d0-4e9d-8493-8d3659b9c02e :: false

2022-02-21 22:04:19 | [Mutex] waiting for: [received:nodes:828dbfe8-3f61-44fa-b8a8-53e2b585e5de:localhost]

2022-02-21 22:04:19 | [Mutex] received everything.

2022-02-21 22:04:19 | [Mutex] isItemNotified: received:node:828dbfe8-3f61-44fa-b8a8-53e2b585e5de:localhost:node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e:Node 32d638d2-b1d0-4e9d-8493-8d3659b9c02e :: false

publishItemsToNodes 0.070s
2022-02-21 22:04:17 |

2022-02-21 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:17 | ------------------------------------

2022-02-21 22:04:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "entry": "<test>item-b0973019-e524-45d8-9f6f-a2daf3fab52e</test>",
    "item-id": "item-b0973019-e524-45d8-9f6f-a2daf3fab52e"
}

2022-02-21 22:04:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b0973019-e524-45d8-9f6f-a2daf3fab52e"
}

2022-02-21 22:04:17 | [Mutex] waiting for: [published:item:notifieditem-b0973019-e524-45d8-9f6f-a2daf3fab52e:admin@test-domain.com]

2022-02-21 22:04:17 | [Mutex] received everything.

2022-02-21 22:04:17 | [Mutex] isItemNotified: published:item:notifieditem-b0973019-e524-45d8-9f6f-a2daf3fab52e:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2022-02-21 22:04:17 |

2022-02-21 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:17 | ------------------------------------

2022-02-21 22:04:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "item-id": "item-b0973019-e524-45d8-9f6f-a2daf3fab52e"
}

2022-02-21 22:04:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b0973019-e524-45d8-9f6f-a2daf3fab52e"
}

2022-02-21 22:04:17 | [Mutex] received everything.

2022-02-21 22:04:17 | [Mutex] isItemNotified: retracted:item:notifieditem-b0973019-e524-45d8-9f6f-a2daf3fab52e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2022-02-21 22:04:17 |

2022-02-21 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:17 | ------------------------------------

2022-02-21 22:04:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "item-id": "item-b0973019-e524-45d8-9f6f-a2daf3fab52e"
}

2022-02-21 22:04:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "item-id": "item-b0973019-e524-45d8-9f6f-a2daf3fab52e",
    "item": [
        "<item id=\"item-b0973019-e524-45d8-9f6f-a2daf3fab52e\"><test>item-b0973019-e524-45d8-9f6f-a2daf3fab52e</test></item>"
    ]
}

2022-02-21 22:04:17 | [Mutex] notify: [retrieved:item:item-b0973019-e524-45d8-9f6f-a2daf3fab52e:payload-matches:true:localhost]

2022-02-21 22:04:17 | [Mutex] received everything.

2022-02-21 22:04:17 | [Mutex] isItemNotified: retrieved:item:item-b0973019-e524-45d8-9f6f-a2daf3fab52e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.065s
2022-02-21 22:04:17 |

2022-02-21 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:17 | ------------------------------------

2022-02-21 22:04:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-21 22:04:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
        "node-e96501de-9a54-4c4d-b41c-092b4ebff22d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-21 22:04:17 |

2022-02-21 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:17 | ------------------------------------

2022-02-21 22:04:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e)"
}

2022-02-21 22:04:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-02-21 22:04:16 |

2022-02-21 22:04:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:16 | ------------------------------------

2022-02-21 22:04:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-21 22:04:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-02-21 22:04:17 |

2022-02-21 22:04:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:04:17 | ------------------------------------

2022-02-21 22:04:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-32d638d2-b1d0-4e9d-8493-8d3659b9c02e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-21 22:04:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}