Generated by TestNG with ReportNG at 22:14 PDT on Wednesday 17 March 2021
root@eaa73862192b / 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 : 8.907s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2021-03-17 22:29:31 |

2021-03-17 22:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:31 | ------------------------------------

2021-03-17 22:29:31 | [Mutex] waiting for: [configured:node:node-7195bb2a-4adf-4542-a021-9ac31c072a59:node-1a74e36d-e50d-4b21-87af-4317fd5379c1]

2021-03-17 22:29:32 | [Mutex] received everything.

2021-03-17 22:29:32 | [Mutex] isItemNotified: configured:node:node-7195bb2a-4adf-4542-a021-9ac31c072a59:node-1a74e36d-e50d-4b21-87af-4317fd5379c1 :: true

2021-03-17 22:29:33 | [Mutex] waiting for: [received:nodes:7ca87d1a-727f-4a36-ac9c-9ab9df19908c:localhost]

2021-03-17 22:29:33 | [Mutex] received everything.

2021-03-17 22:29:33 | [Mutex] isItemNotified: received:node:7ca87d1a-727f-4a36-ac9c-9ab9df19908c:localhost:node-7195bb2a-4adf-4542-a021-9ac31c072a59:Node 7195bb2a-4adf-4542-a021-9ac31c072a59 :: true

2021-03-17 22:29:33 | [Mutex] waiting for: [received:nodes:6a59f452-8613-4e44-a11e-5536c1e938cf:localhost]

2021-03-17 22:29:33 | [Mutex] received everything.

2021-03-17 22:29:33 | [Mutex] isItemNotified: received:node:6a59f452-8613-4e44-a11e-5536c1e938cf:localhost:node-7195bb2a-4adf-4542-a021-9ac31c072a59:Node 7195bb2a-4adf-4542-a021-9ac31c072a59 :: false

createNodes 1.620s
2021-03-17 22:29:29 |

2021-03-17 22:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:29 | ------------------------------------

2021-03-17 22:29:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "pubsub#title": "Node 7195bb2a-4adf-4542-a021-9ac31c072a59"
}

2021-03-17 22:29:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:29:30 | [Mutex] waiting for: [received:nodes:87077c5a-4a94-4ba8-9a4d-7117fbc698fc:localhost]

2021-03-17 22:29:30 | [Mutex] received everything.

2021-03-17 22:29:30 | [Mutex] isItemNotified: received:node:87077c5a-4a94-4ba8-9a4d-7117fbc698fc:localhost:node-7195bb2a-4adf-4542-a021-9ac31c072a59:Node 7195bb2a-4adf-4542-a021-9ac31c072a59 :: true

createSubnodes 1.024s
2021-03-17 22:29:30 |

2021-03-17 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:30 | ------------------------------------

2021-03-17 22:29:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1a74e36d-e50d-4b21-87af-4317fd5379c1",
    "pubsub#title": "Node 1a74e36d-e50d-4b21-87af-4317fd5379c1"
}

2021-03-17 22:29:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:29:31 | [Mutex] waiting for: [received:nodes:edab0552-247e-4481-8938-52f45a5a87a5:localhost]

2021-03-17 22:29:31 | [Mutex] received everything.

2021-03-17 22:29:31 | [Mutex] isItemNotified: received:node:edab0552-247e-4481-8938-52f45a5a87a5:localhost:node-1a74e36d-e50d-4b21-87af-4317fd5379c1:Node 1a74e36d-e50d-4b21-87af-4317fd5379c1 :: true

deleteNodes 1.029s
2021-03-17 22:29:36 |

2021-03-17 22:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:36 | ------------------------------------

2021-03-17 22:29:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a74e36d-e50d-4b21-87af-4317fd5379c1"
}

2021-03-17 22:29:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:29:37 | [Mutex] waiting for: [received:nodes:e779edd3-0794-41a6-ac21-b7f61b8646e7:localhost]

2021-03-17 22:29:37 | [Mutex] received everything.

2021-03-17 22:29:37 | [Mutex] isItemNotified: received:node:e779edd3-0794-41a6-ac21-b7f61b8646e7:localhost:node-1a74e36d-e50d-4b21-87af-4317fd5379c1:Node 1a74e36d-e50d-4b21-87af-4317fd5379c1 :: false

deleteSubnodes 1.029s
2021-03-17 22:29:35 |

2021-03-17 22:29:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:35 | ------------------------------------

2021-03-17 22:29:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59"
}

2021-03-17 22:29:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-17 22:29:36 | [Mutex] waiting for: [received:nodes:cbac078d-5e3f-4052-abe3-3c6d4465cac7:localhost]

2021-03-17 22:29:36 | [Mutex] received everything.

2021-03-17 22:29:36 | [Mutex] isItemNotified: received:node:cbac078d-5e3f-4052-abe3-3c6d4465cac7:localhost:node-7195bb2a-4adf-4542-a021-9ac31c072a59:Node 7195bb2a-4adf-4542-a021-9ac31c072a59 :: false

2021-03-17 22:29:36 | [Mutex] waiting for: [received:nodes:1924cf57-eae0-4937-b68d-abdd18be1663:localhost]

2021-03-17 22:29:36 | [Mutex] received everything.

2021-03-17 22:29:36 | [Mutex] isItemNotified: received:node:1924cf57-eae0-4937-b68d-abdd18be1663:localhost:node-7195bb2a-4adf-4542-a021-9ac31c072a59:Node 7195bb2a-4adf-4542-a021-9ac31c072a59 :: false

publishItemsToNodes 0.056s
2021-03-17 22:29:34 |

2021-03-17 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:34 | ------------------------------------

2021-03-17 22:29:34 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "entry": "<test>item-aa04bc2b-9d28-4c75-ae69-c465fa25704e</test>",
    "item-id": "item-aa04bc2b-9d28-4c75-ae69-c465fa25704e"
}

2021-03-17 22:29:34 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa04bc2b-9d28-4c75-ae69-c465fa25704e"
}

2021-03-17 22:29:34 | [Mutex] waiting for: [published:item:notifieditem-aa04bc2b-9d28-4c75-ae69-c465fa25704e:admin@test-domain.com]

2021-03-17 22:29:34 | [Mutex] received everything.

2021-03-17 22:29:34 | [Mutex] isItemNotified: published:item:notifieditem-aa04bc2b-9d28-4c75-ae69-c465fa25704e:admin@test-domain.com :: true

retractItemsFromNodes 0.120s
2021-03-17 22:29:34 |

2021-03-17 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:34 | ------------------------------------

2021-03-17 22:29:34 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "item-id": "item-aa04bc2b-9d28-4c75-ae69-c465fa25704e"
}

2021-03-17 22:29:34 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-aa04bc2b-9d28-4c75-ae69-c465fa25704e"
}

2021-03-17 22:29:34 | [Mutex] waiting for: [retracted:item:notifieditem-aa04bc2b-9d28-4c75-ae69-c465fa25704e:admin@test-domain.com]

2021-03-17 22:29:34 | [Mutex] received everything.

2021-03-17 22:29:34 | [Mutex] isItemNotified: retracted:item:notifieditem-aa04bc2b-9d28-4c75-ae69-c465fa25704e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2021-03-17 22:29:34 |

2021-03-17 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:34 | ------------------------------------

2021-03-17 22:29:34 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "item-id": "item-aa04bc2b-9d28-4c75-ae69-c465fa25704e"
}

2021-03-17 22:29:34 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "item-id": "item-aa04bc2b-9d28-4c75-ae69-c465fa25704e",
    "item": [
        "<item id=\"item-aa04bc2b-9d28-4c75-ae69-c465fa25704e\"><test>item-aa04bc2b-9d28-4c75-ae69-c465fa25704e</test></item>"
    ]
}

2021-03-17 22:29:34 | [Mutex] notify: [retrieved:item:item-aa04bc2b-9d28-4c75-ae69-c465fa25704e:payload-matches:true:localhost]

2021-03-17 22:29:34 | [Mutex] received everything.

2021-03-17 22:29:34 | [Mutex] isItemNotified: retrieved:item:item-aa04bc2b-9d28-4c75-ae69-c465fa25704e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.075s
2021-03-17 22:29:34 |

2021-03-17 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:34 | ------------------------------------

2021-03-17 22:29:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-17 22:29:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
        "test",
        "node-1a74e36d-e50d-4b21-87af-4317fd5379c1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-17 22:29:34 |

2021-03-17 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:34 | ------------------------------------

2021-03-17 22:29:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7195bb2a-4adf-4542-a021-9ac31c072a59)"
}

2021-03-17 22:29:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2021-03-17 22:29:33 |

2021-03-17 22:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:33 | ------------------------------------

2021-03-17 22:29:33 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-17 22:29:33 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.031s
2021-03-17 22:29:34 |

2021-03-17 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-17 22:29:34 | ------------------------------------

2021-03-17 22:29:34 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7195bb2a-4adf-4542-a021-9ac31c072a59",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-17 22:29:34 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}