Generated by TestNG with ReportNG at 22:31 PDT on Tuesday 14 June 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.584s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2022-06-14 22:46:12 |

2022-06-14 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:12 | ------------------------------------

2022-06-14 22:46:12 | [Mutex] waiting for: [configured:node:node-1198badd-e990-405f-b1e8-6ede4a4a139a:node-4f81af85-a62f-4c3a-8be0-944215333fa3]

2022-06-14 22:46:12 | [Mutex] received everything.

2022-06-14 22:46:12 | [Mutex] isItemNotified: configured:node:node-1198badd-e990-405f-b1e8-6ede4a4a139a:node-4f81af85-a62f-4c3a-8be0-944215333fa3 :: true

2022-06-14 22:46:13 | [Mutex] waiting for: [received:nodes:7506d261-66b8-41e5-b035-16d9148675df:localhost]

2022-06-14 22:46:13 | [Mutex] received everything.

2022-06-14 22:46:13 | [Mutex] isItemNotified: received:node:7506d261-66b8-41e5-b035-16d9148675df:localhost:node-1198badd-e990-405f-b1e8-6ede4a4a139a:Node 1198badd-e990-405f-b1e8-6ede4a4a139a :: true

2022-06-14 22:46:13 | [Mutex] waiting for: [received:nodes:2f2a898c-21f4-468c-b31f-20ac0ff0532d:localhost]

2022-06-14 22:46:13 | [Mutex] received everything.

2022-06-14 22:46:13 | [Mutex] isItemNotified: received:node:2f2a898c-21f4-468c-b31f-20ac0ff0532d:localhost:node-1198badd-e990-405f-b1e8-6ede4a4a139a:Node 1198badd-e990-405f-b1e8-6ede4a4a139a :: false

createNodes 1.533s
2022-06-14 22:46:09 |

2022-06-14 22:46:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:09 | ------------------------------------

2022-06-14 22:46:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "pubsub#title": "Node 1198badd-e990-405f-b1e8-6ede4a4a139a"
}

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

2022-06-14 22:46:11 | [Mutex] waiting for: [received:nodes:a236e624-699a-4397-a70f-47ea7a7a851d:localhost]

2022-06-14 22:46:11 | [Mutex] received everything.

2022-06-14 22:46:11 | [Mutex] isItemNotified: received:node:a236e624-699a-4397-a70f-47ea7a7a851d:localhost:node-1198badd-e990-405f-b1e8-6ede4a4a139a:Node 1198badd-e990-405f-b1e8-6ede4a4a139a :: true

createSubnodes 1.028s
2022-06-14 22:46:11 |

2022-06-14 22:46:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:11 | ------------------------------------

2022-06-14 22:46:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4f81af85-a62f-4c3a-8be0-944215333fa3",
    "pubsub#title": "Node 4f81af85-a62f-4c3a-8be0-944215333fa3"
}

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

2022-06-14 22:46:12 | [Mutex] waiting for: [received:nodes:5c4d161c-b7bd-466c-a420-1d1831fd899c:localhost]

2022-06-14 22:46:12 | [Mutex] received everything.

2022-06-14 22:46:12 | [Mutex] isItemNotified: received:node:5c4d161c-b7bd-466c-a420-1d1831fd899c:localhost:node-4f81af85-a62f-4c3a-8be0-944215333fa3:Node 4f81af85-a62f-4c3a-8be0-944215333fa3 :: true

deleteNodes 1.021s
2022-06-14 22:46:16 |

2022-06-14 22:46:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:16 | ------------------------------------

2022-06-14 22:46:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4f81af85-a62f-4c3a-8be0-944215333fa3"
}

2022-06-14 22:46:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 22:46:17 | [Mutex] waiting for: [received:nodes:e7a8d040-f877-4861-8aeb-7277b5aee541:localhost]

2022-06-14 22:46:17 | [Mutex] received everything.

2022-06-14 22:46:17 | [Mutex] isItemNotified: received:node:e7a8d040-f877-4861-8aeb-7277b5aee541:localhost:node-4f81af85-a62f-4c3a-8be0-944215333fa3:Node 4f81af85-a62f-4c3a-8be0-944215333fa3 :: false

deleteSubnodes 1.024s
2022-06-14 22:46:15 |

2022-06-14 22:46:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:15 | ------------------------------------

2022-06-14 22:46:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a"
}

2022-06-14 22:46:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 22:46:16 | [Mutex] waiting for: [received:nodes:3a3f2920-573b-46eb-9be9-af9c68014191:localhost]

2022-06-14 22:46:16 | [Mutex] received everything.

2022-06-14 22:46:16 | [Mutex] isItemNotified: received:node:3a3f2920-573b-46eb-9be9-af9c68014191:localhost:node-1198badd-e990-405f-b1e8-6ede4a4a139a:Node 1198badd-e990-405f-b1e8-6ede4a4a139a :: false

2022-06-14 22:46:16 | [Mutex] waiting for: [received:nodes:a32c088b-e19d-4de4-88b2-cb2368d394eb:localhost]

2022-06-14 22:46:16 | [Mutex] received everything.

2022-06-14 22:46:16 | [Mutex] isItemNotified: received:node:a32c088b-e19d-4de4-88b2-cb2368d394eb:localhost:node-1198badd-e990-405f-b1e8-6ede4a4a139a:Node 1198badd-e990-405f-b1e8-6ede4a4a139a :: false

publishItemsToNodes 0.056s
2022-06-14 22:46:14 |

2022-06-14 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:14 | ------------------------------------

2022-06-14 22:46:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "entry": "<test>item-30fa5703-e809-435f-a7c1-f67a5dd168bc</test>",
    "item-id": "item-30fa5703-e809-435f-a7c1-f67a5dd168bc"
}

2022-06-14 22:46:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-30fa5703-e809-435f-a7c1-f67a5dd168bc"
}

2022-06-14 22:46:14 | [Mutex] waiting for: [published:item:notifieditem-30fa5703-e809-435f-a7c1-f67a5dd168bc:admin@test-domain.com]

2022-06-14 22:46:14 | [Mutex] received everything.

2022-06-14 22:46:14 | [Mutex] isItemNotified: published:item:notifieditem-30fa5703-e809-435f-a7c1-f67a5dd168bc:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2022-06-14 22:46:14 |

2022-06-14 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:14 | ------------------------------------

2022-06-14 22:46:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "item-id": "item-30fa5703-e809-435f-a7c1-f67a5dd168bc"
}

2022-06-14 22:46:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-30fa5703-e809-435f-a7c1-f67a5dd168bc"
}

2022-06-14 22:46:14 | [Mutex] waiting for: [retracted:item:notifieditem-30fa5703-e809-435f-a7c1-f67a5dd168bc:admin@test-domain.com]

2022-06-14 22:46:14 | [Mutex] received everything.

2022-06-14 22:46:14 | [Mutex] isItemNotified: retracted:item:notifieditem-30fa5703-e809-435f-a7c1-f67a5dd168bc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.029s
2022-06-14 22:46:14 |

2022-06-14 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:14 | ------------------------------------

2022-06-14 22:46:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "item-id": "item-30fa5703-e809-435f-a7c1-f67a5dd168bc"
}

2022-06-14 22:46:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "item-id": "item-30fa5703-e809-435f-a7c1-f67a5dd168bc",
    "item": [
        "<item id=\"item-30fa5703-e809-435f-a7c1-f67a5dd168bc\"><test>item-30fa5703-e809-435f-a7c1-f67a5dd168bc</test></item>"
    ]
}

2022-06-14 22:46:14 | [Mutex] notify: [retrieved:item:item-30fa5703-e809-435f-a7c1-f67a5dd168bc:payload-matches:true:localhost]

2022-06-14 22:46:14 | [Mutex] received everything.

2022-06-14 22:46:14 | [Mutex] isItemNotified: retrieved:item:item-30fa5703-e809-435f-a7c1-f67a5dd168bc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2022-06-14 22:46:14 |

2022-06-14 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:14 | ------------------------------------

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

2022-06-14 22:46:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
        "test",
        "node-4f81af85-a62f-4c3a-8be0-944215333fa3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-14 22:46:14 |

2022-06-14 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:14 | ------------------------------------

2022-06-14 22:46:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1198badd-e990-405f-b1e8-6ede4a4a139a)"
}

2022-06-14 22:46:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-06-14 22:46:13 |

2022-06-14 22:46:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:13 | ------------------------------------

2022-06-14 22:46:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-14 22:46:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.048s
2022-06-14 22:46:14 |

2022-06-14 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:46:14 | ------------------------------------

2022-06-14 22:46:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1198badd-e990-405f-b1e8-6ede4a4a139a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-14 22:46:14 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}