Generated by TestNG with ReportNG at 22:18 PDT on Friday 12 August 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.604s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2022-08-12 22:33:03 |

2022-08-12 22:33:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:03 | ------------------------------------

2022-08-12 22:33:03 | [Mutex] waiting for: [configured:node:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:node-075e29e2-df21-4984-813a-a9f2e84da9f7]

2022-08-12 22:33:03 | [Mutex] received everything.

2022-08-12 22:33:03 | [Mutex] isItemNotified: configured:node:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:node-075e29e2-df21-4984-813a-a9f2e84da9f7 :: true

2022-08-12 22:33:04 | [Mutex] waiting for: [received:nodes:ff116152-3a5f-46f3-a8df-29b9b2f636b5:localhost]

2022-08-12 22:33:04 | [Mutex] received everything.

2022-08-12 22:33:04 | [Mutex] isItemNotified: received:node:ff116152-3a5f-46f3-a8df-29b9b2f636b5:localhost:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:Node a914d72e-7b31-4ad0-9cb4-1b6c0ec58140 :: true

2022-08-12 22:33:04 | [Mutex] waiting for: [received:nodes:5d6abaee-b337-4983-a556-897d9f3afd95:localhost]

2022-08-12 22:33:04 | [Mutex] received everything.

2022-08-12 22:33:04 | [Mutex] isItemNotified: received:node:5d6abaee-b337-4983-a556-897d9f3afd95:localhost:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:Node a914d72e-7b31-4ad0-9cb4-1b6c0ec58140 :: false

createNodes 1.557s
2022-08-12 22:33:00 |

2022-08-12 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:00 | ------------------------------------

2022-08-12 22:33:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "pubsub#title": "Node a914d72e-7b31-4ad0-9cb4-1b6c0ec58140"
}

2022-08-12 22:33:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-12 22:33:02 | [Mutex] waiting for: [received:nodes:324cb7ee-48df-46d9-9bad-d1133f75c06c:localhost]

2022-08-12 22:33:02 | [Mutex] received everything.

2022-08-12 22:33:02 | [Mutex] isItemNotified: received:node:324cb7ee-48df-46d9-9bad-d1133f75c06c:localhost:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:Node a914d72e-7b31-4ad0-9cb4-1b6c0ec58140 :: true

createSubnodes 1.026s
2022-08-12 22:33:02 |

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

2022-08-12 22:33:02 | ------------------------------------

2022-08-12 22:33:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-075e29e2-df21-4984-813a-a9f2e84da9f7",
    "pubsub#title": "Node 075e29e2-df21-4984-813a-a9f2e84da9f7"
}

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

2022-08-12 22:33:03 | [Mutex] waiting for: [received:nodes:e43104ea-0df1-4551-8cef-1387a1d160b1:localhost]

2022-08-12 22:33:03 | [Mutex] received everything.

2022-08-12 22:33:03 | [Mutex] isItemNotified: received:node:e43104ea-0df1-4551-8cef-1387a1d160b1:localhost:node-075e29e2-df21-4984-813a-a9f2e84da9f7:Node 075e29e2-df21-4984-813a-a9f2e84da9f7 :: true

deleteNodes 1.025s
2022-08-12 22:33:07 |

2022-08-12 22:33:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:07 | ------------------------------------

2022-08-12 22:33:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-075e29e2-df21-4984-813a-a9f2e84da9f7"
}

2022-08-12 22:33:07 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-12 22:33:08 | [Mutex] waiting for: [received:nodes:30a69dd4-dbcd-4409-bbf8-244ee09734ed:localhost]

2022-08-12 22:33:08 | [Mutex] waiting for: [received:nodes:30a69dd4-dbcd-4409-bbf8-244ee09734ed:localhost]

2022-08-12 22:33:08 | [Mutex] received everything.

2022-08-12 22:33:08 | [Mutex] isItemNotified: received:node:30a69dd4-dbcd-4409-bbf8-244ee09734ed:localhost:node-075e29e2-df21-4984-813a-a9f2e84da9f7:Node 075e29e2-df21-4984-813a-a9f2e84da9f7 :: false

deleteSubnodes 1.025s
2022-08-12 22:33:06 |

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

2022-08-12 22:33:06 | ------------------------------------

2022-08-12 22:33:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140"
}

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

2022-08-12 22:33:07 | [Mutex] waiting for: [received:nodes:3dda0f88-6498-4c98-a94e-03fb11c43b2f:localhost]

2022-08-12 22:33:07 | [Mutex] received everything.

2022-08-12 22:33:07 | [Mutex] isItemNotified: received:node:3dda0f88-6498-4c98-a94e-03fb11c43b2f:localhost:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:Node a914d72e-7b31-4ad0-9cb4-1b6c0ec58140 :: false

2022-08-12 22:33:07 | [Mutex] waiting for: [received:nodes:9aeaf9c1-5c3d-475e-be68-eebab63f9fed:localhost]

2022-08-12 22:33:07 | [Mutex] received everything.

2022-08-12 22:33:07 | [Mutex] isItemNotified: received:node:9aeaf9c1-5c3d-475e-be68-eebab63f9fed:localhost:node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140:Node a914d72e-7b31-4ad0-9cb4-1b6c0ec58140 :: false

publishItemsToNodes 0.060s
2022-08-12 22:33:05 |

2022-08-12 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:05 | ------------------------------------

2022-08-12 22:33:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "entry": "<test>item-51d9736d-6fde-4435-bdaf-9b03aa190b26</test>",
    "item-id": "item-51d9736d-6fde-4435-bdaf-9b03aa190b26"
}

2022-08-12 22:33:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-51d9736d-6fde-4435-bdaf-9b03aa190b26"
}

2022-08-12 22:33:05 | [Mutex] waiting for: [published:item:notifieditem-51d9736d-6fde-4435-bdaf-9b03aa190b26:admin@test-domain.com]

2022-08-12 22:33:05 | [Mutex] received everything.

2022-08-12 22:33:05 | [Mutex] isItemNotified: published:item:notifieditem-51d9736d-6fde-4435-bdaf-9b03aa190b26:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-08-12 22:33:05 |

2022-08-12 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:05 | ------------------------------------

2022-08-12 22:33:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "item-id": "item-51d9736d-6fde-4435-bdaf-9b03aa190b26"
}

2022-08-12 22:33:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-51d9736d-6fde-4435-bdaf-9b03aa190b26"
}

2022-08-12 22:33:05 | [Mutex] received everything.

2022-08-12 22:33:05 | [Mutex] isItemNotified: retracted:item:notifieditem-51d9736d-6fde-4435-bdaf-9b03aa190b26:admin@test-domain.com :: true

retrieveItemsFromNodes 0.043s
2022-08-12 22:33:05 |

2022-08-12 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:05 | ------------------------------------

2022-08-12 22:33:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "item-id": "item-51d9736d-6fde-4435-bdaf-9b03aa190b26"
}

2022-08-12 22:33:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "item-id": "item-51d9736d-6fde-4435-bdaf-9b03aa190b26",
    "item": [
        "<item id=\"item-51d9736d-6fde-4435-bdaf-9b03aa190b26\"><test>item-51d9736d-6fde-4435-bdaf-9b03aa190b26</test></item>"
    ]
}

2022-08-12 22:33:05 | [Mutex] notify: [retrieved:item:item-51d9736d-6fde-4435-bdaf-9b03aa190b26:payload-matches:true:localhost]

2022-08-12 22:33:05 | [Mutex] received everything.

2022-08-12 22:33:05 | [Mutex] isItemNotified: retrieved:item:item-51d9736d-6fde-4435-bdaf-9b03aa190b26:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-08-12 22:33:05 |

2022-08-12 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:05 | ------------------------------------

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

2022-08-12 22:33:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
        "test",
        "node-075e29e2-df21-4984-813a-a9f2e84da9f7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-12 22:33:05 |

2022-08-12 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:05 | ------------------------------------

2022-08-12 22:33:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140)"
}

2022-08-12 22:33:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-08-12 22:33:04 |

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

2022-08-12 22:33:04 | ------------------------------------

2022-08-12 22:33:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2022-08-12 22:33:05 |

2022-08-12 22:33:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-12 22:33:05 | ------------------------------------

2022-08-12 22:33:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a914d72e-7b31-4ad0-9cb4-1b6c0ec58140",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-12 22:33:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}