Generated by TestNG with ReportNG at 22:21 PDT on Tuesday 14 June 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.787s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-06-14 22:35:53 |

2022-06-14 22:35:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:53 | ------------------------------------

2022-06-14 22:35:53 | [Mutex] waiting for: [configured:node:node-0ada01fc-31cc-42d5-9ff9-622e34531691:node-a9840a1b-92e0-4fb4-9484-28990638e8cd]

2022-06-14 22:35:53 | [Mutex] received everything.

2022-06-14 22:35:53 | [Mutex] isItemNotified: configured:node:node-0ada01fc-31cc-42d5-9ff9-622e34531691:node-a9840a1b-92e0-4fb4-9484-28990638e8cd :: true

2022-06-14 22:35:54 | [Mutex] waiting for: [received:nodes:8555ab22-acc0-4783-a2bc-e3aa57b3ba20:localhost]

2022-06-14 22:35:54 | [Mutex] received everything.

2022-06-14 22:35:54 | [Mutex] isItemNotified: received:node:8555ab22-acc0-4783-a2bc-e3aa57b3ba20:localhost:node-0ada01fc-31cc-42d5-9ff9-622e34531691:Node 0ada01fc-31cc-42d5-9ff9-622e34531691 :: true

2022-06-14 22:35:54 | [Mutex] waiting for: [received:nodes:2bc6e1e4-5694-44bc-8a98-d92f685b6edd:localhost]

2022-06-14 22:35:54 | [Mutex] received everything.

2022-06-14 22:35:54 | [Mutex] isItemNotified: received:node:2bc6e1e4-5694-44bc-8a98-d92f685b6edd:localhost:node-0ada01fc-31cc-42d5-9ff9-622e34531691:Node 0ada01fc-31cc-42d5-9ff9-622e34531691 :: false

createNodes 1.652s
2022-06-14 22:35:50 |

2022-06-14 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:50 | ------------------------------------

2022-06-14 22:35: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-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "pubsub#title": "Node 0ada01fc-31cc-42d5-9ff9-622e34531691"
}

2022-06-14 22:35:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 22:35:52 | [Mutex] waiting for: [received:nodes:649a311e-e46d-4d29-99b2-3c451eed77d0:localhost]

2022-06-14 22:35:52 | [Mutex] waiting for: [received:nodes:649a311e-e46d-4d29-99b2-3c451eed77d0:localhost]

2022-06-14 22:35:52 | [Mutex] received everything.

2022-06-14 22:35:52 | [Mutex] isItemNotified: received:node:649a311e-e46d-4d29-99b2-3c451eed77d0:localhost:node-0ada01fc-31cc-42d5-9ff9-622e34531691:Node 0ada01fc-31cc-42d5-9ff9-622e34531691 :: true

createSubnodes 1.041s
2022-06-14 22:35:52 |

2022-06-14 22:35:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:52 | ------------------------------------

2022-06-14 22:35:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a9840a1b-92e0-4fb4-9484-28990638e8cd",
    "pubsub#title": "Node a9840a1b-92e0-4fb4-9484-28990638e8cd"
}

2022-06-14 22:35:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 22:35:53 | [Mutex] waiting for: [received:nodes:52632a05-0ce2-43eb-bf7c-d6fac2c529d8:localhost]

2022-06-14 22:35:53 | [Mutex] waiting for: [received:nodes:52632a05-0ce2-43eb-bf7c-d6fac2c529d8:localhost]

2022-06-14 22:35:53 | [Mutex] received everything.

2022-06-14 22:35:53 | [Mutex] isItemNotified: received:node:52632a05-0ce2-43eb-bf7c-d6fac2c529d8:localhost:node-a9840a1b-92e0-4fb4-9484-28990638e8cd:Node a9840a1b-92e0-4fb4-9484-28990638e8cd :: true

deleteNodes 1.032s
2022-06-14 22:35:57 |

2022-06-14 22:35:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:57 | ------------------------------------

2022-06-14 22:35:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9840a1b-92e0-4fb4-9484-28990638e8cd"
}

2022-06-14 22:35:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 22:35:58 | [Mutex] waiting for: [received:nodes:ba652322-a8a3-41a3-b16a-325f6aac100d:localhost]

2022-06-14 22:35:58 | [Mutex] waiting for: [received:nodes:ba652322-a8a3-41a3-b16a-325f6aac100d:localhost]

2022-06-14 22:35:58 | [Mutex] received everything.

2022-06-14 22:35:58 | [Mutex] isItemNotified: received:node:ba652322-a8a3-41a3-b16a-325f6aac100d:localhost:node-a9840a1b-92e0-4fb4-9484-28990638e8cd:Node a9840a1b-92e0-4fb4-9484-28990638e8cd :: false

deleteSubnodes 1.036s
2022-06-14 22:35:56 |

2022-06-14 22:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:56 | ------------------------------------

2022-06-14 22:35:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691"
}

2022-06-14 22:35:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-14 22:35:57 | [Mutex] waiting for: [received:nodes:6759d5a9-7e06-4762-85d1-83919798c1b1:localhost]

2022-06-14 22:35:57 | [Mutex] received everything.

2022-06-14 22:35:57 | [Mutex] isItemNotified: received:node:6759d5a9-7e06-4762-85d1-83919798c1b1:localhost:node-0ada01fc-31cc-42d5-9ff9-622e34531691:Node 0ada01fc-31cc-42d5-9ff9-622e34531691 :: false

2022-06-14 22:35:57 | [Mutex] waiting for: [received:nodes:e714dcc0-d34f-4e57-8617-a5ae6e28b592:localhost]

2022-06-14 22:35:57 | [Mutex] received everything.

2022-06-14 22:35:57 | [Mutex] isItemNotified: received:node:e714dcc0-d34f-4e57-8617-a5ae6e28b592:localhost:node-0ada01fc-31cc-42d5-9ff9-622e34531691:Node 0ada01fc-31cc-42d5-9ff9-622e34531691 :: false

publishItemsToNodes 0.059s
2022-06-14 22:35:55 |

2022-06-14 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:55 | ------------------------------------

2022-06-14 22:35:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "entry": "<test>item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740</test>",
    "item-id": "item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740"
}

2022-06-14 22:35:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740"
}

2022-06-14 22:35:55 | [Mutex] waiting for: [published:item:notifieditem-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740:admin@test-domain.com]

2022-06-14 22:35:55 | [Mutex] received everything.

2022-06-14 22:35:55 | [Mutex] isItemNotified: published:item:notifieditem-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-14 22:35:55 |

2022-06-14 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:55 | ------------------------------------

2022-06-14 22:35:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "item-id": "item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740"
}

2022-06-14 22:35:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740"
}

2022-06-14 22:35:55 | [Mutex] received everything.

2022-06-14 22:35:55 | [Mutex] isItemNotified: retracted:item:notifieditem-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-06-14 22:35:55 |

2022-06-14 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:55 | ------------------------------------

2022-06-14 22:35:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "item-id": "item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740"
}

2022-06-14 22:35:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "item-id": "item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740",
    "item": [
        "<item id=\"item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740\"><test>item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740</test></item>"
    ]
}

2022-06-14 22:35:55 | [Mutex] notify: [retrieved:item:item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740:payload-matches:true:localhost]

2022-06-14 22:35:55 | [Mutex] received everything.

2022-06-14 22:35:55 | [Mutex] isItemNotified: retrieved:item:item-4aaafd62-da1f-4bf9-a0c3-bbe4244c5740:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-14 22:35:55 |

2022-06-14 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:55 | ------------------------------------

2022-06-14 22:35:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-14 22:35:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a9840a1b-92e0-4fb4-9484-28990638e8cd",
        "test",
        "node-0ada01fc-31cc-42d5-9ff9-622e34531691"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-14 22:35:55 |

2022-06-14 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:55 | ------------------------------------

2022-06-14 22:35:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0ada01fc-31cc-42d5-9ff9-622e34531691)"
}

2022-06-14 22:35:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-06-14 22:35:54 |

2022-06-14 22:35:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:54 | ------------------------------------

2022-06-14 22:35:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-14 22:35:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-06-14 22:35:55 |

2022-06-14 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-14 22:35:55 | ------------------------------------

2022-06-14 22:35:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0ada01fc-31cc-42d5-9ff9-622e34531691",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-14 22:35:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}