Generated by TestNG with ReportNG at 22:35 PDT on Monday 05 September 2022
root@ed1b7dd8a1b3 / 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.639s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2022-09-05 22:50:22 |

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

2022-09-05 22:50:22 | ------------------------------------

2022-09-05 22:50:22 | [Mutex] waiting for: [configured:node:node-a5dda62a-8a5c-49f8-adc5-e08129979add:node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b]

2022-09-05 22:50:23 | [Mutex] received everything.

2022-09-05 22:50:23 | [Mutex] isItemNotified: configured:node:node-a5dda62a-8a5c-49f8-adc5-e08129979add:node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b :: true

2022-09-05 22:50:24 | [Mutex] waiting for: [received:nodes:4415b6ff-a25f-45de-b851-d12feb104fd1:localhost]

2022-09-05 22:50:24 | [Mutex] received everything.

2022-09-05 22:50:24 | [Mutex] isItemNotified: received:node:4415b6ff-a25f-45de-b851-d12feb104fd1:localhost:node-a5dda62a-8a5c-49f8-adc5-e08129979add:Node a5dda62a-8a5c-49f8-adc5-e08129979add :: true

2022-09-05 22:50:24 | [Mutex] waiting for: [received:nodes:70737a75-70a1-4989-9a0e-021a42dadf25:localhost]

2022-09-05 22:50:24 | [Mutex] waiting for: [received:nodes:70737a75-70a1-4989-9a0e-021a42dadf25:localhost]

2022-09-05 22:50:24 | [Mutex] received everything.

2022-09-05 22:50:24 | [Mutex] isItemNotified: received:node:70737a75-70a1-4989-9a0e-021a42dadf25:localhost:node-a5dda62a-8a5c-49f8-adc5-e08129979add:Node a5dda62a-8a5c-49f8-adc5-e08129979add :: false

createNodes 1.583s
2022-09-05 22:50:20 |

2022-09-05 22:50:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:50:20 | ------------------------------------

2022-09-05 22:50:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "pubsub#title": "Node a5dda62a-8a5c-49f8-adc5-e08129979add"
}

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

2022-09-05 22:50:21 | [Mutex] waiting for: [received:nodes:805e1302-1cbd-455c-8551-6518198af668:localhost]

2022-09-05 22:50:21 | [Mutex] received everything.

2022-09-05 22:50:21 | [Mutex] isItemNotified: received:node:805e1302-1cbd-455c-8551-6518198af668:localhost:node-a5dda62a-8a5c-49f8-adc5-e08129979add:Node a5dda62a-8a5c-49f8-adc5-e08129979add :: true

createSubnodes 1.025s
2022-09-05 22:50:21 |

2022-09-05 22:50:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:50:21 | ------------------------------------

2022-09-05 22:50:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b",
    "pubsub#title": "Node ca3ea58f-af34-4ab7-8b10-0bcace65c32b"
}

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

2022-09-05 22:50:22 | [Mutex] waiting for: [received:nodes:b182a459-cd93-4dff-9523-5d428911e7b9:localhost]

2022-09-05 22:50:22 | [Mutex] waiting for: [received:nodes:b182a459-cd93-4dff-9523-5d428911e7b9:localhost]

2022-09-05 22:50:22 | [Mutex] received everything.

2022-09-05 22:50:22 | [Mutex] isItemNotified: received:node:b182a459-cd93-4dff-9523-5d428911e7b9:localhost:node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b:Node ca3ea58f-af34-4ab7-8b10-0bcace65c32b :: true

deleteNodes 1.020s
2022-09-05 22:50:27 |

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

2022-09-05 22:50:27 | ------------------------------------

2022-09-05 22:50:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b"
}

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

2022-09-05 22:50:28 | [Mutex] waiting for: [received:nodes:4cf27221-f9ea-41f3-a44f-288b42a93d10:localhost]

2022-09-05 22:50:28 | [Mutex] received everything.

2022-09-05 22:50:28 | [Mutex] isItemNotified: received:node:4cf27221-f9ea-41f3-a44f-288b42a93d10:localhost:node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b:Node ca3ea58f-af34-4ab7-8b10-0bcace65c32b :: false

deleteSubnodes 1.029s
2022-09-05 22:50:26 |

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

2022-09-05 22:50:26 | ------------------------------------

2022-09-05 22:50:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add"
}

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

2022-09-05 22:50:27 | [Mutex] waiting for: [received:nodes:703b772f-8566-44bb-befa-4cf427ac71a5:localhost]

2022-09-05 22:50:27 | [Mutex] received everything.

2022-09-05 22:50:27 | [Mutex] isItemNotified: received:node:703b772f-8566-44bb-befa-4cf427ac71a5:localhost:node-a5dda62a-8a5c-49f8-adc5-e08129979add:Node a5dda62a-8a5c-49f8-adc5-e08129979add :: false

2022-09-05 22:50:27 | [Mutex] waiting for: [received:nodes:88283c24-e906-4a4a-bc7b-404eb6b80f90:localhost]

2022-09-05 22:50:27 | [Mutex] received everything.

2022-09-05 22:50:27 | [Mutex] isItemNotified: received:node:88283c24-e906-4a4a-bc7b-404eb6b80f90:localhost:node-a5dda62a-8a5c-49f8-adc5-e08129979add:Node a5dda62a-8a5c-49f8-adc5-e08129979add :: false

publishItemsToNodes 0.052s
2022-09-05 22:50:25 |

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

2022-09-05 22:50:25 | ------------------------------------

2022-09-05 22:50:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "entry": "<test>item-27c32a55-2a05-4551-9d1b-bf349bac37cf</test>",
    "item-id": "item-27c32a55-2a05-4551-9d1b-bf349bac37cf"
}

2022-09-05 22:50:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27c32a55-2a05-4551-9d1b-bf349bac37cf"
}

2022-09-05 22:50:25 | [Mutex] waiting for: [published:item:notifieditem-27c32a55-2a05-4551-9d1b-bf349bac37cf:admin@test-domain.com]

2022-09-05 22:50:25 | [Mutex] received everything.

2022-09-05 22:50:25 | [Mutex] isItemNotified: published:item:notifieditem-27c32a55-2a05-4551-9d1b-bf349bac37cf:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-09-05 22:50:25 |

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

2022-09-05 22:50:25 | ------------------------------------

2022-09-05 22:50:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "item-id": "item-27c32a55-2a05-4551-9d1b-bf349bac37cf"
}

2022-09-05 22:50:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-27c32a55-2a05-4551-9d1b-bf349bac37cf"
}

2022-09-05 22:50:25 | [Mutex] received everything.

2022-09-05 22:50:25 | [Mutex] isItemNotified: retracted:item:notifieditem-27c32a55-2a05-4551-9d1b-bf349bac37cf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-09-05 22:50:25 |

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

2022-09-05 22:50:25 | ------------------------------------

2022-09-05 22:50:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "item-id": "item-27c32a55-2a05-4551-9d1b-bf349bac37cf"
}

2022-09-05 22:50:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "item-id": "item-27c32a55-2a05-4551-9d1b-bf349bac37cf",
    "item": [
        "<item id=\"item-27c32a55-2a05-4551-9d1b-bf349bac37cf\"><test>item-27c32a55-2a05-4551-9d1b-bf349bac37cf</test></item>"
    ]
}

2022-09-05 22:50:25 | [Mutex] notify: [retrieved:item:item-27c32a55-2a05-4551-9d1b-bf349bac37cf:payload-matches:true:localhost]

2022-09-05 22:50:25 | [Mutex] received everything.

2022-09-05 22:50:25 | [Mutex] isItemNotified: retrieved:item:item-27c32a55-2a05-4551-9d1b-bf349bac37cf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2022-09-05 22:50:25 |

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

2022-09-05 22:50:25 | ------------------------------------

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

2022-09-05 22:50:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
        "node-ca3ea58f-af34-4ab7-8b10-0bcace65c32b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-09-05 22:50:25 |

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

2022-09-05 22:50:25 | ------------------------------------

2022-09-05 22:50:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a5dda62a-8a5c-49f8-adc5-e08129979add)"
}

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

subscribeNodes 1.010s
2022-09-05 22:50:24 |

2022-09-05 22:50:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-05 22:50:24 | ------------------------------------

2022-09-05 22:50:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2022-09-05 22:50:25 |

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

2022-09-05 22:50:25 | ------------------------------------

2022-09-05 22:50:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a5dda62a-8a5c-49f8-adc5-e08129979add",
    "jids": [
        "admin@test-domain.com"
    ]
}

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