Generated by TestNG with ReportNG at 22:49 PDT on Wednesday 05 July 2023
root@1512af24e4a5 / Java 17.0.6 (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.628s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2023-07-05 23:04:05 |

2023-07-05 23:04:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:05 | ------------------------------------

2023-07-05 23:04:05 | [Mutex] waiting for: [configured:node:node-350239c7-a163-4be6-b7be-162e25133034:node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f]

2023-07-05 23:04:05 | [Mutex] received everything.

2023-07-05 23:04:05 | [Mutex] isItemNotified: configured:node:node-350239c7-a163-4be6-b7be-162e25133034:node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f :: true

2023-07-05 23:04:06 | [Mutex] waiting for: [received:nodes:b96a9a2f-9f97-41fc-a7ed-fcba443f6604:localhost]

2023-07-05 23:04:06 | [Mutex] received everything.

2023-07-05 23:04:06 | [Mutex] isItemNotified: received:node:b96a9a2f-9f97-41fc-a7ed-fcba443f6604:localhost:node-350239c7-a163-4be6-b7be-162e25133034:Node 350239c7-a163-4be6-b7be-162e25133034 :: true

2023-07-05 23:04:06 | [Mutex] waiting for: [received:nodes:be4354d0-9ea2-4337-abd1-489fe77137a8:localhost]

2023-07-05 23:04:06 | [Mutex] waiting for: [received:nodes:be4354d0-9ea2-4337-abd1-489fe77137a8:localhost]

2023-07-05 23:04:06 | [Mutex] received everything.

2023-07-05 23:04:06 | [Mutex] isItemNotified: received:node:be4354d0-9ea2-4337-abd1-489fe77137a8:localhost:node-350239c7-a163-4be6-b7be-162e25133034:Node 350239c7-a163-4be6-b7be-162e25133034 :: false

createNodes 1.668s
2023-07-05 23:04:02 |

2023-07-05 23:04:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:02 | ------------------------------------

2023-07-05 23:04:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "pubsub#title": "Node 350239c7-a163-4be6-b7be-162e25133034"
}

2023-07-05 23:04:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:04 | [Mutex] waiting for: [received:nodes:3d3ff7f3-1eff-4a46-8fff-32e2ab83decb:localhost]

2023-07-05 23:04:04 | [Mutex] waiting for: [received:nodes:3d3ff7f3-1eff-4a46-8fff-32e2ab83decb:localhost]

2023-07-05 23:04:04 | [Mutex] waiting for: [received:nodes:3d3ff7f3-1eff-4a46-8fff-32e2ab83decb:localhost]

2023-07-05 23:04:04 | [Mutex] waiting for: [received:nodes:3d3ff7f3-1eff-4a46-8fff-32e2ab83decb:localhost]

2023-07-05 23:04:04 | [Mutex] received everything.

2023-07-05 23:04:04 | [Mutex] isItemNotified: received:node:3d3ff7f3-1eff-4a46-8fff-32e2ab83decb:localhost:node-350239c7-a163-4be6-b7be-162e25133034:Node 350239c7-a163-4be6-b7be-162e25133034 :: true

createSubnodes 1.033s
2023-07-05 23:04:04 |

2023-07-05 23:04:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:04 | ------------------------------------

2023-07-05 23:04:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f",
    "pubsub#title": "Node b3641b9c-1a61-45c4-88bb-12fbe1d5709f"
}

2023-07-05 23:04:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:05 | [Mutex] waiting for: [received:nodes:01d263a1-ae8b-4fd2-b8b1-9217677ff5c2:localhost]

2023-07-05 23:04:05 | [Mutex] received everything.

2023-07-05 23:04:05 | [Mutex] isItemNotified: received:node:01d263a1-ae8b-4fd2-b8b1-9217677ff5c2:localhost:node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f:Node b3641b9c-1a61-45c4-88bb-12fbe1d5709f :: true

deleteNodes 1.018s
2023-07-05 23:04:09 |

2023-07-05 23:04:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:09 | ------------------------------------

2023-07-05 23:04:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f"
}

2023-07-05 23:04:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:10 | [Mutex] waiting for: [received:nodes:2e309135-703f-40ee-ad4e-767638f04246:localhost]

2023-07-05 23:04:10 | [Mutex] waiting for: [received:nodes:2e309135-703f-40ee-ad4e-767638f04246:localhost]

2023-07-05 23:04:10 | [Mutex] waiting for: [received:nodes:2e309135-703f-40ee-ad4e-767638f04246:localhost]

2023-07-05 23:04:10 | [Mutex] received everything.

2023-07-05 23:04:10 | [Mutex] isItemNotified: received:node:2e309135-703f-40ee-ad4e-767638f04246:localhost:node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f:Node b3641b9c-1a61-45c4-88bb-12fbe1d5709f :: false

deleteSubnodes 1.026s
2023-07-05 23:04:08 |

2023-07-05 23:04:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:08 | ------------------------------------

2023-07-05 23:04:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-350239c7-a163-4be6-b7be-162e25133034"
}

2023-07-05 23:04:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:09 | [Mutex] waiting for: [received:nodes:577b27b2-d725-4422-9bce-0f0625da49b4:localhost]

2023-07-05 23:04:09 | [Mutex] waiting for: [received:nodes:577b27b2-d725-4422-9bce-0f0625da49b4:localhost]

2023-07-05 23:04:09 | [Mutex] waiting for: [received:nodes:577b27b2-d725-4422-9bce-0f0625da49b4:localhost]

2023-07-05 23:04:09 | [Mutex] received everything.

2023-07-05 23:04:09 | [Mutex] isItemNotified: received:node:577b27b2-d725-4422-9bce-0f0625da49b4:localhost:node-350239c7-a163-4be6-b7be-162e25133034:Node 350239c7-a163-4be6-b7be-162e25133034 :: false

2023-07-05 23:04:09 | [Mutex] waiting for: [received:nodes:51153b8a-e1e5-49ff-aad3-e3e53ce023b0:localhost]

2023-07-05 23:04:09 | [Mutex] received everything.

2023-07-05 23:04:09 | [Mutex] isItemNotified: received:node:51153b8a-e1e5-49ff-aad3-e3e53ce023b0:localhost:node-350239c7-a163-4be6-b7be-162e25133034:Node 350239c7-a163-4be6-b7be-162e25133034 :: false

publishItemsToNodes 0.043s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "entry": "<test>item-0fc394e4-95a8-4eca-987f-4d261cf40411</test>",
    "item-id": "item-0fc394e4-95a8-4eca-987f-4d261cf40411"
}

2023-07-05 23:04:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0fc394e4-95a8-4eca-987f-4d261cf40411"
}

2023-07-05 23:04:07 | [Mutex] waiting for: [published:item:notifieditem-0fc394e4-95a8-4eca-987f-4d261cf40411:admin@test-domain.com]

2023-07-05 23:04:07 | [Mutex] received everything.

2023-07-05 23:04:07 | [Mutex] isItemNotified: published:item:notifieditem-0fc394e4-95a8-4eca-987f-4d261cf40411:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "item-id": "item-0fc394e4-95a8-4eca-987f-4d261cf40411"
}

2023-07-05 23:04:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0fc394e4-95a8-4eca-987f-4d261cf40411"
}

2023-07-05 23:04:07 | [Mutex] received everything.

2023-07-05 23:04:07 | [Mutex] isItemNotified: retracted:item:notifieditem-0fc394e4-95a8-4eca-987f-4d261cf40411:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "item-id": "item-0fc394e4-95a8-4eca-987f-4d261cf40411"
}

2023-07-05 23:04:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "item-id": "item-0fc394e4-95a8-4eca-987f-4d261cf40411",
    "item": [
        "<item id=\"item-0fc394e4-95a8-4eca-987f-4d261cf40411\"><test>item-0fc394e4-95a8-4eca-987f-4d261cf40411</test></item>"
    ]
}

2023-07-05 23:04:07 | [Mutex] notify: [retrieved:item:item-0fc394e4-95a8-4eca-987f-4d261cf40411:payload-matches:true:localhost]

2023-07-05 23:04:07 | [Mutex] received everything.

2023-07-05 23:04:07 | [Mutex] isItemNotified: retrieved:item:item-0fc394e4-95a8-4eca-987f-4d261cf40411:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-05 23:04:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b3641b9c-1a61-45c4-88bb-12fbe1d5709f",
        "node-350239c7-a163-4be6-b7be-162e25133034"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-350239c7-a163-4be6-b7be-162e25133034)"
}

2023-07-05 23:04:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-07-05 23:04:06 |

2023-07-05 23:04:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:06 | ------------------------------------

2023-07-05 23:04:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 23:04:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-350239c7-a163-4be6-b7be-162e25133034",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 23:04:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}