Generated by TestNG with ReportNG at 08:53 PST on Monday 06 March 2023
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.707s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-03-06 09:08:13 |

2023-03-06 09:08:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:13 | ------------------------------------

2023-03-06 09:08:13 | [Mutex] waiting for: [configured:node:node-808e3f85-1c4e-4283-a254-aec6c89366d9:node-83608937-6652-4692-8c0e-e3d270c96f0b]

2023-03-06 09:08:13 | [Mutex] received everything.

2023-03-06 09:08:13 | [Mutex] isItemNotified: configured:node:node-808e3f85-1c4e-4283-a254-aec6c89366d9:node-83608937-6652-4692-8c0e-e3d270c96f0b :: true

2023-03-06 09:08:14 | [Mutex] waiting for: [received:nodes:8778429f-4817-4ffd-98c2-9a4ebf6d7a2c:localhost]

2023-03-06 09:08:14 | [Mutex] received everything.

2023-03-06 09:08:14 | [Mutex] isItemNotified: received:node:8778429f-4817-4ffd-98c2-9a4ebf6d7a2c:localhost:node-808e3f85-1c4e-4283-a254-aec6c89366d9:Node 808e3f85-1c4e-4283-a254-aec6c89366d9 :: true

2023-03-06 09:08:14 | [Mutex] waiting for: [received:nodes:23bd5cfc-ef68-4e92-85f8-9ce6d84f865c:localhost]

2023-03-06 09:08:14 | [Mutex] waiting for: [received:nodes:23bd5cfc-ef68-4e92-85f8-9ce6d84f865c:localhost]

2023-03-06 09:08:14 | [Mutex] waiting for: [received:nodes:23bd5cfc-ef68-4e92-85f8-9ce6d84f865c:localhost]

2023-03-06 09:08:14 | [Mutex] waiting for: [received:nodes:23bd5cfc-ef68-4e92-85f8-9ce6d84f865c:localhost]

2023-03-06 09:08:14 | [Mutex] received everything.

2023-03-06 09:08:14 | [Mutex] isItemNotified: received:node:23bd5cfc-ef68-4e92-85f8-9ce6d84f865c:localhost:node-808e3f85-1c4e-4283-a254-aec6c89366d9:Node 808e3f85-1c4e-4283-a254-aec6c89366d9 :: false

createNodes 1.661s
2023-03-06 09:08:10 |

2023-03-06 09:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:10 | ------------------------------------

2023-03-06 09:08:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "pubsub#title": "Node 808e3f85-1c4e-4283-a254-aec6c89366d9"
}

2023-03-06 09:08:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:12 | [Mutex] waiting for: [received:nodes:5cb605a9-11aa-4014-ad4e-612fe7f20048:localhost]

2023-03-06 09:08:12 | [Mutex] waiting for: [received:nodes:5cb605a9-11aa-4014-ad4e-612fe7f20048:localhost]

2023-03-06 09:08:12 | [Mutex] waiting for: [received:nodes:5cb605a9-11aa-4014-ad4e-612fe7f20048:localhost]

2023-03-06 09:08:12 | [Mutex] received everything.

2023-03-06 09:08:12 | [Mutex] isItemNotified: received:node:5cb605a9-11aa-4014-ad4e-612fe7f20048:localhost:node-808e3f85-1c4e-4283-a254-aec6c89366d9:Node 808e3f85-1c4e-4283-a254-aec6c89366d9 :: true

createSubnodes 1.024s
2023-03-06 09:08:12 |

2023-03-06 09:08:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:12 | ------------------------------------

2023-03-06 09:08:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-83608937-6652-4692-8c0e-e3d270c96f0b",
    "pubsub#title": "Node 83608937-6652-4692-8c0e-e3d270c96f0b"
}

2023-03-06 09:08:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:13 | [Mutex] waiting for: [received:nodes:e6b0789d-51b3-4987-914c-bdeb715893ce:localhost]

2023-03-06 09:08:13 | [Mutex] waiting for: [received:nodes:e6b0789d-51b3-4987-914c-bdeb715893ce:localhost]

2023-03-06 09:08:13 | [Mutex] waiting for: [received:nodes:e6b0789d-51b3-4987-914c-bdeb715893ce:localhost]

2023-03-06 09:08:13 | [Mutex] waiting for: [received:nodes:e6b0789d-51b3-4987-914c-bdeb715893ce:localhost]

2023-03-06 09:08:13 | [Mutex] received everything.

2023-03-06 09:08:13 | [Mutex] isItemNotified: received:node:e6b0789d-51b3-4987-914c-bdeb715893ce:localhost:node-83608937-6652-4692-8c0e-e3d270c96f0b:Node 83608937-6652-4692-8c0e-e3d270c96f0b :: true

deleteNodes 1.019s
2023-03-06 09:08:17 |

2023-03-06 09:08:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:17 | ------------------------------------

2023-03-06 09:08:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-83608937-6652-4692-8c0e-e3d270c96f0b"
}

2023-03-06 09:08:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:18 | [Mutex] waiting for: [received:nodes:2ea77f7a-f051-4d80-9982-cb3dcbc44a96:localhost]

2023-03-06 09:08:18 | [Mutex] waiting for: [received:nodes:2ea77f7a-f051-4d80-9982-cb3dcbc44a96:localhost]

2023-03-06 09:08:18 | [Mutex] received everything.

2023-03-06 09:08:18 | [Mutex] isItemNotified: received:node:2ea77f7a-f051-4d80-9982-cb3dcbc44a96:localhost:node-83608937-6652-4692-8c0e-e3d270c96f0b:Node 83608937-6652-4692-8c0e-e3d270c96f0b :: false

deleteSubnodes 1.023s
2023-03-06 09:08:16 |

2023-03-06 09:08:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:16 | ------------------------------------

2023-03-06 09:08:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9"
}

2023-03-06 09:08:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 09:08:17 | [Mutex] waiting for: [received:nodes:7caf9d74-617f-45a6-8cc9-77d83c5d32eb:localhost]

2023-03-06 09:08:17 | [Mutex] waiting for: [received:nodes:7caf9d74-617f-45a6-8cc9-77d83c5d32eb:localhost]

2023-03-06 09:08:17 | [Mutex] waiting for: [received:nodes:7caf9d74-617f-45a6-8cc9-77d83c5d32eb:localhost]

2023-03-06 09:08:17 | [Mutex] waiting for: [received:nodes:7caf9d74-617f-45a6-8cc9-77d83c5d32eb:localhost]

2023-03-06 09:08:17 | [Mutex] received everything.

2023-03-06 09:08:17 | [Mutex] isItemNotified: received:node:7caf9d74-617f-45a6-8cc9-77d83c5d32eb:localhost:node-808e3f85-1c4e-4283-a254-aec6c89366d9:Node 808e3f85-1c4e-4283-a254-aec6c89366d9 :: false

2023-03-06 09:08:17 | [Mutex] waiting for: [received:nodes:e8ce9693-017a-4d90-bd38-b05e224346ec:localhost]

2023-03-06 09:08:17 | [Mutex] received everything.

2023-03-06 09:08:17 | [Mutex] isItemNotified: received:node:e8ce9693-017a-4d90-bd38-b05e224346ec:localhost:node-808e3f85-1c4e-4283-a254-aec6c89366d9:Node 808e3f85-1c4e-4283-a254-aec6c89366d9 :: false

publishItemsToNodes 0.035s
2023-03-06 09:08:15 |

2023-03-06 09:08:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:15 | ------------------------------------

2023-03-06 09:08:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "entry": "<test>item-0270d921-6734-4ad5-a160-50da40ff6961</test>",
    "item-id": "item-0270d921-6734-4ad5-a160-50da40ff6961"
}

2023-03-06 09:08:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0270d921-6734-4ad5-a160-50da40ff6961"
}

2023-03-06 09:08:15 | [Mutex] waiting for: [published:item:notifieditem-0270d921-6734-4ad5-a160-50da40ff6961:admin@test-domain.com]

2023-03-06 09:08:15 | [Mutex] received everything.

2023-03-06 09:08:15 | [Mutex] isItemNotified: published:item:notifieditem-0270d921-6734-4ad5-a160-50da40ff6961:admin@test-domain.com :: true

retractItemsFromNodes 0.099s
2023-03-06 09:08:15 |

2023-03-06 09:08:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:15 | ------------------------------------

2023-03-06 09:08:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "item-id": "item-0270d921-6734-4ad5-a160-50da40ff6961"
}

2023-03-06 09:08:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0270d921-6734-4ad5-a160-50da40ff6961"
}

2023-03-06 09:08:15 | [Mutex] received everything.

2023-03-06 09:08:15 | [Mutex] isItemNotified: retracted:item:notifieditem-0270d921-6734-4ad5-a160-50da40ff6961:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2023-03-06 09:08:15 |

2023-03-06 09:08:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:15 | ------------------------------------

2023-03-06 09:08:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "item-id": "item-0270d921-6734-4ad5-a160-50da40ff6961"
}

2023-03-06 09:08:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "item-id": "item-0270d921-6734-4ad5-a160-50da40ff6961",
    "item": [
        "<item id=\"item-0270d921-6734-4ad5-a160-50da40ff6961\"><test>item-0270d921-6734-4ad5-a160-50da40ff6961</test></item>"
    ]
}

2023-03-06 09:08:15 | [Mutex] notify: [retrieved:item:item-0270d921-6734-4ad5-a160-50da40ff6961:payload-matches:true:localhost]

2023-03-06 09:08:15 | [Mutex] received everything.

2023-03-06 09:08:15 | [Mutex] isItemNotified: retrieved:item:item-0270d921-6734-4ad5-a160-50da40ff6961:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-03-06 09:08:15 |

2023-03-06 09:08:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:15 | ------------------------------------

2023-03-06 09:08:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-06 09:08:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-83608937-6652-4692-8c0e-e3d270c96f0b",
        "test",
        "node-808e3f85-1c4e-4283-a254-aec6c89366d9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-03-06 09:08:15 |

2023-03-06 09:08:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:15 | ------------------------------------

2023-03-06 09:08:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-808e3f85-1c4e-4283-a254-aec6c89366d9)"
}

2023-03-06 09:08:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2023-03-06 09:08:14 |

2023-03-06 09:08:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:14 | ------------------------------------

2023-03-06 09:08:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 09:08:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-03-06 09:08:15 |

2023-03-06 09:08:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 09:08:15 | ------------------------------------

2023-03-06 09:08:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-808e3f85-1c4e-4283-a254-aec6c89366d9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 09:08:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}