Generated by TestNG with ReportNG at 22:18 PDT on Monday 01 August 2022
root@f9c07ffec79b / 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.632s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.147s
2022-08-01 22:33:02 |

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

2022-08-01 22:33:02 | ------------------------------------

2022-08-01 22:33:02 | [Mutex] waiting for: [configured:node:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:node-db4f4325-60dc-4703-b770-84d97dd37f86]

2022-08-01 22:33:02 | [Mutex] received everything.

2022-08-01 22:33:02 | [Mutex] isItemNotified: configured:node:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:node-db4f4325-60dc-4703-b770-84d97dd37f86 :: true

2022-08-01 22:33:03 | [Mutex] waiting for: [received:nodes:527a9d11-9cbe-4fe1-9bcd-5cb2cf968887:localhost]

2022-08-01 22:33:03 | [Mutex] received everything.

2022-08-01 22:33:03 | [Mutex] isItemNotified: received:node:527a9d11-9cbe-4fe1-9bcd-5cb2cf968887:localhost:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:Node 2f3031c8-33c4-48d2-9040-94dd2a35c8db :: true

2022-08-01 22:33:03 | [Mutex] waiting for: [received:nodes:cb4327c7-bfee-4ba3-97e3-1def6138bcc6:localhost]

2022-08-01 22:33:03 | [Mutex] received everything.

2022-08-01 22:33:03 | [Mutex] isItemNotified: received:node:cb4327c7-bfee-4ba3-97e3-1def6138bcc6:localhost:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:Node 2f3031c8-33c4-48d2-9040-94dd2a35c8db :: false

createNodes 1.583s
2022-08-01 22:32:59 |

2022-08-01 22:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-01 22:32:59 | ------------------------------------

2022-08-01 22:33:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "pubsub#title": "Node 2f3031c8-33c4-48d2-9040-94dd2a35c8db"
}

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

2022-08-01 22:33:01 | [Mutex] waiting for: [received:nodes:eefe0905-1a61-4ea0-9b75-1a7bbb398a7c:localhost]

2022-08-01 22:33:01 | [Mutex] waiting for: [received:nodes:eefe0905-1a61-4ea0-9b75-1a7bbb398a7c:localhost]

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

2022-08-01 22:33:01 | [Mutex] isItemNotified: received:node:eefe0905-1a61-4ea0-9b75-1a7bbb398a7c:localhost:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:Node 2f3031c8-33c4-48d2-9040-94dd2a35c8db :: true

createSubnodes 1.023s
2022-08-01 22:33:01 |

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

2022-08-01 22:33:01 | ------------------------------------

2022-08-01 22:33:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-db4f4325-60dc-4703-b770-84d97dd37f86",
    "pubsub#title": "Node db4f4325-60dc-4703-b770-84d97dd37f86"
}

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

2022-08-01 22:33:02 | [Mutex] waiting for: [received:nodes:ec39c60f-1487-4cfb-bb05-57c9beb87275:localhost]

2022-08-01 22:33:02 | [Mutex] waiting for: [received:nodes:ec39c60f-1487-4cfb-bb05-57c9beb87275:localhost]

2022-08-01 22:33:02 | [Mutex] received everything.

2022-08-01 22:33:02 | [Mutex] isItemNotified: received:node:ec39c60f-1487-4cfb-bb05-57c9beb87275:localhost:node-db4f4325-60dc-4703-b770-84d97dd37f86:Node db4f4325-60dc-4703-b770-84d97dd37f86 :: true

deleteNodes 1.024s
2022-08-01 22:33:06 |

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

2022-08-01 22:33:06 | ------------------------------------

2022-08-01 22:33:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-db4f4325-60dc-4703-b770-84d97dd37f86"
}

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

2022-08-01 22:33:07 | [Mutex] waiting for: [received:nodes:f919d6b2-895e-4cfb-98e4-aa2fa8b78f98:localhost]

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

2022-08-01 22:33:07 | [Mutex] isItemNotified: received:node:f919d6b2-895e-4cfb-98e4-aa2fa8b78f98:localhost:node-db4f4325-60dc-4703-b770-84d97dd37f86:Node db4f4325-60dc-4703-b770-84d97dd37f86 :: false

deleteSubnodes 1.027s
2022-08-01 22:33:05 |

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

2022-08-01 22:33:05 | ------------------------------------

2022-08-01 22:33:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db"
}

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

2022-08-01 22:33:06 | [Mutex] waiting for: [received:nodes:7b3556ce-9098-4ed1-8315-5ecc7841dae9:localhost]

2022-08-01 22:33:06 | [Mutex] received everything.

2022-08-01 22:33:06 | [Mutex] isItemNotified: received:node:7b3556ce-9098-4ed1-8315-5ecc7841dae9:localhost:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:Node 2f3031c8-33c4-48d2-9040-94dd2a35c8db :: false

2022-08-01 22:33:06 | [Mutex] waiting for: [received:nodes:78598544-1f1f-4117-9982-a095166532d2:localhost]

2022-08-01 22:33:06 | [Mutex] received everything.

2022-08-01 22:33:06 | [Mutex] isItemNotified: received:node:78598544-1f1f-4117-9982-a095166532d2:localhost:node-2f3031c8-33c4-48d2-9040-94dd2a35c8db:Node 2f3031c8-33c4-48d2-9040-94dd2a35c8db :: false

publishItemsToNodes 0.039s
2022-08-01 22:33:04 |

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

2022-08-01 22:33:04 | ------------------------------------

2022-08-01 22:33:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "entry": "<test>item-568d5397-9777-452b-b99d-38d5850a3a36</test>",
    "item-id": "item-568d5397-9777-452b-b99d-38d5850a3a36"
}

2022-08-01 22:33:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-568d5397-9777-452b-b99d-38d5850a3a36"
}

2022-08-01 22:33:04 | [Mutex] waiting for: [published:item:notifieditem-568d5397-9777-452b-b99d-38d5850a3a36:admin@test-domain.com]

2022-08-01 22:33:04 | [Mutex] received everything.

2022-08-01 22:33:04 | [Mutex] isItemNotified: published:item:notifieditem-568d5397-9777-452b-b99d-38d5850a3a36:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-01 22:33:04 |

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

2022-08-01 22:33:04 | ------------------------------------

2022-08-01 22:33:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "item-id": "item-568d5397-9777-452b-b99d-38d5850a3a36"
}

2022-08-01 22:33:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-568d5397-9777-452b-b99d-38d5850a3a36"
}

2022-08-01 22:33:04 | [Mutex] received everything.

2022-08-01 22:33:04 | [Mutex] isItemNotified: retracted:item:notifieditem-568d5397-9777-452b-b99d-38d5850a3a36:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2022-08-01 22:33:04 |

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

2022-08-01 22:33:04 | ------------------------------------

2022-08-01 22:33:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "item-id": "item-568d5397-9777-452b-b99d-38d5850a3a36"
}

2022-08-01 22:33:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "item-id": "item-568d5397-9777-452b-b99d-38d5850a3a36",
    "item": [
        "<item id=\"item-568d5397-9777-452b-b99d-38d5850a3a36\"><test>item-568d5397-9777-452b-b99d-38d5850a3a36</test></item>"
    ]
}

2022-08-01 22:33:04 | [Mutex] notify: [retrieved:item:item-568d5397-9777-452b-b99d-38d5850a3a36:payload-matches:true:localhost]

2022-08-01 22:33:04 | [Mutex] received everything.

2022-08-01 22:33:04 | [Mutex] isItemNotified: retrieved:item:item-568d5397-9777-452b-b99d-38d5850a3a36:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-01 22:33:04 |

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

2022-08-01 22:33:04 | ------------------------------------

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

2022-08-01 22:33:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-db4f4325-60dc-4703-b770-84d97dd37f86",
        "test",
        "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-01 22:33:04 |

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

2022-08-01 22:33:04 | ------------------------------------

2022-08-01 22:33:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2f3031c8-33c4-48d2-9040-94dd2a35c8db)"
}

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

subscribeNodes 1.014s
2022-08-01 22:33:03 |

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

2022-08-01 22:33:03 | ------------------------------------

2022-08-01 22:33:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.060s
2022-08-01 22:33:04 |

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

2022-08-01 22:33:04 | ------------------------------------

2022-08-01 22:33:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2f3031c8-33c4-48d2-9040-94dd2a35c8db",
    "jids": [
        "admin@test-domain.com"
    ]
}

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