Generated by TestNG with ReportNG at 22:22 PDT on Monday 10 October 2022
root@7c41cec37518 / 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.548s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-10-10 22:43:51 |

2022-10-10 22:43:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:51 | ------------------------------------

2022-10-10 22:43:51 | [Mutex] waiting for: [configured:node:node-f55ad39c-b5b1-476c-a255-9c291313d683:node-8389c89b-609d-4313-b9cb-64d2c6b5fde1]

2022-10-10 22:43:51 | [Mutex] received everything.

2022-10-10 22:43:51 | [Mutex] isItemNotified: configured:node:node-f55ad39c-b5b1-476c-a255-9c291313d683:node-8389c89b-609d-4313-b9cb-64d2c6b5fde1 :: true

2022-10-10 22:43:52 | [Mutex] waiting for: [received:nodes:df09cc99-1cc1-4754-bc2d-88c09fe6e474:localhost]

2022-10-10 22:43:52 | [Mutex] received everything.

2022-10-10 22:43:52 | [Mutex] isItemNotified: received:node:df09cc99-1cc1-4754-bc2d-88c09fe6e474:localhost:node-f55ad39c-b5b1-476c-a255-9c291313d683:Node f55ad39c-b5b1-476c-a255-9c291313d683 :: true

2022-10-10 22:43:52 | [Mutex] waiting for: [received:nodes:ceea5903-1dec-4b93-8e55-747860fedc2f:localhost]

2022-10-10 22:43:52 | [Mutex] waiting for: [received:nodes:ceea5903-1dec-4b93-8e55-747860fedc2f:localhost]

2022-10-10 22:43:52 | [Mutex] received everything.

2022-10-10 22:43:52 | [Mutex] isItemNotified: received:node:ceea5903-1dec-4b93-8e55-747860fedc2f:localhost:node-f55ad39c-b5b1-476c-a255-9c291313d683:Node f55ad39c-b5b1-476c-a255-9c291313d683 :: false

createNodes 1.553s
2022-10-10 22:43:49 |

2022-10-10 22:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:49 | ------------------------------------

2022-10-10 22:43:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "pubsub#title": "Node f55ad39c-b5b1-476c-a255-9c291313d683"
}

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

2022-10-10 22:43:50 | [Mutex] waiting for: [received:nodes:daa11dc2-1999-49b4-aeb5-a57a3c3dd86d:localhost]

2022-10-10 22:43:50 | [Mutex] received everything.

2022-10-10 22:43:50 | [Mutex] isItemNotified: received:node:daa11dc2-1999-49b4-aeb5-a57a3c3dd86d:localhost:node-f55ad39c-b5b1-476c-a255-9c291313d683:Node f55ad39c-b5b1-476c-a255-9c291313d683 :: true

createSubnodes 1.020s
2022-10-10 22:43:50 |

2022-10-10 22:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:50 | ------------------------------------

2022-10-10 22:43:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8389c89b-609d-4313-b9cb-64d2c6b5fde1",
    "pubsub#title": "Node 8389c89b-609d-4313-b9cb-64d2c6b5fde1"
}

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

2022-10-10 22:43:51 | [Mutex] waiting for: [received:nodes:64b50591-7ff6-4199-b475-12d3ab4a3849:localhost]

2022-10-10 22:43:51 | [Mutex] received everything.

2022-10-10 22:43:51 | [Mutex] isItemNotified: received:node:64b50591-7ff6-4199-b475-12d3ab4a3849:localhost:node-8389c89b-609d-4313-b9cb-64d2c6b5fde1:Node 8389c89b-609d-4313-b9cb-64d2c6b5fde1 :: true

deleteNodes 1.024s
2022-10-10 22:43:56 |

2022-10-10 22:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:56 | ------------------------------------

2022-10-10 22:43:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8389c89b-609d-4313-b9cb-64d2c6b5fde1"
}

2022-10-10 22:43:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-10 22:43:57 | [Mutex] waiting for: [received:nodes:39828467-d411-4206-b580-42d83625b680:localhost]

2022-10-10 22:43:57 | [Mutex] waiting for: [received:nodes:39828467-d411-4206-b580-42d83625b680:localhost]

2022-10-10 22:43:57 | [Mutex] waiting for: [received:nodes:39828467-d411-4206-b580-42d83625b680:localhost]

2022-10-10 22:43:57 | [Mutex] received everything.

2022-10-10 22:43:57 | [Mutex] isItemNotified: received:node:39828467-d411-4206-b580-42d83625b680:localhost:node-8389c89b-609d-4313-b9cb-64d2c6b5fde1:Node 8389c89b-609d-4313-b9cb-64d2c6b5fde1 :: false

deleteSubnodes 1.036s
2022-10-10 22:43:55 |

2022-10-10 22:43:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:55 | ------------------------------------

2022-10-10 22:43:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683"
}

2022-10-10 22:43:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-10 22:43:56 | [Mutex] waiting for: [received:nodes:650486f7-5e49-4ef7-b334-756367b18c77:localhost]

2022-10-10 22:43:56 | [Mutex] waiting for: [received:nodes:650486f7-5e49-4ef7-b334-756367b18c77:localhost]

2022-10-10 22:43:56 | [Mutex] waiting for: [received:nodes:650486f7-5e49-4ef7-b334-756367b18c77:localhost]

2022-10-10 22:43:56 | [Mutex] received everything.

2022-10-10 22:43:56 | [Mutex] isItemNotified: received:node:650486f7-5e49-4ef7-b334-756367b18c77:localhost:node-f55ad39c-b5b1-476c-a255-9c291313d683:Node f55ad39c-b5b1-476c-a255-9c291313d683 :: false

2022-10-10 22:43:56 | [Mutex] waiting for: [received:nodes:a8dbcf8e-53f0-4881-a7aa-0fb8d5878c9f:localhost]

2022-10-10 22:43:56 | [Mutex] received everything.

2022-10-10 22:43:56 | [Mutex] isItemNotified: received:node:a8dbcf8e-53f0-4881-a7aa-0fb8d5878c9f:localhost:node-f55ad39c-b5b1-476c-a255-9c291313d683:Node f55ad39c-b5b1-476c-a255-9c291313d683 :: false

publishItemsToNodes 0.039s
2022-10-10 22:43:53 |

2022-10-10 22:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:53 | ------------------------------------

2022-10-10 22:43:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "entry": "<test>item-7caa351c-491d-4d58-9ee1-db6002e94fb7</test>",
    "item-id": "item-7caa351c-491d-4d58-9ee1-db6002e94fb7"
}

2022-10-10 22:43:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7caa351c-491d-4d58-9ee1-db6002e94fb7"
}

2022-10-10 22:43:53 | [Mutex] waiting for: [published:item:notifieditem-7caa351c-491d-4d58-9ee1-db6002e94fb7:admin@test-domain.com]

2022-10-10 22:43:53 | [Mutex] received everything.

2022-10-10 22:43:53 | [Mutex] isItemNotified: published:item:notifieditem-7caa351c-491d-4d58-9ee1-db6002e94fb7:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-10-10 22:43:54 |

2022-10-10 22:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:54 | ------------------------------------

2022-10-10 22:43:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "item-id": "item-7caa351c-491d-4d58-9ee1-db6002e94fb7"
}

2022-10-10 22:43:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7caa351c-491d-4d58-9ee1-db6002e94fb7"
}

2022-10-10 22:43:54 | [Mutex] received everything.

2022-10-10 22:43:54 | [Mutex] isItemNotified: retracted:item:notifieditem-7caa351c-491d-4d58-9ee1-db6002e94fb7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2022-10-10 22:43:53 |

2022-10-10 22:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:53 | ------------------------------------

2022-10-10 22:43:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "item-id": "item-7caa351c-491d-4d58-9ee1-db6002e94fb7"
}

2022-10-10 22:43:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "item-id": "item-7caa351c-491d-4d58-9ee1-db6002e94fb7",
    "item": [
        "<item id=\"item-7caa351c-491d-4d58-9ee1-db6002e94fb7\"><test>item-7caa351c-491d-4d58-9ee1-db6002e94fb7</test></item>"
    ]
}

2022-10-10 22:43:53 | [Mutex] notify: [retrieved:item:item-7caa351c-491d-4d58-9ee1-db6002e94fb7:payload-matches:true:localhost]

2022-10-10 22:43:53 | [Mutex] received everything.

2022-10-10 22:43:53 | [Mutex] isItemNotified: retrieved:item:item-7caa351c-491d-4d58-9ee1-db6002e94fb7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-10-10 22:43:53 |

2022-10-10 22:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:53 | ------------------------------------

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

2022-10-10 22:43:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8389c89b-609d-4313-b9cb-64d2c6b5fde1",
        "node-f55ad39c-b5b1-476c-a255-9c291313d683"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-10 22:43:54 |

2022-10-10 22:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:54 | ------------------------------------

2022-10-10 22:43:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f55ad39c-b5b1-476c-a255-9c291313d683)"
}

2022-10-10 22:43:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-10-10 22:43:52 |

2022-10-10 22:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:52 | ------------------------------------

2022-10-10 22:43:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-10 22:43:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-10-10 22:43:54 |

2022-10-10 22:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-10 22:43:54 | ------------------------------------

2022-10-10 22:43:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f55ad39c-b5b1-476c-a255-9c291313d683",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-10 22:43:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}