Generated by TestNG with ReportNG at 03:30 PST on Monday 26 December 2022
root@ed1b7dd8a1b3 / 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.554s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.082s
2022-12-26 03:45:24 |

2022-12-26 03:45:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:24 | ------------------------------------

2022-12-26 03:45:24 | [Mutex] waiting for: [configured:node:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:node-40778411-3d0a-40f5-a881-847b5b0f101b]

2022-12-26 03:45:24 | [Mutex] received everything.

2022-12-26 03:45:24 | [Mutex] isItemNotified: configured:node:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:node-40778411-3d0a-40f5-a881-847b5b0f101b :: true

2022-12-26 03:45:25 | [Mutex] waiting for: [received:nodes:677094af-2a62-4ed3-8eef-1169c121e231:localhost]

2022-12-26 03:45:25 | [Mutex] received everything.

2022-12-26 03:45:25 | [Mutex] isItemNotified: received:node:677094af-2a62-4ed3-8eef-1169c121e231:localhost:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:Node fb0b4eca-29a2-4671-bdf6-c3db18838c52 :: true

2022-12-26 03:45:25 | [Mutex] waiting for: [received:nodes:1f50363a-c18c-4ff1-8770-9db43b867d5f:localhost]

2022-12-26 03:45:25 | [Mutex] waiting for: [received:nodes:1f50363a-c18c-4ff1-8770-9db43b867d5f:localhost]

2022-12-26 03:45:25 | [Mutex] waiting for: [received:nodes:1f50363a-c18c-4ff1-8770-9db43b867d5f:localhost]

2022-12-26 03:45:25 | [Mutex] waiting for: [received:nodes:1f50363a-c18c-4ff1-8770-9db43b867d5f:localhost]

2022-12-26 03:45:25 | [Mutex] received everything.

2022-12-26 03:45:25 | [Mutex] isItemNotified: received:node:1f50363a-c18c-4ff1-8770-9db43b867d5f:localhost:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:Node fb0b4eca-29a2-4671-bdf6-c3db18838c52 :: false

createNodes 1.590s
2022-12-26 03:45:21 |

2022-12-26 03:45:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:21 | ------------------------------------

2022-12-26 03:45:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "pubsub#title": "Node fb0b4eca-29a2-4671-bdf6-c3db18838c52"
}

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

2022-12-26 03:45:23 | [Mutex] waiting for: [received:nodes:7f0455f2-54e1-4e34-8e5d-532de7d892de:localhost]

2022-12-26 03:45:23 | [Mutex] waiting for: [received:nodes:7f0455f2-54e1-4e34-8e5d-532de7d892de:localhost]

2022-12-26 03:45:23 | [Mutex] waiting for: [received:nodes:7f0455f2-54e1-4e34-8e5d-532de7d892de:localhost]

2022-12-26 03:45:23 | [Mutex] waiting for: [received:nodes:7f0455f2-54e1-4e34-8e5d-532de7d892de:localhost]

2022-12-26 03:45:23 | [Mutex] received everything.

2022-12-26 03:45:23 | [Mutex] isItemNotified: received:node:7f0455f2-54e1-4e34-8e5d-532de7d892de:localhost:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:Node fb0b4eca-29a2-4671-bdf6-c3db18838c52 :: true

createSubnodes 1.018s
2022-12-26 03:45:23 |

2022-12-26 03:45:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:23 | ------------------------------------

2022-12-26 03:45:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-40778411-3d0a-40f5-a881-847b5b0f101b",
    "pubsub#title": "Node 40778411-3d0a-40f5-a881-847b5b0f101b"
}

2022-12-26 03:45:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 03:45:24 | [Mutex] waiting for: [received:nodes:995bcbaf-bcbf-431b-8c49-dab286eb9e01:localhost]

2022-12-26 03:45:24 | [Mutex] waiting for: [received:nodes:995bcbaf-bcbf-431b-8c49-dab286eb9e01:localhost]

2022-12-26 03:45:24 | [Mutex] waiting for: [received:nodes:995bcbaf-bcbf-431b-8c49-dab286eb9e01:localhost]

2022-12-26 03:45:24 | [Mutex] waiting for: [received:nodes:995bcbaf-bcbf-431b-8c49-dab286eb9e01:localhost]

2022-12-26 03:45:24 | [Mutex] waiting for: [received:nodes:995bcbaf-bcbf-431b-8c49-dab286eb9e01:localhost]

2022-12-26 03:45:24 | [Mutex] received everything.

2022-12-26 03:45:24 | [Mutex] isItemNotified: received:node:995bcbaf-bcbf-431b-8c49-dab286eb9e01:localhost:node-40778411-3d0a-40f5-a881-847b5b0f101b:Node 40778411-3d0a-40f5-a881-847b5b0f101b :: true

deleteNodes 1.020s
2022-12-26 03:45:28 |

2022-12-26 03:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:28 | ------------------------------------

2022-12-26 03:45:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-40778411-3d0a-40f5-a881-847b5b0f101b"
}

2022-12-26 03:45:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 03:45:29 | [Mutex] waiting for: [received:nodes:40de97a0-0c21-4a01-a6dc-0d82b36daba6:localhost]

2022-12-26 03:45:29 | [Mutex] waiting for: [received:nodes:40de97a0-0c21-4a01-a6dc-0d82b36daba6:localhost]

2022-12-26 03:45:29 | [Mutex] received everything.

2022-12-26 03:45:29 | [Mutex] isItemNotified: received:node:40de97a0-0c21-4a01-a6dc-0d82b36daba6:localhost:node-40778411-3d0a-40f5-a881-847b5b0f101b:Node 40778411-3d0a-40f5-a881-847b5b0f101b :: false

deleteSubnodes 1.024s
2022-12-26 03:45:27 |

2022-12-26 03:45:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:27 | ------------------------------------

2022-12-26 03:45:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52"
}

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

2022-12-26 03:45:28 | [Mutex] waiting for: [received:nodes:5bcb9088-f01d-492b-94ba-12ee00c3c0e1:localhost]

2022-12-26 03:45:28 | [Mutex] waiting for: [received:nodes:5bcb9088-f01d-492b-94ba-12ee00c3c0e1:localhost]

2022-12-26 03:45:28 | [Mutex] waiting for: [received:nodes:5bcb9088-f01d-492b-94ba-12ee00c3c0e1:localhost]

2022-12-26 03:45:28 | [Mutex] received everything.

2022-12-26 03:45:28 | [Mutex] isItemNotified: received:node:5bcb9088-f01d-492b-94ba-12ee00c3c0e1:localhost:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:Node fb0b4eca-29a2-4671-bdf6-c3db18838c52 :: false

2022-12-26 03:45:28 | [Mutex] waiting for: [received:nodes:c3046a77-14d4-4ff6-ac07-bf8509d87446:localhost]

2022-12-26 03:45:28 | [Mutex] received everything.

2022-12-26 03:45:28 | [Mutex] isItemNotified: received:node:c3046a77-14d4-4ff6-ac07-bf8509d87446:localhost:node-fb0b4eca-29a2-4671-bdf6-c3db18838c52:Node fb0b4eca-29a2-4671-bdf6-c3db18838c52 :: false

publishItemsToNodes 0.049s
2022-12-26 03:45:26 |

2022-12-26 03:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:26 | ------------------------------------

2022-12-26 03:45:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "entry": "<test>item-879e3cbe-d746-4a27-bd87-ed06ee203a3c</test>",
    "item-id": "item-879e3cbe-d746-4a27-bd87-ed06ee203a3c"
}

2022-12-26 03:45:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-879e3cbe-d746-4a27-bd87-ed06ee203a3c"
}

2022-12-26 03:45:26 | [Mutex] waiting for: [published:item:notifieditem-879e3cbe-d746-4a27-bd87-ed06ee203a3c:admin@test-domain.com]

2022-12-26 03:45:26 | [Mutex] received everything.

2022-12-26 03:45:26 | [Mutex] isItemNotified: published:item:notifieditem-879e3cbe-d746-4a27-bd87-ed06ee203a3c:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-12-26 03:45:26 |

2022-12-26 03:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:26 | ------------------------------------

2022-12-26 03:45:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "item-id": "item-879e3cbe-d746-4a27-bd87-ed06ee203a3c"
}

2022-12-26 03:45:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-879e3cbe-d746-4a27-bd87-ed06ee203a3c"
}

2022-12-26 03:45:26 | [Mutex] received everything.

2022-12-26 03:45:26 | [Mutex] isItemNotified: retracted:item:notifieditem-879e3cbe-d746-4a27-bd87-ed06ee203a3c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.024s
2022-12-26 03:45:26 |

2022-12-26 03:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:26 | ------------------------------------

2022-12-26 03:45:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "item-id": "item-879e3cbe-d746-4a27-bd87-ed06ee203a3c"
}

2022-12-26 03:45:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "item-id": "item-879e3cbe-d746-4a27-bd87-ed06ee203a3c",
    "item": [
        "<item id=\"item-879e3cbe-d746-4a27-bd87-ed06ee203a3c\"><test>item-879e3cbe-d746-4a27-bd87-ed06ee203a3c</test></item>"
    ]
}

2022-12-26 03:45:26 | [Mutex] notify: [retrieved:item:item-879e3cbe-d746-4a27-bd87-ed06ee203a3c:payload-matches:true:localhost]

2022-12-26 03:45:26 | [Mutex] received everything.

2022-12-26 03:45:26 | [Mutex] isItemNotified: retrieved:item:item-879e3cbe-d746-4a27-bd87-ed06ee203a3c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-12-26 03:45:26 |

2022-12-26 03:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:26 | ------------------------------------

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

2022-12-26 03:45:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-40778411-3d0a-40f5-a881-847b5b0f101b",
        "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-12-26 03:45:26 |

2022-12-26 03:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:26 | ------------------------------------

2022-12-26 03:45:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fb0b4eca-29a2-4671-bdf6-c3db18838c52)"
}

2022-12-26 03:45:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-12-26 03:45:25 |

2022-12-26 03:45:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:25 | ------------------------------------

2022-12-26 03:45:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-26 03:45:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-12-26 03:45:26 |

2022-12-26 03:45:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 03:45:26 | ------------------------------------

2022-12-26 03:45:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fb0b4eca-29a2-4671-bdf6-c3db18838c52",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-26 03:45:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}