Generated by TestNG with ReportNG at 22:14 PDT on Friday 04 June 2021
root@785cf647a4ab / 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.050s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2021-06-04 22:28:38 |

2021-06-04 22:28:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:38 | ------------------------------------

2021-06-04 22:28:38 | [Mutex] waiting for: [configured:node:node-ce78450f-bbaf-47a0-b572-24b9c374959d:node-29702eb3-12e5-401b-bd5d-505dad9f30d0]

2021-06-04 22:28:38 | [Mutex] received everything.

2021-06-04 22:28:38 | [Mutex] isItemNotified: configured:node:node-ce78450f-bbaf-47a0-b572-24b9c374959d:node-29702eb3-12e5-401b-bd5d-505dad9f30d0 :: true

2021-06-04 22:28:39 | [Mutex] waiting for: [received:nodes:1091628d-4b85-4357-9970-865d76595f68:localhost]

2021-06-04 22:28:39 | [Mutex] waiting for: [received:nodes:1091628d-4b85-4357-9970-865d76595f68:localhost]

2021-06-04 22:28:39 | [Mutex] received everything.

2021-06-04 22:28:39 | [Mutex] isItemNotified: received:node:1091628d-4b85-4357-9970-865d76595f68:localhost:node-ce78450f-bbaf-47a0-b572-24b9c374959d:Node ce78450f-bbaf-47a0-b572-24b9c374959d :: true

2021-06-04 22:28:39 | [Mutex] waiting for: [received:nodes:c7683a63-7fd6-4a5c-a7b5-f631ef244600:localhost]

2021-06-04 22:28:39 | [Mutex] received everything.

2021-06-04 22:28:39 | [Mutex] isItemNotified: received:node:c7683a63-7fd6-4a5c-a7b5-f631ef244600:localhost:node-ce78450f-bbaf-47a0-b572-24b9c374959d:Node ce78450f-bbaf-47a0-b572-24b9c374959d :: false

createNodes 1.728s
2021-06-04 22:28:36 |

2021-06-04 22:28:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:36 | ------------------------------------

2021-06-04 22:28:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "pubsub#title": "Node ce78450f-bbaf-47a0-b572-24b9c374959d"
}

2021-06-04 22:28:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:28:37 | [Mutex] waiting for: [received:nodes:1cd8ffe1-4bc2-49bf-92d5-26ba4af84a0b:localhost]

2021-06-04 22:28:37 | [Mutex] received everything.

2021-06-04 22:28:37 | [Mutex] isItemNotified: received:node:1cd8ffe1-4bc2-49bf-92d5-26ba4af84a0b:localhost:node-ce78450f-bbaf-47a0-b572-24b9c374959d:Node ce78450f-bbaf-47a0-b572-24b9c374959d :: true

createSubnodes 1.078s
2021-06-04 22:28:37 |

2021-06-04 22:28:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:37 | ------------------------------------

2021-06-04 22:28:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-29702eb3-12e5-401b-bd5d-505dad9f30d0",
    "pubsub#title": "Node 29702eb3-12e5-401b-bd5d-505dad9f30d0"
}

2021-06-04 22:28:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:28:38 | [Mutex] waiting for: [received:nodes:8bff646f-c913-47c4-8fc6-7cd2d3758659:localhost]

2021-06-04 22:28:38 | [Mutex] received everything.

2021-06-04 22:28:38 | [Mutex] isItemNotified: received:node:8bff646f-c913-47c4-8fc6-7cd2d3758659:localhost:node-29702eb3-12e5-401b-bd5d-505dad9f30d0:Node 29702eb3-12e5-401b-bd5d-505dad9f30d0 :: true

deleteNodes 1.021s
2021-06-04 22:28:43 |

2021-06-04 22:28:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:43 | ------------------------------------

2021-06-04 22:28:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-29702eb3-12e5-401b-bd5d-505dad9f30d0"
}

2021-06-04 22:28:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:28:44 | [Mutex] waiting for: [received:nodes:a3516bfa-6b75-4e89-820c-9609a157a40c:localhost]

2021-06-04 22:28:44 | [Mutex] waiting for: [received:nodes:a3516bfa-6b75-4e89-820c-9609a157a40c:localhost]

2021-06-04 22:28:44 | [Mutex] received everything.

2021-06-04 22:28:44 | [Mutex] isItemNotified: received:node:a3516bfa-6b75-4e89-820c-9609a157a40c:localhost:node-29702eb3-12e5-401b-bd5d-505dad9f30d0:Node 29702eb3-12e5-401b-bd5d-505dad9f30d0 :: false

deleteSubnodes 1.032s
2021-06-04 22:28:42 |

2021-06-04 22:28:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:42 | ------------------------------------

2021-06-04 22:28:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d"
}

2021-06-04 22:28:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-04 22:28:43 | [Mutex] waiting for: [received:nodes:ff0adb94-1182-452e-a708-a427f8af18bd:localhost]

2021-06-04 22:28:43 | [Mutex] waiting for: [received:nodes:ff0adb94-1182-452e-a708-a427f8af18bd:localhost]

2021-06-04 22:28:43 | [Mutex] received everything.

2021-06-04 22:28:43 | [Mutex] isItemNotified: received:node:ff0adb94-1182-452e-a708-a427f8af18bd:localhost:node-ce78450f-bbaf-47a0-b572-24b9c374959d:Node ce78450f-bbaf-47a0-b572-24b9c374959d :: false

2021-06-04 22:28:43 | [Mutex] waiting for: [received:nodes:1f5a2e44-7791-41bc-b649-d6ef32e82ad5:localhost]

2021-06-04 22:28:43 | [Mutex] received everything.

2021-06-04 22:28:43 | [Mutex] isItemNotified: received:node:1f5a2e44-7791-41bc-b649-d6ef32e82ad5:localhost:node-ce78450f-bbaf-47a0-b572-24b9c374959d:Node ce78450f-bbaf-47a0-b572-24b9c374959d :: false

publishItemsToNodes 0.085s
2021-06-04 22:28:40 |

2021-06-04 22:28:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:40 | ------------------------------------

2021-06-04 22:28:40 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "entry": "<test>item-431d3a98-73c5-4512-af7c-dbaa73a678cf</test>",
    "item-id": "item-431d3a98-73c5-4512-af7c-dbaa73a678cf"
}

2021-06-04 22:28:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-431d3a98-73c5-4512-af7c-dbaa73a678cf"
}

2021-06-04 22:28:41 | [Mutex] waiting for: [published:item:notifieditem-431d3a98-73c5-4512-af7c-dbaa73a678cf:admin@test-domain.com]

2021-06-04 22:28:41 | [Mutex] received everything.

2021-06-04 22:28:41 | [Mutex] isItemNotified: published:item:notifieditem-431d3a98-73c5-4512-af7c-dbaa73a678cf:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-06-04 22:28:41 |

2021-06-04 22:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:41 | ------------------------------------

2021-06-04 22:28:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "item-id": "item-431d3a98-73c5-4512-af7c-dbaa73a678cf"
}

2021-06-04 22:28:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-431d3a98-73c5-4512-af7c-dbaa73a678cf"
}

2021-06-04 22:28:41 | [Mutex] received everything.

2021-06-04 22:28:41 | [Mutex] isItemNotified: retracted:item:notifieditem-431d3a98-73c5-4512-af7c-dbaa73a678cf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.048s
2021-06-04 22:28:41 |

2021-06-04 22:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:41 | ------------------------------------

2021-06-04 22:28:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "item-id": "item-431d3a98-73c5-4512-af7c-dbaa73a678cf"
}

2021-06-04 22:28:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "item-id": "item-431d3a98-73c5-4512-af7c-dbaa73a678cf",
    "item": [
        "<item id=\"item-431d3a98-73c5-4512-af7c-dbaa73a678cf\"><test>item-431d3a98-73c5-4512-af7c-dbaa73a678cf</test></item>"
    ]
}

2021-06-04 22:28:41 | [Mutex] notify: [retrieved:item:item-431d3a98-73c5-4512-af7c-dbaa73a678cf:payload-matches:true:localhost]

2021-06-04 22:28:41 | [Mutex] received everything.

2021-06-04 22:28:41 | [Mutex] isItemNotified: retrieved:item:item-431d3a98-73c5-4512-af7c-dbaa73a678cf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2021-06-04 22:28:41 |

2021-06-04 22:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:41 | ------------------------------------

2021-06-04 22:28:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-04 22:28:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-29702eb3-12e5-401b-bd5d-505dad9f30d0",
        "node-ce78450f-bbaf-47a0-b572-24b9c374959d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-06-04 22:28:41 |

2021-06-04 22:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:41 | ------------------------------------

2021-06-04 22:28:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ce78450f-bbaf-47a0-b572-24b9c374959d)"
}

2021-06-04 22:28:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-06-04 22:28:39 |

2021-06-04 22:28:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:39 | ------------------------------------

2021-06-04 22:28:39 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-04 22:28:39 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-06-04 22:28:41 |

2021-06-04 22:28:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:28:41 | ------------------------------------

2021-06-04 22:28:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ce78450f-bbaf-47a0-b572-24b9c374959d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-04 22:28:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}