Generated by TestNG with ReportNG at 22:53 PDT on Thursday 22 September 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.715s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.125s
2022-09-22 23:07:26 |

2022-09-22 23:07:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:26 | ------------------------------------

2022-09-22 23:07:26 | [Mutex] waiting for: [configured:node:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:node-a053e36b-af1a-45e2-a68e-1e88fbb1e176]

2022-09-22 23:07:26 | [Mutex] received everything.

2022-09-22 23:07:26 | [Mutex] isItemNotified: configured:node:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:node-a053e36b-af1a-45e2-a68e-1e88fbb1e176 :: true

2022-09-22 23:07:27 | [Mutex] waiting for: [received:nodes:16eaf897-cd89-4476-98bf-e8a67dc4366d:localhost]

2022-09-22 23:07:27 | [Mutex] received everything.

2022-09-22 23:07:27 | [Mutex] isItemNotified: received:node:16eaf897-cd89-4476-98bf-e8a67dc4366d:localhost:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:Node fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d :: true

2022-09-22 23:07:27 | [Mutex] waiting for: [received:nodes:b0a7d702-ac05-4182-bbab-6f0334dfcb49:localhost]

2022-09-22 23:07:27 | [Mutex] waiting for: [received:nodes:b0a7d702-ac05-4182-bbab-6f0334dfcb49:localhost]

2022-09-22 23:07:27 | [Mutex] received everything.

2022-09-22 23:07:27 | [Mutex] isItemNotified: received:node:b0a7d702-ac05-4182-bbab-6f0334dfcb49:localhost:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:Node fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d :: false

createNodes 1.636s
2022-09-22 23:07:23 |

2022-09-22 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:23 | ------------------------------------

2022-09-22 23:07:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "pubsub#title": "Node fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d"
}

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

2022-09-22 23:07:25 | [Mutex] waiting for: [received:nodes:62cc2762-0b6d-4530-bc8b-5ca4db727a38:localhost]

2022-09-22 23:07:25 | [Mutex] received everything.

2022-09-22 23:07:25 | [Mutex] isItemNotified: received:node:62cc2762-0b6d-4530-bc8b-5ca4db727a38:localhost:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:Node fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d :: true

createSubnodes 1.022s
2022-09-22 23:07:25 |

2022-09-22 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:25 | ------------------------------------

2022-09-22 23:07:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a053e36b-af1a-45e2-a68e-1e88fbb1e176",
    "pubsub#title": "Node a053e36b-af1a-45e2-a68e-1e88fbb1e176"
}

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

2022-09-22 23:07:26 | [Mutex] waiting for: [received:nodes:49d95573-f6d4-4c26-9e03-f67f42d1b143:localhost]

2022-09-22 23:07:26 | [Mutex] waiting for: [received:nodes:49d95573-f6d4-4c26-9e03-f67f42d1b143:localhost]

2022-09-22 23:07:26 | [Mutex] received everything.

2022-09-22 23:07:26 | [Mutex] isItemNotified: received:node:49d95573-f6d4-4c26-9e03-f67f42d1b143:localhost:node-a053e36b-af1a-45e2-a68e-1e88fbb1e176:Node a053e36b-af1a-45e2-a68e-1e88fbb1e176 :: true

deleteNodes 1.022s
2022-09-22 23:07:30 |

2022-09-22 23:07:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:30 | ------------------------------------

2022-09-22 23:07:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a053e36b-af1a-45e2-a68e-1e88fbb1e176"
}

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

2022-09-22 23:07:31 | [Mutex] waiting for: [received:nodes:6bdd3ec3-9c57-487b-80ff-5822c5440b15:localhost]

2022-09-22 23:07:31 | [Mutex] received everything.

2022-09-22 23:07:31 | [Mutex] isItemNotified: received:node:6bdd3ec3-9c57-487b-80ff-5822c5440b15:localhost:node-a053e36b-af1a-45e2-a68e-1e88fbb1e176:Node a053e36b-af1a-45e2-a68e-1e88fbb1e176 :: false

deleteSubnodes 1.029s
2022-09-22 23:07:29 |

2022-09-22 23:07:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:29 | ------------------------------------

2022-09-22 23:07:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d"
}

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

2022-09-22 23:07:30 | [Mutex] waiting for: [received:nodes:65cc57ac-d829-4dd8-b31b-ed1aa0f48372:localhost]

2022-09-22 23:07:30 | [Mutex] received everything.

2022-09-22 23:07:30 | [Mutex] isItemNotified: received:node:65cc57ac-d829-4dd8-b31b-ed1aa0f48372:localhost:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:Node fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d :: false

2022-09-22 23:07:30 | [Mutex] waiting for: [received:nodes:de0da85f-752e-4053-8b67-d87e9137fb39:localhost]

2022-09-22 23:07:30 | [Mutex] received everything.

2022-09-22 23:07:30 | [Mutex] isItemNotified: received:node:de0da85f-752e-4053-8b67-d87e9137fb39:localhost:node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d:Node fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d :: false

publishItemsToNodes 0.047s
2022-09-22 23:07:28 |

2022-09-22 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:28 | ------------------------------------

2022-09-22 23:07:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "entry": "<test>item-55fdfbfe-ff68-47af-8a5f-3ab730103956</test>",
    "item-id": "item-55fdfbfe-ff68-47af-8a5f-3ab730103956"
}

2022-09-22 23:07:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55fdfbfe-ff68-47af-8a5f-3ab730103956"
}

2022-09-22 23:07:28 | [Mutex] waiting for: [published:item:notifieditem-55fdfbfe-ff68-47af-8a5f-3ab730103956:admin@test-domain.com]

2022-09-22 23:07:28 | [Mutex] received everything.

2022-09-22 23:07:28 | [Mutex] isItemNotified: published:item:notifieditem-55fdfbfe-ff68-47af-8a5f-3ab730103956:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-09-22 23:07:28 |

2022-09-22 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:28 | ------------------------------------

2022-09-22 23:07:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "item-id": "item-55fdfbfe-ff68-47af-8a5f-3ab730103956"
}

2022-09-22 23:07:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55fdfbfe-ff68-47af-8a5f-3ab730103956"
}

2022-09-22 23:07:28 | [Mutex] received everything.

2022-09-22 23:07:28 | [Mutex] isItemNotified: retracted:item:notifieditem-55fdfbfe-ff68-47af-8a5f-3ab730103956:admin@test-domain.com :: true

retrieveItemsFromNodes 0.091s
2022-09-22 23:07:28 |

2022-09-22 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:28 | ------------------------------------

2022-09-22 23:07:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "item-id": "item-55fdfbfe-ff68-47af-8a5f-3ab730103956"
}

2022-09-22 23:07:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "item-id": "item-55fdfbfe-ff68-47af-8a5f-3ab730103956",
    "item": [
        "<item id=\"item-55fdfbfe-ff68-47af-8a5f-3ab730103956\"><test>item-55fdfbfe-ff68-47af-8a5f-3ab730103956</test></item>"
    ]
}

2022-09-22 23:07:28 | [Mutex] notify: [retrieved:item:item-55fdfbfe-ff68-47af-8a5f-3ab730103956:payload-matches:true:localhost]

2022-09-22 23:07:28 | [Mutex] received everything.

2022-09-22 23:07:28 | [Mutex] isItemNotified: retrieved:item:item-55fdfbfe-ff68-47af-8a5f-3ab730103956:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-22 23:07:28 |

2022-09-22 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:28 | ------------------------------------

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

2022-09-22 23:07:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a053e36b-af1a-45e2-a68e-1e88fbb1e176",
        "test",
        "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2022-09-22 23:07:28 |

2022-09-22 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:28 | ------------------------------------

2022-09-22 23:07:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d)"
}

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

subscribeNodes 1.010s
2022-09-22 23:07:27 |

2022-09-22 23:07:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:27 | ------------------------------------

2022-09-22 23:07:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-09-22 23:07:28 |

2022-09-22 23:07:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-22 23:07:28 | ------------------------------------

2022-09-22 23:07:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fcb2d91c-4086-4a32-88fa-ac0f4a1ead3d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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