Generated by TestNG with ReportNG at 22:01 PST on Sunday 06 February 2022
root@785cf647a4ab / 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.987s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-02-06 22:18:56 |

2022-02-06 22:18:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:56 | ------------------------------------

2022-02-06 22:18:56 | [Mutex] waiting for: [configured:node:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:node-d983940f-354e-469e-bfd9-b2c1cb5080f5]

2022-02-06 22:18:56 | [Mutex] received everything.

2022-02-06 22:18:56 | [Mutex] isItemNotified: configured:node:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:node-d983940f-354e-469e-bfd9-b2c1cb5080f5 :: true

2022-02-06 22:18:57 | [Mutex] waiting for: [received:nodes:a129e73d-c2c6-4c8b-8402-b612a1d8765f:localhost]

2022-02-06 22:18:57 | [Mutex] received everything.

2022-02-06 22:18:57 | [Mutex] isItemNotified: received:node:a129e73d-c2c6-4c8b-8402-b612a1d8765f:localhost:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:Node c5f5241c-02a5-4b9d-a4c7-83ab508a8861 :: true

2022-02-06 22:18:57 | [Mutex] waiting for: [received:nodes:ebbb0a65-3188-4d79-8147-8b821ff80566:localhost]

2022-02-06 22:18:57 | [Mutex] received everything.

2022-02-06 22:18:57 | [Mutex] isItemNotified: received:node:ebbb0a65-3188-4d79-8147-8b821ff80566:localhost:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:Node c5f5241c-02a5-4b9d-a4c7-83ab508a8861 :: false

createNodes 1.695s
2022-02-06 22:18:53 |

2022-02-06 22:18:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:53 | ------------------------------------

2022-02-06 22:18:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "pubsub#title": "Node c5f5241c-02a5-4b9d-a4c7-83ab508a8861"
}

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

2022-02-06 22:18:55 | [Mutex] waiting for: [received:nodes:80e889f7-6519-4dfb-a5c3-0e3f365caad8:localhost]

2022-02-06 22:18:55 | [Mutex] waiting for: [received:nodes:80e889f7-6519-4dfb-a5c3-0e3f365caad8:localhost]

2022-02-06 22:18:55 | [Mutex] received everything.

2022-02-06 22:18:55 | [Mutex] isItemNotified: received:node:80e889f7-6519-4dfb-a5c3-0e3f365caad8:localhost:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:Node c5f5241c-02a5-4b9d-a4c7-83ab508a8861 :: true

createSubnodes 1.024s
2022-02-06 22:18:55 |

2022-02-06 22:18:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:55 | ------------------------------------

2022-02-06 22:18:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d983940f-354e-469e-bfd9-b2c1cb5080f5",
    "pubsub#title": "Node d983940f-354e-469e-bfd9-b2c1cb5080f5"
}

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

2022-02-06 22:18:56 | [Mutex] waiting for: [received:nodes:1463988d-3de5-431a-ab2b-c59159d44c9a:localhost]

2022-02-06 22:18:56 | [Mutex] received everything.

2022-02-06 22:18:56 | [Mutex] isItemNotified: received:node:1463988d-3de5-431a-ab2b-c59159d44c9a:localhost:node-d983940f-354e-469e-bfd9-b2c1cb5080f5:Node d983940f-354e-469e-bfd9-b2c1cb5080f5 :: true

deleteNodes 1.032s
2022-02-06 22:19:00 |

2022-02-06 22:19:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:19:00 | ------------------------------------

2022-02-06 22:19:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d983940f-354e-469e-bfd9-b2c1cb5080f5"
}

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

2022-02-06 22:19:01 | [Mutex] waiting for: [received:nodes:4d8e500c-c402-4dea-86df-702cfd95be44:localhost]

2022-02-06 22:19:01 | [Mutex] waiting for: [received:nodes:4d8e500c-c402-4dea-86df-702cfd95be44:localhost]

2022-02-06 22:19:01 | [Mutex] received everything.

2022-02-06 22:19:01 | [Mutex] isItemNotified: received:node:4d8e500c-c402-4dea-86df-702cfd95be44:localhost:node-d983940f-354e-469e-bfd9-b2c1cb5080f5:Node d983940f-354e-469e-bfd9-b2c1cb5080f5 :: false

deleteSubnodes 1.027s
2022-02-06 22:18:59 |

2022-02-06 22:18:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:59 | ------------------------------------

2022-02-06 22:18:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861"
}

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

2022-02-06 22:19:00 | [Mutex] waiting for: [received:nodes:3fa07ba2-084c-4803-b38c-15209740cf31:localhost]

2022-02-06 22:19:00 | [Mutex] received everything.

2022-02-06 22:19:00 | [Mutex] isItemNotified: received:node:3fa07ba2-084c-4803-b38c-15209740cf31:localhost:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:Node c5f5241c-02a5-4b9d-a4c7-83ab508a8861 :: false

2022-02-06 22:19:00 | [Mutex] waiting for: [received:nodes:46f734a4-aba8-4968-8ec0-b1b582e3d3dd:localhost]

2022-02-06 22:19:00 | [Mutex] received everything.

2022-02-06 22:19:00 | [Mutex] isItemNotified: received:node:46f734a4-aba8-4968-8ec0-b1b582e3d3dd:localhost:node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861:Node c5f5241c-02a5-4b9d-a4c7-83ab508a8861 :: false

publishItemsToNodes 0.086s
2022-02-06 22:18:58 |

2022-02-06 22:18:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:58 | ------------------------------------

2022-02-06 22:18:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "entry": "<test>item-f4e3a177-c754-415e-9e87-5e7fe2346aa8</test>",
    "item-id": "item-f4e3a177-c754-415e-9e87-5e7fe2346aa8"
}

2022-02-06 22:18:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f4e3a177-c754-415e-9e87-5e7fe2346aa8"
}

2022-02-06 22:18:58 | [Mutex] waiting for: [published:item:notifieditem-f4e3a177-c754-415e-9e87-5e7fe2346aa8:admin@test-domain.com]

2022-02-06 22:18:58 | [Mutex] received everything.

2022-02-06 22:18:58 | [Mutex] isItemNotified: published:item:notifieditem-f4e3a177-c754-415e-9e87-5e7fe2346aa8:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-02-06 22:18:58 |

2022-02-06 22:18:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:58 | ------------------------------------

2022-02-06 22:18:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "item-id": "item-f4e3a177-c754-415e-9e87-5e7fe2346aa8"
}

2022-02-06 22:18:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f4e3a177-c754-415e-9e87-5e7fe2346aa8"
}

2022-02-06 22:18:58 | [Mutex] received everything.

2022-02-06 22:18:58 | [Mutex] isItemNotified: retracted:item:notifieditem-f4e3a177-c754-415e-9e87-5e7fe2346aa8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.088s
2022-02-06 22:18:58 |

2022-02-06 22:18:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:58 | ------------------------------------

2022-02-06 22:18:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "item-id": "item-f4e3a177-c754-415e-9e87-5e7fe2346aa8"
}

2022-02-06 22:18:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "item-id": "item-f4e3a177-c754-415e-9e87-5e7fe2346aa8",
    "item": [
        "<item id=\"item-f4e3a177-c754-415e-9e87-5e7fe2346aa8\"><test>item-f4e3a177-c754-415e-9e87-5e7fe2346aa8</test></item>"
    ]
}

2022-02-06 22:18:58 | [Mutex] notify: [retrieved:item:item-f4e3a177-c754-415e-9e87-5e7fe2346aa8:payload-matches:true:localhost]

2022-02-06 22:18:58 | [Mutex] received everything.

2022-02-06 22:18:58 | [Mutex] isItemNotified: retrieved:item:item-f4e3a177-c754-415e-9e87-5e7fe2346aa8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-06 22:18:58 |

2022-02-06 22:18:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:58 | ------------------------------------

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

2022-02-06 22:18:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
        "test",
        "node-d983940f-354e-469e-bfd9-b2c1cb5080f5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-06 22:18:58 |

2022-02-06 22:18:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:58 | ------------------------------------

2022-02-06 22:18:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861)"
}

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

subscribeNodes 1.013s
2022-02-06 22:18:57 |

2022-02-06 22:18:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:57 | ------------------------------------

2022-02-06 22:18:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-02-06 22:18:58 |

2022-02-06 22:18:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-06 22:18:58 | ------------------------------------

2022-02-06 22:18:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c5f5241c-02a5-4b9d-a4c7-83ab508a8861",
    "jids": [
        "admin@test-domain.com"
    ]
}

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