Generated by TestNG with ReportNG at 22:18 PDT on Wednesday 27 July 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.691s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-07-27 22:33:14 |

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

2022-07-27 22:33:14 | ------------------------------------

2022-07-27 22:33:14 | [Mutex] waiting for: [configured:node:node-94fe4964-4510-49d3-81fc-f1660a1133bb:node-e51dabd0-6cc7-4458-a6af-59dfd21c836e]

2022-07-27 22:33:14 | [Mutex] received everything.

2022-07-27 22:33:14 | [Mutex] isItemNotified: configured:node:node-94fe4964-4510-49d3-81fc-f1660a1133bb:node-e51dabd0-6cc7-4458-a6af-59dfd21c836e :: true

2022-07-27 22:33:15 | [Mutex] waiting for: [received:nodes:2351d2b1-d015-4906-803a-9a77810184a3:localhost]

2022-07-27 22:33:15 | [Mutex] received everything.

2022-07-27 22:33:15 | [Mutex] isItemNotified: received:node:2351d2b1-d015-4906-803a-9a77810184a3:localhost:node-94fe4964-4510-49d3-81fc-f1660a1133bb:Node 94fe4964-4510-49d3-81fc-f1660a1133bb :: true

2022-07-27 22:33:15 | [Mutex] waiting for: [received:nodes:4169686b-e1ab-4ffb-8fd4-444bab667993:localhost]

2022-07-27 22:33:15 | [Mutex] waiting for: [received:nodes:4169686b-e1ab-4ffb-8fd4-444bab667993:localhost]

2022-07-27 22:33:15 | [Mutex] received everything.

2022-07-27 22:33:15 | [Mutex] isItemNotified: received:node:4169686b-e1ab-4ffb-8fd4-444bab667993:localhost:node-94fe4964-4510-49d3-81fc-f1660a1133bb:Node 94fe4964-4510-49d3-81fc-f1660a1133bb :: false

createNodes 1.611s
2022-07-27 22:33:11 |

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

2022-07-27 22:33:11 | ------------------------------------

2022-07-27 22:33: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-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "pubsub#title": "Node 94fe4964-4510-49d3-81fc-f1660a1133bb"
}

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

2022-07-27 22:33:13 | [Mutex] waiting for: [received:nodes:e98cfdc3-1718-45fb-89a0-9fc85afc10ee:localhost]

2022-07-27 22:33:13 | [Mutex] received everything.

2022-07-27 22:33:13 | [Mutex] isItemNotified: received:node:e98cfdc3-1718-45fb-89a0-9fc85afc10ee:localhost:node-94fe4964-4510-49d3-81fc-f1660a1133bb:Node 94fe4964-4510-49d3-81fc-f1660a1133bb :: true

createSubnodes 1.027s
2022-07-27 22:33:13 |

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

2022-07-27 22:33:13 | ------------------------------------

2022-07-27 22:33: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-e51dabd0-6cc7-4458-a6af-59dfd21c836e",
    "pubsub#title": "Node e51dabd0-6cc7-4458-a6af-59dfd21c836e"
}

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

2022-07-27 22:33:14 | [Mutex] waiting for: [received:nodes:ced1ac79-6524-4303-88c7-752a41556d04:localhost]

2022-07-27 22:33:14 | [Mutex] received everything.

2022-07-27 22:33:14 | [Mutex] isItemNotified: received:node:ced1ac79-6524-4303-88c7-752a41556d04:localhost:node-e51dabd0-6cc7-4458-a6af-59dfd21c836e:Node e51dabd0-6cc7-4458-a6af-59dfd21c836e :: true

deleteNodes 1.021s
2022-07-27 22:33:18 |

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

2022-07-27 22:33:18 | ------------------------------------

2022-07-27 22:33:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e51dabd0-6cc7-4458-a6af-59dfd21c836e"
}

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

2022-07-27 22:33:19 | [Mutex] waiting for: [received:nodes:d0be6374-4078-4517-bdee-21b4acb8ca91:localhost]

2022-07-27 22:33:19 | [Mutex] waiting for: [received:nodes:d0be6374-4078-4517-bdee-21b4acb8ca91:localhost]

2022-07-27 22:33:19 | [Mutex] waiting for: [received:nodes:d0be6374-4078-4517-bdee-21b4acb8ca91:localhost]

2022-07-27 22:33:19 | [Mutex] waiting for: [received:nodes:d0be6374-4078-4517-bdee-21b4acb8ca91:localhost]

2022-07-27 22:33:19 | [Mutex] received everything.

2022-07-27 22:33:19 | [Mutex] isItemNotified: received:node:d0be6374-4078-4517-bdee-21b4acb8ca91:localhost:node-e51dabd0-6cc7-4458-a6af-59dfd21c836e:Node e51dabd0-6cc7-4458-a6af-59dfd21c836e :: false

deleteSubnodes 1.025s
2022-07-27 22:33:17 |

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

2022-07-27 22:33:17 | ------------------------------------

2022-07-27 22:33:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb"
}

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

2022-07-27 22:33:18 | [Mutex] waiting for: [received:nodes:4db85e09-157f-4678-bf13-c70bb6be90ed:localhost]

2022-07-27 22:33:18 | [Mutex] received everything.

2022-07-27 22:33:18 | [Mutex] isItemNotified: received:node:4db85e09-157f-4678-bf13-c70bb6be90ed:localhost:node-94fe4964-4510-49d3-81fc-f1660a1133bb:Node 94fe4964-4510-49d3-81fc-f1660a1133bb :: false

2022-07-27 22:33:18 | [Mutex] waiting for: [received:nodes:c2bc1204-89c4-4cb6-aff3-7bf952b787bc:localhost]

2022-07-27 22:33:18 | [Mutex] received everything.

2022-07-27 22:33:18 | [Mutex] isItemNotified: received:node:c2bc1204-89c4-4cb6-aff3-7bf952b787bc:localhost:node-94fe4964-4510-49d3-81fc-f1660a1133bb:Node 94fe4964-4510-49d3-81fc-f1660a1133bb :: false

publishItemsToNodes 0.066s
2022-07-27 22:33:16 |

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

2022-07-27 22:33:16 | ------------------------------------

2022-07-27 22:33:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "entry": "<test>item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433</test>",
    "item-id": "item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433"
}

2022-07-27 22:33:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433"
}

2022-07-27 22:33:16 | [Mutex] waiting for: [published:item:notifieditem-e9de3ed7-d89d-4a77-9219-8a3e8b92d433:admin@test-domain.com]

2022-07-27 22:33:16 | [Mutex] received everything.

2022-07-27 22:33:16 | [Mutex] isItemNotified: published:item:notifieditem-e9de3ed7-d89d-4a77-9219-8a3e8b92d433:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-07-27 22:33:16 |

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

2022-07-27 22:33:16 | ------------------------------------

2022-07-27 22:33:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "item-id": "item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433"
}

2022-07-27 22:33:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433"
}

2022-07-27 22:33:16 | [Mutex] received everything.

2022-07-27 22:33:16 | [Mutex] isItemNotified: retracted:item:notifieditem-e9de3ed7-d89d-4a77-9219-8a3e8b92d433:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2022-07-27 22:33:16 |

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

2022-07-27 22:33:16 | ------------------------------------

2022-07-27 22:33:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "item-id": "item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433"
}

2022-07-27 22:33:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "item-id": "item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433",
    "item": [
        "<item id=\"item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433\"><test>item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433</test></item>"
    ]
}

2022-07-27 22:33:16 | [Mutex] notify: [retrieved:item:item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433:payload-matches:true:localhost]

2022-07-27 22:33:16 | [Mutex] received everything.

2022-07-27 22:33:16 | [Mutex] isItemNotified: retrieved:item:item-e9de3ed7-d89d-4a77-9219-8a3e8b92d433:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-07-27 22:33:16 |

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

2022-07-27 22:33:16 | ------------------------------------

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

2022-07-27 22:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
        "test",
        "node-e51dabd0-6cc7-4458-a6af-59dfd21c836e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.095s
2022-07-27 22:33:16 |

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

2022-07-27 22:33:16 | ------------------------------------

2022-07-27 22:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-94fe4964-4510-49d3-81fc-f1660a1133bb)"
}

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

subscribeNodes 1.009s
2022-07-27 22:33:15 |

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

2022-07-27 22:33:15 | ------------------------------------

2022-07-27 22:33:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.070s
2022-07-27 22:33:16 |

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

2022-07-27 22:33:16 | ------------------------------------

2022-07-27 22:33:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-94fe4964-4510-49d3-81fc-f1660a1133bb",
    "jids": [
        "admin@test-domain.com"
    ]
}

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