Generated by TestNG with ReportNG at 21:41 PST on Wednesday 27 January 2021
root@87f6aca6b6f2 / 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.164s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.134s
2021-01-27 21:56:52 |

2021-01-27 21:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:52 | ------------------------------------

2021-01-27 21:56:52 | [Mutex] waiting for: [configured:node:node-287e728f-f756-4586-8181-d136fee42ea5:node-a143a182-3040-41cc-9866-e913e4cb4c3e]

2021-01-27 21:56:52 | [Mutex] received everything.

2021-01-27 21:56:52 | [Mutex] isItemNotified: configured:node:node-287e728f-f756-4586-8181-d136fee42ea5:node-a143a182-3040-41cc-9866-e913e4cb4c3e :: true

2021-01-27 21:56:53 | [Mutex] waiting for: [received:nodes:1648daf3-9ce1-4bfa-9b84-c3c799f04455:localhost]

2021-01-27 21:56:53 | [Mutex] received everything.

2021-01-27 21:56:53 | [Mutex] isItemNotified: received:node:1648daf3-9ce1-4bfa-9b84-c3c799f04455:localhost:node-287e728f-f756-4586-8181-d136fee42ea5:Node 287e728f-f756-4586-8181-d136fee42ea5 :: true

2021-01-27 21:56:53 | [Mutex] waiting for: [received:nodes:c9b93d4c-b9f2-47f3-b0dd-e3423c43554b:localhost]

2021-01-27 21:56:53 | [Mutex] received everything.

2021-01-27 21:56:53 | [Mutex] isItemNotified: received:node:c9b93d4c-b9f2-47f3-b0dd-e3423c43554b:localhost:node-287e728f-f756-4586-8181-d136fee42ea5:Node 287e728f-f756-4586-8181-d136fee42ea5 :: false

createNodes 1.664s
2021-01-27 21:56:49 |

2021-01-27 21:56:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:49 | ------------------------------------

2021-01-27 21:56:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "pubsub#title": "Node 287e728f-f756-4586-8181-d136fee42ea5"
}

2021-01-27 21:56:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:56:51 | [Mutex] waiting for: [received:nodes:2f25825d-e1f1-4259-ac62-77bfd4e68111:localhost]

2021-01-27 21:56:51 | [Mutex] waiting for: [received:nodes:2f25825d-e1f1-4259-ac62-77bfd4e68111:localhost]

2021-01-27 21:56:51 | [Mutex] waiting for: [received:nodes:2f25825d-e1f1-4259-ac62-77bfd4e68111:localhost]

2021-01-27 21:56:51 | [Mutex] received everything.

2021-01-27 21:56:51 | [Mutex] isItemNotified: received:node:2f25825d-e1f1-4259-ac62-77bfd4e68111:localhost:node-287e728f-f756-4586-8181-d136fee42ea5:Node 287e728f-f756-4586-8181-d136fee42ea5 :: true

createSubnodes 1.035s
2021-01-27 21:56:51 |

2021-01-27 21:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:51 | ------------------------------------

2021-01-27 21:56:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a143a182-3040-41cc-9866-e913e4cb4c3e",
    "pubsub#title": "Node a143a182-3040-41cc-9866-e913e4cb4c3e"
}

2021-01-27 21:56:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:56:52 | [Mutex] waiting for: [received:nodes:1f7e4b54-9e98-43ec-9952-99578e1d0b0d:localhost]

2021-01-27 21:56:52 | [Mutex] received everything.

2021-01-27 21:56:52 | [Mutex] isItemNotified: received:node:1f7e4b54-9e98-43ec-9952-99578e1d0b0d:localhost:node-a143a182-3040-41cc-9866-e913e4cb4c3e:Node a143a182-3040-41cc-9866-e913e4cb4c3e :: true

deleteNodes 1.023s
2021-01-27 21:56:57 |

2021-01-27 21:56:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:57 | ------------------------------------

2021-01-27 21:56:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a143a182-3040-41cc-9866-e913e4cb4c3e"
}

2021-01-27 21:56:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:56:58 | [Mutex] waiting for: [received:nodes:58dee691-7370-4e6e-ac7d-e75d4ac066ee:localhost]

2021-01-27 21:56:58 | [Mutex] received everything.

2021-01-27 21:56:58 | [Mutex] isItemNotified: received:node:58dee691-7370-4e6e-ac7d-e75d4ac066ee:localhost:node-a143a182-3040-41cc-9866-e913e4cb4c3e:Node a143a182-3040-41cc-9866-e913e4cb4c3e :: false

deleteSubnodes 1.031s
2021-01-27 21:56:56 |

2021-01-27 21:56:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:56 | ------------------------------------

2021-01-27 21:56:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5"
}

2021-01-27 21:56:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 21:56:57 | [Mutex] waiting for: [received:nodes:4e9a5123-f6ae-4357-91d2-c65d11bbf781:localhost]

2021-01-27 21:56:57 | [Mutex] received everything.

2021-01-27 21:56:57 | [Mutex] isItemNotified: received:node:4e9a5123-f6ae-4357-91d2-c65d11bbf781:localhost:node-287e728f-f756-4586-8181-d136fee42ea5:Node 287e728f-f756-4586-8181-d136fee42ea5 :: false

2021-01-27 21:56:57 | [Mutex] waiting for: [received:nodes:b7a0e1aa-d4cf-42e4-a9d2-baed7c220f56:localhost]

2021-01-27 21:56:57 | [Mutex] received everything.

2021-01-27 21:56:57 | [Mutex] isItemNotified: received:node:b7a0e1aa-d4cf-42e4-a9d2-baed7c220f56:localhost:node-287e728f-f756-4586-8181-d136fee42ea5:Node 287e728f-f756-4586-8181-d136fee42ea5 :: false

publishItemsToNodes 0.056s
2021-01-27 21:56:54 |

2021-01-27 21:56:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:54 | ------------------------------------

2021-01-27 21:56:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "entry": "<test>item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8</test>",
    "item-id": "item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8"
}

2021-01-27 21:56:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8"
}

2021-01-27 21:56:54 | [Mutex] waiting for: [published:item:notifieditem-6c2a461b-bf77-4c4e-8f97-3d63d96025c8:admin@test-domain.com]

2021-01-27 21:56:54 | [Mutex] received everything.

2021-01-27 21:56:54 | [Mutex] isItemNotified: published:item:notifieditem-6c2a461b-bf77-4c4e-8f97-3d63d96025c8:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-01-27 21:56:55 |

2021-01-27 21:56:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:55 | ------------------------------------

2021-01-27 21:56:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "item-id": "item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8"
}

2021-01-27 21:56:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8"
}

2021-01-27 21:56:55 | [Mutex] waiting for: [retracted:item:notifieditem-6c2a461b-bf77-4c4e-8f97-3d63d96025c8:admin@test-domain.com]

2021-01-27 21:56:55 | [Mutex] received everything.

2021-01-27 21:56:55 | [Mutex] isItemNotified: retracted:item:notifieditem-6c2a461b-bf77-4c4e-8f97-3d63d96025c8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-01-27 21:56:54 |

2021-01-27 21:56:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:54 | ------------------------------------

2021-01-27 21:56:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "item-id": "item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8"
}

2021-01-27 21:56:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "item-id": "item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8",
    "item": [
        "<item id=\"item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8\"><test>item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8</test></item>"
    ]
}

2021-01-27 21:56:54 | [Mutex] notify: [retrieved:item:item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8:payload-matches:true:localhost]

2021-01-27 21:56:54 | [Mutex] received everything.

2021-01-27 21:56:54 | [Mutex] isItemNotified: retrieved:item:item-6c2a461b-bf77-4c4e-8f97-3d63d96025c8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.062s
2021-01-27 21:56:54 |

2021-01-27 21:56:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:54 | ------------------------------------

2021-01-27 21:56:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-27 21:56:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-287e728f-f756-4586-8181-d136fee42ea5",
        "test",
        "node-a143a182-3040-41cc-9866-e913e4cb4c3e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-01-27 21:56:55 |

2021-01-27 21:56:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:55 | ------------------------------------

2021-01-27 21:56:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-287e728f-f756-4586-8181-d136fee42ea5)"
}

2021-01-27 21:56:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-01-27 21:56:53 |

2021-01-27 21:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:53 | ------------------------------------

2021-01-27 21:56:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 21:56:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-01-27 21:56:55 |

2021-01-27 21:56:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:56:55 | ------------------------------------

2021-01-27 21:56:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-287e728f-f756-4586-8181-d136fee42ea5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 21:56:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}