Generated by TestNG with ReportNG at 21:42 PST on Sunday 14 February 2021
root@43fec6d4badf / 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.098s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2021-02-14 21:58:39 |

2021-02-14 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:39 | ------------------------------------

2021-02-14 21:58:39 | [Mutex] waiting for: [configured:node:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:node-113d3e27-6aa7-4621-98e4-ad2ef59de88a]

2021-02-14 21:58:39 | [Mutex] received everything.

2021-02-14 21:58:39 | [Mutex] isItemNotified: configured:node:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:node-113d3e27-6aa7-4621-98e4-ad2ef59de88a :: true

2021-02-14 21:58:40 | [Mutex] waiting for: [received:nodes:6e1f6fd6-c747-4e2a-8b3d-d94ac8638350:localhost]

2021-02-14 21:58:40 | [Mutex] received everything.

2021-02-14 21:58:40 | [Mutex] isItemNotified: received:node:6e1f6fd6-c747-4e2a-8b3d-d94ac8638350:localhost:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:Node 2dc31118-3ef5-4ffe-bae7-be4f976ce26d :: true

2021-02-14 21:58:40 | [Mutex] waiting for: [received:nodes:068dc228-fcac-4cb2-b8e3-1bd0cfd76685:localhost]

2021-02-14 21:58:40 | [Mutex] received everything.

2021-02-14 21:58:40 | [Mutex] isItemNotified: received:node:068dc228-fcac-4cb2-b8e3-1bd0cfd76685:localhost:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:Node 2dc31118-3ef5-4ffe-bae7-be4f976ce26d :: false

createNodes 1.598s
2021-02-14 21:58:36 |

2021-02-14 21:58:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:36 | ------------------------------------

2021-02-14 21:58: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-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "pubsub#title": "Node 2dc31118-3ef5-4ffe-bae7-be4f976ce26d"
}

2021-02-14 21:58:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:58:37 | [Mutex] waiting for: [received:nodes:6a3c9cc2-6b4b-4c43-b2a9-e52800e64e85:localhost]

2021-02-14 21:58:37 | [Mutex] received everything.

2021-02-14 21:58:37 | [Mutex] isItemNotified: received:node:6a3c9cc2-6b4b-4c43-b2a9-e52800e64e85:localhost:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:Node 2dc31118-3ef5-4ffe-bae7-be4f976ce26d :: true

createSubnodes 1.029s
2021-02-14 21:58:37 |

2021-02-14 21:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:37 | ------------------------------------

2021-02-14 21:58: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-113d3e27-6aa7-4621-98e4-ad2ef59de88a",
    "pubsub#title": "Node 113d3e27-6aa7-4621-98e4-ad2ef59de88a"
}

2021-02-14 21:58:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:58:38 | [Mutex] waiting for: [received:nodes:5cb1cc29-6644-4af7-93ee-2f3d444d2579:localhost]

2021-02-14 21:58:38 | [Mutex] waiting for: [received:nodes:5cb1cc29-6644-4af7-93ee-2f3d444d2579:localhost]

2021-02-14 21:58:39 | [Mutex] received everything.

2021-02-14 21:58:39 | [Mutex] isItemNotified: received:node:5cb1cc29-6644-4af7-93ee-2f3d444d2579:localhost:node-113d3e27-6aa7-4621-98e4-ad2ef59de88a:Node 113d3e27-6aa7-4621-98e4-ad2ef59de88a :: true

deleteNodes 1.025s
2021-02-14 21:58:43 |

2021-02-14 21:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:43 | ------------------------------------

2021-02-14 21:58:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-113d3e27-6aa7-4621-98e4-ad2ef59de88a"
}

2021-02-14 21:58:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:58:44 | [Mutex] waiting for: [received:nodes:eabcd477-91b6-44f1-b663-4ddb7523fe96:localhost]

2021-02-14 21:58:44 | [Mutex] received everything.

2021-02-14 21:58:44 | [Mutex] isItemNotified: received:node:eabcd477-91b6-44f1-b663-4ddb7523fe96:localhost:node-113d3e27-6aa7-4621-98e4-ad2ef59de88a:Node 113d3e27-6aa7-4621-98e4-ad2ef59de88a :: false

deleteSubnodes 1.028s
2021-02-14 21:58:42 |

2021-02-14 21:58:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:42 | ------------------------------------

2021-02-14 21:58:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d"
}

2021-02-14 21:58:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-14 21:58:43 | [Mutex] waiting for: [received:nodes:83343112-ff3f-4b24-9ecf-9004c21c9561:localhost]

2021-02-14 21:58:43 | [Mutex] received everything.

2021-02-14 21:58:43 | [Mutex] isItemNotified: received:node:83343112-ff3f-4b24-9ecf-9004c21c9561:localhost:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:Node 2dc31118-3ef5-4ffe-bae7-be4f976ce26d :: false

2021-02-14 21:58:43 | [Mutex] waiting for: [received:nodes:4ce2beb4-8b77-4da8-8d46-352f1d5f44cf:localhost]

2021-02-14 21:58:43 | [Mutex] received everything.

2021-02-14 21:58:43 | [Mutex] isItemNotified: received:node:4ce2beb4-8b77-4da8-8d46-352f1d5f44cf:localhost:node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d:Node 2dc31118-3ef5-4ffe-bae7-be4f976ce26d :: false

publishItemsToNodes 0.099s
2021-02-14 21:58:41 |

2021-02-14 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:41 | ------------------------------------

2021-02-14 21:58:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "entry": "<test>item-8e6c81a7-f457-410e-8371-a0b0bdd29f90</test>",
    "item-id": "item-8e6c81a7-f457-410e-8371-a0b0bdd29f90"
}

2021-02-14 21:58:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8e6c81a7-f457-410e-8371-a0b0bdd29f90"
}

2021-02-14 21:58:41 | [Mutex] waiting for: [published:item:notifieditem-8e6c81a7-f457-410e-8371-a0b0bdd29f90:admin@test-domain.com]

2021-02-14 21:58:41 | [Mutex] received everything.

2021-02-14 21:58:41 | [Mutex] isItemNotified: published:item:notifieditem-8e6c81a7-f457-410e-8371-a0b0bdd29f90:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2021-02-14 21:58:41 |

2021-02-14 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:41 | ------------------------------------

2021-02-14 21:58:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "item-id": "item-8e6c81a7-f457-410e-8371-a0b0bdd29f90"
}

2021-02-14 21:58:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8e6c81a7-f457-410e-8371-a0b0bdd29f90"
}

2021-02-14 21:58:41 | [Mutex] received everything.

2021-02-14 21:58:41 | [Mutex] isItemNotified: retracted:item:notifieditem-8e6c81a7-f457-410e-8371-a0b0bdd29f90:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2021-02-14 21:58:41 |

2021-02-14 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:41 | ------------------------------------

2021-02-14 21:58:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "item-id": "item-8e6c81a7-f457-410e-8371-a0b0bdd29f90"
}

2021-02-14 21:58:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "item-id": "item-8e6c81a7-f457-410e-8371-a0b0bdd29f90",
    "item": [
        "<item id=\"item-8e6c81a7-f457-410e-8371-a0b0bdd29f90\"><test>item-8e6c81a7-f457-410e-8371-a0b0bdd29f90</test></item>"
    ]
}

2021-02-14 21:58:41 | [Mutex] notify: [retrieved:item:item-8e6c81a7-f457-410e-8371-a0b0bdd29f90:payload-matches:true:localhost]

2021-02-14 21:58:41 | [Mutex] received everything.

2021-02-14 21:58:41 | [Mutex] isItemNotified: retrieved:item:item-8e6c81a7-f457-410e-8371-a0b0bdd29f90:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.078s
2021-02-14 21:58:41 |

2021-02-14 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:41 | ------------------------------------

2021-02-14 21:58:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-14 21:58:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
        "node-113d3e27-6aa7-4621-98e4-ad2ef59de88a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-02-14 21:58:41 |

2021-02-14 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:41 | ------------------------------------

2021-02-14 21:58:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d)"
}

2021-02-14 21:58:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-02-14 21:58:40 |

2021-02-14 21:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:40 | ------------------------------------

2021-02-14 21:58:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 21:58:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-02-14 21:58:41 |

2021-02-14 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-14 21:58:41 | ------------------------------------

2021-02-14 21:58:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2dc31118-3ef5-4ffe-bae7-be4f976ce26d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-14 21:58:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}