Generated by TestNG with ReportNG at 21:34 PST on Tuesday 08 February 2022
root@b2c2a8eba6e6 / Java 11.0.8 (Ubuntu) / 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.904s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-02-08 21:50:15 |

2022-02-08 21:50:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:15 | ------------------------------------

2022-02-08 21:50:15 | [Mutex] waiting for: [configured:node:node-3e2ca2db-3325-4944-bfc9-23d606187e57:node-aae4ec9f-4537-4e0b-b134-d3fe4e467e91]

2022-02-08 21:50:15 | [Mutex] received everything.

2022-02-08 21:50:15 | [Mutex] isItemNotified: configured:node:node-3e2ca2db-3325-4944-bfc9-23d606187e57:node-aae4ec9f-4537-4e0b-b134-d3fe4e467e91 :: true

2022-02-08 21:50:16 | [Mutex] waiting for: [received:nodes:199998ab-4c6b-42ed-87e3-94db18e29f61:localhost]

2022-02-08 21:50:16 | [Mutex] received everything.

2022-02-08 21:50:16 | [Mutex] isItemNotified: received:node:199998ab-4c6b-42ed-87e3-94db18e29f61:localhost:node-3e2ca2db-3325-4944-bfc9-23d606187e57:Node 3e2ca2db-3325-4944-bfc9-23d606187e57 :: true

2022-02-08 21:50:16 | [Mutex] waiting for: [received:nodes:7e14e06f-4b8d-40e7-bcd6-2eacdec8c588:localhost]

2022-02-08 21:50:16 | [Mutex] received everything.

2022-02-08 21:50:16 | [Mutex] isItemNotified: received:node:7e14e06f-4b8d-40e7-bcd6-2eacdec8c588:localhost:node-3e2ca2db-3325-4944-bfc9-23d606187e57:Node 3e2ca2db-3325-4944-bfc9-23d606187e57 :: false

createNodes 1.637s
2022-02-08 21:50:12 |

2022-02-08 21:50:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:12 | ------------------------------------

2022-02-08 21:50: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-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "pubsub#title": "Node 3e2ca2db-3325-4944-bfc9-23d606187e57"
}

2022-02-08 21:50:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:14 | [Mutex] waiting for: [received:nodes:9cbfff95-f647-4d67-b44d-b0b511c08433:localhost]

2022-02-08 21:50:14 | [Mutex] received everything.

2022-02-08 21:50:14 | [Mutex] isItemNotified: received:node:9cbfff95-f647-4d67-b44d-b0b511c08433:localhost:node-3e2ca2db-3325-4944-bfc9-23d606187e57:Node 3e2ca2db-3325-4944-bfc9-23d606187e57 :: true

createSubnodes 1.031s
2022-02-08 21:50:14 |

2022-02-08 21:50:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:14 | ------------------------------------

2022-02-08 21:50: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-aae4ec9f-4537-4e0b-b134-d3fe4e467e91",
    "pubsub#title": "Node aae4ec9f-4537-4e0b-b134-d3fe4e467e91"
}

2022-02-08 21:50:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:15 | [Mutex] waiting for: [received:nodes:847fa417-a6e7-4798-af5b-0d24be5a4625:localhost]

2022-02-08 21:50:15 | [Mutex] waiting for: [received:nodes:847fa417-a6e7-4798-af5b-0d24be5a4625:localhost]

2022-02-08 21:50:15 | [Mutex] waiting for: [received:nodes:847fa417-a6e7-4798-af5b-0d24be5a4625:localhost]

2022-02-08 21:50:15 | [Mutex] waiting for: [received:nodes:847fa417-a6e7-4798-af5b-0d24be5a4625:localhost]

2022-02-08 21:50:15 | [Mutex] received everything.

2022-02-08 21:50:15 | [Mutex] isItemNotified: received:node:847fa417-a6e7-4798-af5b-0d24be5a4625:localhost:node-aae4ec9f-4537-4e0b-b134-d3fe4e467e91:Node aae4ec9f-4537-4e0b-b134-d3fe4e467e91 :: true

deleteNodes 1.023s
2022-02-08 21:50:20 |

2022-02-08 21:50:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:20 | ------------------------------------

2022-02-08 21:50:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aae4ec9f-4537-4e0b-b134-d3fe4e467e91"
}

2022-02-08 21:50:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:21 | [Mutex] waiting for: [received:nodes:3e8aab2d-e5b9-4c3a-b10c-bf8afa9077df:localhost]

2022-02-08 21:50:21 | [Mutex] received everything.

2022-02-08 21:50:21 | [Mutex] isItemNotified: received:node:3e8aab2d-e5b9-4c3a-b10c-bf8afa9077df:localhost:node-aae4ec9f-4537-4e0b-b134-d3fe4e467e91:Node aae4ec9f-4537-4e0b-b134-d3fe4e467e91 :: false

deleteSubnodes 1.026s
2022-02-08 21:50:19 |

2022-02-08 21:50:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:19 | ------------------------------------

2022-02-08 21:50:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57"
}

2022-02-08 21:50:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-08 21:50:20 | [Mutex] waiting for: [received:nodes:f2b545c3-4138-4f86-9a87-d306caa3fbfd:localhost]

2022-02-08 21:50:20 | [Mutex] received everything.

2022-02-08 21:50:20 | [Mutex] isItemNotified: received:node:f2b545c3-4138-4f86-9a87-d306caa3fbfd:localhost:node-3e2ca2db-3325-4944-bfc9-23d606187e57:Node 3e2ca2db-3325-4944-bfc9-23d606187e57 :: false

2022-02-08 21:50:20 | [Mutex] waiting for: [received:nodes:08a889e1-b132-47fe-b9d3-2c792e8bfa95:localhost]

2022-02-08 21:50:20 | [Mutex] received everything.

2022-02-08 21:50:20 | [Mutex] isItemNotified: received:node:08a889e1-b132-47fe-b9d3-2c792e8bfa95:localhost:node-3e2ca2db-3325-4944-bfc9-23d606187e57:Node 3e2ca2db-3325-4944-bfc9-23d606187e57 :: false

publishItemsToNodes 0.042s
2022-02-08 21:50:17 |

2022-02-08 21:50:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:17 | ------------------------------------

2022-02-08 21:50:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "entry": "<test>item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c</test>",
    "item-id": "item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c"
}

2022-02-08 21:50:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c"
}

2022-02-08 21:50:17 | [Mutex] waiting for: [published:item:notifieditem-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c:admin@test-domain.com]

2022-02-08 21:50:17 | [Mutex] received everything.

2022-02-08 21:50:17 | [Mutex] isItemNotified: published:item:notifieditem-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c:admin@test-domain.com :: true

retractItemsFromNodes 0.116s
2022-02-08 21:50:17 |

2022-02-08 21:50:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:17 | ------------------------------------

2022-02-08 21:50:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "item-id": "item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c"
}

2022-02-08 21:50:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c"
}

2022-02-08 21:50:18 | [Mutex] received everything.

2022-02-08 21:50:18 | [Mutex] isItemNotified: retracted:item:notifieditem-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.103s
2022-02-08 21:50:17 |

2022-02-08 21:50:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:17 | ------------------------------------

2022-02-08 21:50:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "item-id": "item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c"
}

2022-02-08 21:50:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "item-id": "item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c",
    "item": [
        "<item id=\"item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c\"><test>item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c</test></item>"
    ]
}

2022-02-08 21:50:17 | [Mutex] notify: [retrieved:item:item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c:payload-matches:true:localhost]

2022-02-08 21:50:17 | [Mutex] received everything.

2022-02-08 21:50:17 | [Mutex] isItemNotified: retrieved:item:item-ab4f4a2e-46c6-4d5d-80f3-27ab54e92a4c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-08 21:50:17 |

2022-02-08 21:50:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:17 | ------------------------------------

2022-02-08 21:50:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-08 21:50:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-aae4ec9f-4537-4e0b-b134-d3fe4e467e91",
        "node-3e2ca2db-3325-4944-bfc9-23d606187e57"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-08 21:50:17 |

2022-02-08 21:50:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:17 | ------------------------------------

2022-02-08 21:50:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3e2ca2db-3325-4944-bfc9-23d606187e57)"
}

2022-02-08 21:50:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-08 21:50:16 |

2022-02-08 21:50:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:16 | ------------------------------------

2022-02-08 21:50:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-08 21:50:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-02-08 21:50:18 |

2022-02-08 21:50:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-08 21:50:18 | ------------------------------------

2022-02-08 21:50:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3e2ca2db-3325-4944-bfc9-23d606187e57",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-08 21:50:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}