Generated by TestNG with ReportNG at 22:30 PDT on Wednesday 06 July 2022
root@7c41cec37518 / 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.547s

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

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

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

2022-07-06 22:46:12 | [Mutex] waiting for: [configured:node:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:node-69ce679d-fba5-4b5e-8f43-99cbc48079b1]

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

2022-07-06 22:46:12 | [Mutex] isItemNotified: configured:node:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:node-69ce679d-fba5-4b5e-8f43-99cbc48079b1 :: true

2022-07-06 22:46:13 | [Mutex] waiting for: [received:nodes:071ed956-fbc1-4f2d-ae01-a0fda839e127:localhost]

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

2022-07-06 22:46:13 | [Mutex] isItemNotified: received:node:071ed956-fbc1-4f2d-ae01-a0fda839e127:localhost:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:Node 5bc44c1a-3711-429e-bbc7-4b6dc33819ca :: true

2022-07-06 22:46:13 | [Mutex] waiting for: [received:nodes:0c08a4a1-0f4d-420f-9f46-83f1b87e7c30:localhost]

2022-07-06 22:46:13 | [Mutex] waiting for: [received:nodes:0c08a4a1-0f4d-420f-9f46-83f1b87e7c30:localhost]

2022-07-06 22:46:13 | [Mutex] waiting for: [received:nodes:0c08a4a1-0f4d-420f-9f46-83f1b87e7c30:localhost]

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

2022-07-06 22:46:13 | [Mutex] isItemNotified: received:node:0c08a4a1-0f4d-420f-9f46-83f1b87e7c30:localhost:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:Node 5bc44c1a-3711-429e-bbc7-4b6dc33819ca :: false

createNodes 1.521s
2022-07-06 22:46:09 |

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

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

2022-07-06 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-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "pubsub#title": "Node 5bc44c1a-3711-429e-bbc7-4b6dc33819ca"
}

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

2022-07-06 22:46:11 | [Mutex] waiting for: [received:nodes:e2f0b36e-e01f-44c3-93d1-b289dc00dc18:localhost]

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

2022-07-06 22:46:11 | [Mutex] isItemNotified: received:node:e2f0b36e-e01f-44c3-93d1-b289dc00dc18:localhost:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:Node 5bc44c1a-3711-429e-bbc7-4b6dc33819ca :: true

createSubnodes 1.030s
2022-07-06 22:46:11 |

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

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

2022-07-06 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-69ce679d-fba5-4b5e-8f43-99cbc48079b1",
    "pubsub#title": "Node 69ce679d-fba5-4b5e-8f43-99cbc48079b1"
}

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

2022-07-06 22:46:12 | [Mutex] waiting for: [received:nodes:4b60def6-2cac-4e51-9598-2f0d6c11f236:localhost]

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

2022-07-06 22:46:12 | [Mutex] isItemNotified: received:node:4b60def6-2cac-4e51-9598-2f0d6c11f236:localhost:node-69ce679d-fba5-4b5e-8f43-99cbc48079b1:Node 69ce679d-fba5-4b5e-8f43-99cbc48079b1 :: true

deleteNodes 1.024s
2022-07-06 22:46:16 |

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

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

2022-07-06 22:46:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69ce679d-fba5-4b5e-8f43-99cbc48079b1"
}

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

2022-07-06 22:46:17 | [Mutex] waiting for: [received:nodes:e664ffe1-aa43-46e3-81fb-985a92ae65b2:localhost]

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

2022-07-06 22:46:17 | [Mutex] isItemNotified: received:node:e664ffe1-aa43-46e3-81fb-985a92ae65b2:localhost:node-69ce679d-fba5-4b5e-8f43-99cbc48079b1:Node 69ce679d-fba5-4b5e-8f43-99cbc48079b1 :: false

deleteSubnodes 1.030s
2022-07-06 22:46:15 |

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

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

2022-07-06 22:46:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca"
}

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

2022-07-06 22:46:16 | [Mutex] waiting for: [received:nodes:490251c0-c154-402c-81a5-bf6c05705087:localhost]

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

2022-07-06 22:46:16 | [Mutex] isItemNotified: received:node:490251c0-c154-402c-81a5-bf6c05705087:localhost:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:Node 5bc44c1a-3711-429e-bbc7-4b6dc33819ca :: false

2022-07-06 22:46:16 | [Mutex] waiting for: [received:nodes:42e1891f-d5b1-4a45-b1ca-e94500020650:localhost]

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

2022-07-06 22:46:16 | [Mutex] isItemNotified: received:node:42e1891f-d5b1-4a45-b1ca-e94500020650:localhost:node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca:Node 5bc44c1a-3711-429e-bbc7-4b6dc33819ca :: false

publishItemsToNodes 0.068s
2022-07-06 22:46:14 |

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

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

2022-07-06 22:46:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "entry": "<test>item-27f6be30-e76b-4b12-ac37-a80253349178</test>",
    "item-id": "item-27f6be30-e76b-4b12-ac37-a80253349178"
}

2022-07-06 22:46:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27f6be30-e76b-4b12-ac37-a80253349178"
}

2022-07-06 22:46:14 | [Mutex] waiting for: [published:item:notifieditem-27f6be30-e76b-4b12-ac37-a80253349178:admin@test-domain.com]

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

2022-07-06 22:46:14 | [Mutex] isItemNotified: published:item:notifieditem-27f6be30-e76b-4b12-ac37-a80253349178:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-06 22:46:14 |

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

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

2022-07-06 22:46:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "item-id": "item-27f6be30-e76b-4b12-ac37-a80253349178"
}

2022-07-06 22:46:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27f6be30-e76b-4b12-ac37-a80253349178"
}

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

2022-07-06 22:46:14 | [Mutex] isItemNotified: retracted:item:notifieditem-27f6be30-e76b-4b12-ac37-a80253349178:admin@test-domain.com :: true

retrieveItemsFromNodes 0.043s
2022-07-06 22:46:14 |

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

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

2022-07-06 22:46:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "item-id": "item-27f6be30-e76b-4b12-ac37-a80253349178"
}

2022-07-06 22:46:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "item-id": "item-27f6be30-e76b-4b12-ac37-a80253349178",
    "item": [
        "<item id=\"item-27f6be30-e76b-4b12-ac37-a80253349178\"><test>item-27f6be30-e76b-4b12-ac37-a80253349178</test></item>"
    ]
}

2022-07-06 22:46:14 | [Mutex] notify: [retrieved:item:item-27f6be30-e76b-4b12-ac37-a80253349178:payload-matches:true:localhost]

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

2022-07-06 22:46:14 | [Mutex] isItemNotified: retrieved:item:item-27f6be30-e76b-4b12-ac37-a80253349178:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2022-07-06 22:46:14 |

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

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

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

2022-07-06 22:46:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-69ce679d-fba5-4b5e-8f43-99cbc48079b1",
        "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-06 22:46:14 |

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

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

2022-07-06 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-5bc44c1a-3711-429e-bbc7-4b6dc33819ca)"
}

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

subscribeNodes 1.012s
2022-07-06 22:46:13 |

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

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

2022-07-06 22:46:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2022-07-06 22:46:14 |

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

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

2022-07-06 22:46:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5bc44c1a-3711-429e-bbc7-4b6dc33819ca",
    "jids": [
        "admin@test-domain.com"
    ]
}

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