Generated by TestNG with ReportNG at 22:30 PDT on Monday 27 June 2022
root@61c39d2ed70d / 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.905s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-06-27 22:45:15 |

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

2022-06-27 22:45:15 | ------------------------------------

2022-06-27 22:45:15 | [Mutex] waiting for: [configured:node:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:node-ff71737e-be51-42b9-ab0d-45cd23fb8fc6]

2022-06-27 22:45:16 | [Mutex] received everything.

2022-06-27 22:45:16 | [Mutex] isItemNotified: configured:node:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:node-ff71737e-be51-42b9-ab0d-45cd23fb8fc6 :: true

2022-06-27 22:45:17 | [Mutex] waiting for: [received:nodes:5633a4cf-fc10-44e6-b9e9-25ae6ab16a50:localhost]

2022-06-27 22:45:17 | [Mutex] received everything.

2022-06-27 22:45:17 | [Mutex] isItemNotified: received:node:5633a4cf-fc10-44e6-b9e9-25ae6ab16a50:localhost:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:Node f552d8fc-170a-4668-8642-bb4bef2f92f5 :: true

2022-06-27 22:45:17 | [Mutex] waiting for: [received:nodes:aa81c6a4-2269-40a4-8251-6ca6bc5cec85:localhost]

2022-06-27 22:45:17 | [Mutex] waiting for: [received:nodes:aa81c6a4-2269-40a4-8251-6ca6bc5cec85:localhost]

2022-06-27 22:45:17 | [Mutex] received everything.

2022-06-27 22:45:17 | [Mutex] isItemNotified: received:node:aa81c6a4-2269-40a4-8251-6ca6bc5cec85:localhost:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:Node f552d8fc-170a-4668-8642-bb4bef2f92f5 :: false

createNodes 1.656s
2022-06-27 22:45:13 |

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

2022-06-27 22:45:13 | ------------------------------------

2022-06-27 22:45: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-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "pubsub#title": "Node f552d8fc-170a-4668-8642-bb4bef2f92f5"
}

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

2022-06-27 22:45:14 | [Mutex] waiting for: [received:nodes:7b65625c-bfcf-4668-94f2-fc1d4e64dfff:localhost]

2022-06-27 22:45:14 | [Mutex] waiting for: [received:nodes:7b65625c-bfcf-4668-94f2-fc1d4e64dfff:localhost]

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

2022-06-27 22:45:14 | [Mutex] isItemNotified: received:node:7b65625c-bfcf-4668-94f2-fc1d4e64dfff:localhost:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:Node f552d8fc-170a-4668-8642-bb4bef2f92f5 :: true

createSubnodes 1.034s
2022-06-27 22:45:14 |

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

2022-06-27 22:45:14 | ------------------------------------

2022-06-27 22:45: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-ff71737e-be51-42b9-ab0d-45cd23fb8fc6",
    "pubsub#title": "Node ff71737e-be51-42b9-ab0d-45cd23fb8fc6"
}

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

2022-06-27 22:45:15 | [Mutex] waiting for: [received:nodes:8c38e592-4719-478a-b9a0-8826dc539b9b:localhost]

2022-06-27 22:45:15 | [Mutex] received everything.

2022-06-27 22:45:15 | [Mutex] isItemNotified: received:node:8c38e592-4719-478a-b9a0-8826dc539b9b:localhost:node-ff71737e-be51-42b9-ab0d-45cd23fb8fc6:Node ff71737e-be51-42b9-ab0d-45cd23fb8fc6 :: true

deleteNodes 1.031s
2022-06-27 22:45:20 |

2022-06-27 22:45:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:20 | ------------------------------------

2022-06-27 22:45:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ff71737e-be51-42b9-ab0d-45cd23fb8fc6"
}

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

2022-06-27 22:45:21 | [Mutex] waiting for: [received:nodes:ec4b8f3f-53ca-46a5-9f63-a11f4d628f58:localhost]

2022-06-27 22:45:21 | [Mutex] received everything.

2022-06-27 22:45:21 | [Mutex] isItemNotified: received:node:ec4b8f3f-53ca-46a5-9f63-a11f4d628f58:localhost:node-ff71737e-be51-42b9-ab0d-45cd23fb8fc6:Node ff71737e-be51-42b9-ab0d-45cd23fb8fc6 :: false

deleteSubnodes 1.032s
2022-06-27 22:45:19 |

2022-06-27 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:19 | ------------------------------------

2022-06-27 22:45:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5"
}

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

2022-06-27 22:45:20 | [Mutex] waiting for: [received:nodes:98f733e5-df2c-47ba-b17c-67331de02a5e:localhost]

2022-06-27 22:45:20 | [Mutex] received everything.

2022-06-27 22:45:20 | [Mutex] isItemNotified: received:node:98f733e5-df2c-47ba-b17c-67331de02a5e:localhost:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:Node f552d8fc-170a-4668-8642-bb4bef2f92f5 :: false

2022-06-27 22:45:20 | [Mutex] waiting for: [received:nodes:d1bba24f-2cbe-499a-8170-8323b2e6119c:localhost]

2022-06-27 22:45:20 | [Mutex] received everything.

2022-06-27 22:45:20 | [Mutex] isItemNotified: received:node:d1bba24f-2cbe-499a-8170-8323b2e6119c:localhost:node-f552d8fc-170a-4668-8642-bb4bef2f92f5:Node f552d8fc-170a-4668-8642-bb4bef2f92f5 :: false

publishItemsToNodes 0.046s
2022-06-27 22:45:18 |

2022-06-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:18 | ------------------------------------

2022-06-27 22:45:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "entry": "<test>item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2</test>",
    "item-id": "item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2"
}

2022-06-27 22:45:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2"
}

2022-06-27 22:45:18 | [Mutex] waiting for: [published:item:notifieditem-ffdc31e3-39b6-4d14-a086-ea74153aa6b2:admin@test-domain.com]

2022-06-27 22:45:18 | [Mutex] received everything.

2022-06-27 22:45:18 | [Mutex] isItemNotified: published:item:notifieditem-ffdc31e3-39b6-4d14-a086-ea74153aa6b2:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-27 22:45:18 |

2022-06-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:18 | ------------------------------------

2022-06-27 22:45:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "item-id": "item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2"
}

2022-06-27 22:45:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2"
}

2022-06-27 22:45:18 | [Mutex] received everything.

2022-06-27 22:45:18 | [Mutex] isItemNotified: retracted:item:notifieditem-ffdc31e3-39b6-4d14-a086-ea74153aa6b2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2022-06-27 22:45:18 |

2022-06-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:18 | ------------------------------------

2022-06-27 22:45:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "item-id": "item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2"
}

2022-06-27 22:45:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "item-id": "item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2",
    "item": [
        "<item id=\"item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2\"><test>item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2</test></item>"
    ]
}

2022-06-27 22:45:18 | [Mutex] notify: [retrieved:item:item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2:payload-matches:true:localhost]

2022-06-27 22:45:18 | [Mutex] received everything.

2022-06-27 22:45:18 | [Mutex] isItemNotified: retrieved:item:item-ffdc31e3-39b6-4d14-a086-ea74153aa6b2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.131s
2022-06-27 22:45:18 |

2022-06-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:18 | ------------------------------------

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

2022-06-27 22:45:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ff71737e-be51-42b9-ab0d-45cd23fb8fc6",
        "test",
        "node-f552d8fc-170a-4668-8642-bb4bef2f92f5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-27 22:45:18 |

2022-06-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:18 | ------------------------------------

2022-06-27 22:45:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f552d8fc-170a-4668-8642-bb4bef2f92f5)"
}

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

subscribeNodes 1.018s
2022-06-27 22:45:17 |

2022-06-27 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:17 | ------------------------------------

2022-06-27 22:45:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2022-06-27 22:45:18 |

2022-06-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:45:18 | ------------------------------------

2022-06-27 22:45:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f552d8fc-170a-4668-8642-bb4bef2f92f5",
    "jids": [
        "admin@test-domain.com"
    ]
}

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