Generated by TestNG with ReportNG at 22:18 PDT on Friday 08 July 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.641s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.137s
2022-07-08 22:33:12 |

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

2022-07-08 22:33:12 | ------------------------------------

2022-07-08 22:33:12 | [Mutex] waiting for: [configured:node:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:node-2f652dd1-7923-43d5-b6cd-067e95f60279]

2022-07-08 22:33:12 | [Mutex] received everything.

2022-07-08 22:33:12 | [Mutex] isItemNotified: configured:node:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:node-2f652dd1-7923-43d5-b6cd-067e95f60279 :: true

2022-07-08 22:33:13 | [Mutex] waiting for: [received:nodes:e5534d6b-c511-46f8-bf2c-ea1856b7ee86:localhost]

2022-07-08 22:33:13 | [Mutex] received everything.

2022-07-08 22:33:13 | [Mutex] isItemNotified: received:node:e5534d6b-c511-46f8-bf2c-ea1856b7ee86:localhost:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:Node e32af0dc-e1ae-48ce-b32b-9b7b9abc589d :: true

2022-07-08 22:33:13 | [Mutex] waiting for: [received:nodes:1944f50e-26ef-4727-be5b-c615b2c92088:localhost]

2022-07-08 22:33:13 | [Mutex] received everything.

2022-07-08 22:33:13 | [Mutex] isItemNotified: received:node:1944f50e-26ef-4727-be5b-c615b2c92088:localhost:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:Node e32af0dc-e1ae-48ce-b32b-9b7b9abc589d :: false

createNodes 1.583s
2022-07-08 22:33:10 |

2022-07-08 22:33:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:33:10 | ------------------------------------

2022-07-08 22:33: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-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "pubsub#title": "Node e32af0dc-e1ae-48ce-b32b-9b7b9abc589d"
}

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

2022-07-08 22:33:11 | [Mutex] waiting for: [received:nodes:ac6b9038-42be-444c-8b1c-91fa0e45f9d5:localhost]

2022-07-08 22:33:11 | [Mutex] received everything.

2022-07-08 22:33:11 | [Mutex] isItemNotified: received:node:ac6b9038-42be-444c-8b1c-91fa0e45f9d5:localhost:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:Node e32af0dc-e1ae-48ce-b32b-9b7b9abc589d :: true

createSubnodes 1.025s
2022-07-08 22:33:11 |

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

2022-07-08 22:33:11 | ------------------------------------

2022-07-08 22:33: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-2f652dd1-7923-43d5-b6cd-067e95f60279",
    "pubsub#title": "Node 2f652dd1-7923-43d5-b6cd-067e95f60279"
}

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

2022-07-08 22:33:12 | [Mutex] waiting for: [received:nodes:4797cc6d-1de3-40e9-8cd6-73674bb7c383:localhost]

2022-07-08 22:33:12 | [Mutex] received everything.

2022-07-08 22:33:12 | [Mutex] isItemNotified: received:node:4797cc6d-1de3-40e9-8cd6-73674bb7c383:localhost:node-2f652dd1-7923-43d5-b6cd-067e95f60279:Node 2f652dd1-7923-43d5-b6cd-067e95f60279 :: true

deleteNodes 1.021s
2022-07-08 22:33:17 |

2022-07-08 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 22:33:17 | ------------------------------------

2022-07-08 22:33:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2f652dd1-7923-43d5-b6cd-067e95f60279"
}

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

2022-07-08 22:33:18 | [Mutex] waiting for: [received:nodes:7f272ffe-18f5-46e8-9477-eb8236380e9c:localhost]

2022-07-08 22:33:18 | [Mutex] waiting for: [received:nodes:7f272ffe-18f5-46e8-9477-eb8236380e9c:localhost]

2022-07-08 22:33:18 | [Mutex] received everything.

2022-07-08 22:33:18 | [Mutex] isItemNotified: received:node:7f272ffe-18f5-46e8-9477-eb8236380e9c:localhost:node-2f652dd1-7923-43d5-b6cd-067e95f60279:Node 2f652dd1-7923-43d5-b6cd-067e95f60279 :: false

deleteSubnodes 1.025s
2022-07-08 22:33:16 |

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

2022-07-08 22:33:16 | ------------------------------------

2022-07-08 22:33:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d"
}

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

2022-07-08 22:33:17 | [Mutex] waiting for: [received:nodes:a00b6831-2cf2-4624-aca5-f5e83617cf11:localhost]

2022-07-08 22:33:17 | [Mutex] received everything.

2022-07-08 22:33:17 | [Mutex] isItemNotified: received:node:a00b6831-2cf2-4624-aca5-f5e83617cf11:localhost:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:Node e32af0dc-e1ae-48ce-b32b-9b7b9abc589d :: false

2022-07-08 22:33:17 | [Mutex] waiting for: [received:nodes:72546070-95f7-40f0-bb98-75f7d34fdc26:localhost]

2022-07-08 22:33:17 | [Mutex] received everything.

2022-07-08 22:33:17 | [Mutex] isItemNotified: received:node:72546070-95f7-40f0-bb98-75f7d34fdc26:localhost:node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d:Node e32af0dc-e1ae-48ce-b32b-9b7b9abc589d :: false

publishItemsToNodes 0.044s
2022-07-08 22:33:14 |

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

2022-07-08 22:33:14 | ------------------------------------

2022-07-08 22:33:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "entry": "<test>item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f</test>",
    "item-id": "item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f"
}

2022-07-08 22:33:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f"
}

2022-07-08 22:33:14 | [Mutex] received everything.

2022-07-08 22:33:14 | [Mutex] isItemNotified: published:item:notifieditem-f925462f-7f0f-4e91-9df1-9cf3dcb8089f:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2022-07-08 22:33:15 |

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

2022-07-08 22:33:15 | ------------------------------------

2022-07-08 22:33:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "item-id": "item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f"
}

2022-07-08 22:33:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f"
}

2022-07-08 22:33:15 | [Mutex] received everything.

2022-07-08 22:33:15 | [Mutex] isItemNotified: retracted:item:notifieditem-f925462f-7f0f-4e91-9df1-9cf3dcb8089f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2022-07-08 22:33:14 |

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

2022-07-08 22:33:14 | ------------------------------------

2022-07-08 22:33:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "item-id": "item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f"
}

2022-07-08 22:33:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "item-id": "item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f",
    "item": [
        "<item id=\"item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f\"><test>item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f</test></item>"
    ]
}

2022-07-08 22:33:14 | [Mutex] notify: [retrieved:item:item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f:payload-matches:true:localhost]

2022-07-08 22:33:14 | [Mutex] received everything.

2022-07-08 22:33:14 | [Mutex] isItemNotified: retrieved:item:item-f925462f-7f0f-4e91-9df1-9cf3dcb8089f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-08 22:33:14 |

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

2022-07-08 22:33:14 | ------------------------------------

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

2022-07-08 22:33:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2f652dd1-7923-43d5-b6cd-067e95f60279",
        "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-07-08 22:33:14 |

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

2022-07-08 22:33:14 | ------------------------------------

2022-07-08 22:33:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d)"
}

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

subscribeNodes 1.013s
2022-07-08 22:33:13 |

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

2022-07-08 22:33:13 | ------------------------------------

2022-07-08 22:33:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-07-08 22:33:15 |

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

2022-07-08 22:33:15 | ------------------------------------

2022-07-08 22:33:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e32af0dc-e1ae-48ce-b32b-9b7b9abc589d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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