Generated by TestNG with ReportNG at 22:00 PST on Sunday 20 February 2022
root@f29ef40080b5 / 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 : 9.132s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2022-02-20 22:13:52 |

2022-02-20 22:13:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-20 22:13:52 | ------------------------------------

2022-02-20 22:13:52 | [Mutex] waiting for: [configured:node:node-57182090-dd02-4002-bbe8-45076768be95:node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8]

2022-02-20 22:13:52 | [Mutex] received everything.

2022-02-20 22:13:52 | [Mutex] isItemNotified: configured:node:node-57182090-dd02-4002-bbe8-45076768be95:node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8 :: true

2022-02-20 22:13:53 | [Mutex] waiting for: [received:nodes:9f35b9e5-9f79-4a65-854f-2c8dbde353f2:localhost]

2022-02-20 22:13:53 | [Mutex] received everything.

2022-02-20 22:13:53 | [Mutex] isItemNotified: received:node:9f35b9e5-9f79-4a65-854f-2c8dbde353f2:localhost:node-57182090-dd02-4002-bbe8-45076768be95:Node 57182090-dd02-4002-bbe8-45076768be95 :: true

2022-02-20 22:13:53 | [Mutex] waiting for: [received:nodes:1ec32c6a-771e-46dc-bb83-0d4d90cd19ac:localhost]

2022-02-20 22:13:53 | [Mutex] received everything.

2022-02-20 22:13:53 | [Mutex] isItemNotified: received:node:1ec32c6a-771e-46dc-bb83-0d4d90cd19ac:localhost:node-57182090-dd02-4002-bbe8-45076768be95:Node 57182090-dd02-4002-bbe8-45076768be95 :: false

createNodes 1.822s
2022-02-20 22:13:49 |

2022-02-20 22:13:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-20 22:13:49 | ------------------------------------

2022-02-20 22:13:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "pubsub#title": "Node 57182090-dd02-4002-bbe8-45076768be95"
}

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

2022-02-20 22:13:51 | [Mutex] waiting for: [received:nodes:145c37f9-3279-4f62-825d-5e5b78f8995c:localhost]

2022-02-20 22:13:51 | [Mutex] received everything.

2022-02-20 22:13:51 | [Mutex] isItemNotified: received:node:145c37f9-3279-4f62-825d-5e5b78f8995c:localhost:node-57182090-dd02-4002-bbe8-45076768be95:Node 57182090-dd02-4002-bbe8-45076768be95 :: true

createSubnodes 1.023s
2022-02-20 22:13:51 |

2022-02-20 22:13:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-20 22:13:51 | ------------------------------------

2022-02-20 22:13:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8",
    "pubsub#title": "Node a9e3e171-2df0-4b0c-88fa-f5e42313bdf8"
}

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

2022-02-20 22:13:52 | [Mutex] waiting for: [received:nodes:f6cd8815-6196-41e4-bfb1-32336108fdfd:localhost]

2022-02-20 22:13:52 | [Mutex] received everything.

2022-02-20 22:13:52 | [Mutex] isItemNotified: received:node:f6cd8815-6196-41e4-bfb1-32336108fdfd:localhost:node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8:Node a9e3e171-2df0-4b0c-88fa-f5e42313bdf8 :: true

deleteNodes 1.018s
2022-02-20 22:13:57 |

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

2022-02-20 22:13:57 | ------------------------------------

2022-02-20 22:13:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8"
}

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

2022-02-20 22:13:58 | [Mutex] waiting for: [received:nodes:b80ec32b-76ef-4d33-9a73-6c12db8fe50b:localhost]

2022-02-20 22:13:58 | [Mutex] received everything.

2022-02-20 22:13:58 | [Mutex] isItemNotified: received:node:b80ec32b-76ef-4d33-9a73-6c12db8fe50b:localhost:node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8:Node a9e3e171-2df0-4b0c-88fa-f5e42313bdf8 :: false

deleteSubnodes 1.027s
2022-02-20 22:13:56 |

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

2022-02-20 22:13:56 | ------------------------------------

2022-02-20 22:13:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-57182090-dd02-4002-bbe8-45076768be95"
}

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

2022-02-20 22:13:57 | [Mutex] waiting for: [received:nodes:f880fb82-efcb-44b2-a073-271ba084613f:localhost]

2022-02-20 22:13:57 | [Mutex] waiting for: [received:nodes:f880fb82-efcb-44b2-a073-271ba084613f:localhost]

2022-02-20 22:13:57 | [Mutex] waiting for: [received:nodes:f880fb82-efcb-44b2-a073-271ba084613f:localhost]

2022-02-20 22:13:57 | [Mutex] received everything.

2022-02-20 22:13:57 | [Mutex] isItemNotified: received:node:f880fb82-efcb-44b2-a073-271ba084613f:localhost:node-57182090-dd02-4002-bbe8-45076768be95:Node 57182090-dd02-4002-bbe8-45076768be95 :: false

2022-02-20 22:13:57 | [Mutex] waiting for: [received:nodes:502122ca-ee87-493f-999c-07b29d350ab2:localhost]

2022-02-20 22:13:57 | [Mutex] received everything.

2022-02-20 22:13:57 | [Mutex] isItemNotified: received:node:502122ca-ee87-493f-999c-07b29d350ab2:localhost:node-57182090-dd02-4002-bbe8-45076768be95:Node 57182090-dd02-4002-bbe8-45076768be95 :: false

publishItemsToNodes 0.037s
2022-02-20 22:13:54 |

2022-02-20 22:13:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-20 22:13:54 | ------------------------------------

2022-02-20 22:13:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "entry": "<test>item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9</test>",
    "item-id": "item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9"
}

2022-02-20 22:13:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9"
}

2022-02-20 22:13:54 | [Mutex] waiting for: [published:item:notifieditem-f3af1c89-19fa-4e39-953d-9e8ccd9335b9:admin@test-domain.com]

2022-02-20 22:13:54 | [Mutex] received everything.

2022-02-20 22:13:54 | [Mutex] isItemNotified: published:item:notifieditem-f3af1c89-19fa-4e39-953d-9e8ccd9335b9:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-02-20 22:13:55 |

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

2022-02-20 22:13:55 | ------------------------------------

2022-02-20 22:13:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "item-id": "item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9"
}

2022-02-20 22:13:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9"
}

2022-02-20 22:13:55 | [Mutex] received everything.

2022-02-20 22:13:55 | [Mutex] isItemNotified: retracted:item:notifieditem-f3af1c89-19fa-4e39-953d-9e8ccd9335b9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.160s
2022-02-20 22:13:54 |

2022-02-20 22:13:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-20 22:13:54 | ------------------------------------

2022-02-20 22:13:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "item-id": "item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9"
}

2022-02-20 22:13:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "item-id": "item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9",
    "item": [
        "<item id=\"item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9\"><test>item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9</test></item>"
    ]
}

2022-02-20 22:13:54 | [Mutex] notify: [retrieved:item:item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9:payload-matches:true:localhost]

2022-02-20 22:13:54 | [Mutex] received everything.

2022-02-20 22:13:54 | [Mutex] isItemNotified: retrieved:item:item-f3af1c89-19fa-4e39-953d-9e8ccd9335b9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-20 22:13:54 |

2022-02-20 22:13:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-20 22:13:54 | ------------------------------------

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

2022-02-20 22:13:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a9e3e171-2df0-4b0c-88fa-f5e42313bdf8",
        "node-57182090-dd02-4002-bbe8-45076768be95"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-20 22:13:55 |

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

2022-02-20 22:13:55 | ------------------------------------

2022-02-20 22:13:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-57182090-dd02-4002-bbe8-45076768be95)"
}

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

subscribeNodes 1.016s
2022-02-20 22:13:53 |

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

2022-02-20 22:13:53 | ------------------------------------

2022-02-20 22:13:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2022-02-20 22:13:55 |

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

2022-02-20 22:13:55 | ------------------------------------

2022-02-20 22:13:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-57182090-dd02-4002-bbe8-45076768be95",
    "jids": [
        "admin@test-domain.com"
    ]
}

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