Generated by TestNG with ReportNG at 21:42 PST on Wednesday 19 January 2022
root@b2c2a8eba6e6 / 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.049s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2022-01-19 21:58:44 |

2022-01-19 21:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:44 | ------------------------------------

2022-01-19 21:58:44 | [Mutex] waiting for: [configured:node:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:node-31701a78-a2e8-4f0a-8487-60777fdda9a4]

2022-01-19 21:58:44 | [Mutex] received everything.

2022-01-19 21:58:44 | [Mutex] isItemNotified: configured:node:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:node-31701a78-a2e8-4f0a-8487-60777fdda9a4 :: true

2022-01-19 21:58:45 | [Mutex] waiting for: [received:nodes:da9522da-1e90-42ac-b671-27eedf4dc3d4:localhost]

2022-01-19 21:58:45 | [Mutex] received everything.

2022-01-19 21:58:45 | [Mutex] isItemNotified: received:node:da9522da-1e90-42ac-b671-27eedf4dc3d4:localhost:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:Node 2a6acf50-8253-48d9-9a40-e9fe248408b1 :: true

2022-01-19 21:58:45 | [Mutex] waiting for: [received:nodes:3e77a03b-1785-4167-94b1-daddc4a977ba:localhost]

2022-01-19 21:58:45 | [Mutex] received everything.

2022-01-19 21:58:45 | [Mutex] isItemNotified: received:node:3e77a03b-1785-4167-94b1-daddc4a977ba:localhost:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:Node 2a6acf50-8253-48d9-9a40-e9fe248408b1 :: false

createNodes 1.686s
2022-01-19 21:58:41 |

2022-01-19 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:41 | ------------------------------------

2022-01-19 21:58:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "pubsub#title": "Node 2a6acf50-8253-48d9-9a40-e9fe248408b1"
}

2022-01-19 21:58:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:58:42 | [Mutex] waiting for: [received:nodes:b84dd722-b301-4f26-9612-70489755ed51:localhost]

2022-01-19 21:58:42 | [Mutex] received everything.

2022-01-19 21:58:42 | [Mutex] isItemNotified: received:node:b84dd722-b301-4f26-9612-70489755ed51:localhost:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:Node 2a6acf50-8253-48d9-9a40-e9fe248408b1 :: true

createSubnodes 1.037s
2022-01-19 21:58:42 |

2022-01-19 21:58:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:42 | ------------------------------------

2022-01-19 21:58:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-31701a78-a2e8-4f0a-8487-60777fdda9a4",
    "pubsub#title": "Node 31701a78-a2e8-4f0a-8487-60777fdda9a4"
}

2022-01-19 21:58:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:58:43 | [Mutex] waiting for: [received:nodes:ae880bff-bd88-4745-be14-8e9e70710327:localhost]

2022-01-19 21:58:44 | [Mutex] waiting for: [received:nodes:ae880bff-bd88-4745-be14-8e9e70710327:localhost]

2022-01-19 21:58:44 | [Mutex] waiting for: [received:nodes:ae880bff-bd88-4745-be14-8e9e70710327:localhost]

2022-01-19 21:58:44 | [Mutex] waiting for: [received:nodes:ae880bff-bd88-4745-be14-8e9e70710327:localhost]

2022-01-19 21:58:44 | [Mutex] waiting for: [received:nodes:ae880bff-bd88-4745-be14-8e9e70710327:localhost]

2022-01-19 21:58:44 | [Mutex] received everything.

2022-01-19 21:58:44 | [Mutex] isItemNotified: received:node:ae880bff-bd88-4745-be14-8e9e70710327:localhost:node-31701a78-a2e8-4f0a-8487-60777fdda9a4:Node 31701a78-a2e8-4f0a-8487-60777fdda9a4 :: true

deleteNodes 1.029s
2022-01-19 21:58:48 |

2022-01-19 21:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:48 | ------------------------------------

2022-01-19 21:58:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-31701a78-a2e8-4f0a-8487-60777fdda9a4"
}

2022-01-19 21:58:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:58:49 | [Mutex] waiting for: [received:nodes:d36d41dc-229e-404b-b503-d4ade8dfbc2f:localhost]

2022-01-19 21:58:49 | [Mutex] waiting for: [received:nodes:d36d41dc-229e-404b-b503-d4ade8dfbc2f:localhost]

2022-01-19 21:58:49 | [Mutex] received everything.

2022-01-19 21:58:49 | [Mutex] isItemNotified: received:node:d36d41dc-229e-404b-b503-d4ade8dfbc2f:localhost:node-31701a78-a2e8-4f0a-8487-60777fdda9a4:Node 31701a78-a2e8-4f0a-8487-60777fdda9a4 :: false

deleteSubnodes 1.030s
2022-01-19 21:58:47 |

2022-01-19 21:58:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:47 | ------------------------------------

2022-01-19 21:58:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1"
}

2022-01-19 21:58:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-01-19 21:58:48 | [Mutex] waiting for: [received:nodes:56f67e25-d29e-4051-8204-1359e47d0200:localhost]

2022-01-19 21:58:48 | [Mutex] received everything.

2022-01-19 21:58:48 | [Mutex] isItemNotified: received:node:56f67e25-d29e-4051-8204-1359e47d0200:localhost:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:Node 2a6acf50-8253-48d9-9a40-e9fe248408b1 :: false

2022-01-19 21:58:48 | [Mutex] waiting for: [received:nodes:0a2455b5-ba76-4a7b-a9b2-dbf47a653cac:localhost]

2022-01-19 21:58:48 | [Mutex] received everything.

2022-01-19 21:58:48 | [Mutex] isItemNotified: received:node:0a2455b5-ba76-4a7b-a9b2-dbf47a653cac:localhost:node-2a6acf50-8253-48d9-9a40-e9fe248408b1:Node 2a6acf50-8253-48d9-9a40-e9fe248408b1 :: false

publishItemsToNodes 0.056s
2022-01-19 21:58:46 |

2022-01-19 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:46 | ------------------------------------

2022-01-19 21:58:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "entry": "<test>item-89df05b8-d111-4984-a955-feacb43cc2c5</test>",
    "item-id": "item-89df05b8-d111-4984-a955-feacb43cc2c5"
}

2022-01-19 21:58:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89df05b8-d111-4984-a955-feacb43cc2c5"
}

2022-01-19 21:58:46 | [Mutex] waiting for: [published:item:notifieditem-89df05b8-d111-4984-a955-feacb43cc2c5:admin@test-domain.com]

2022-01-19 21:58:46 | [Mutex] received everything.

2022-01-19 21:58:46 | [Mutex] isItemNotified: published:item:notifieditem-89df05b8-d111-4984-a955-feacb43cc2c5:admin@test-domain.com :: true

retractItemsFromNodes 0.061s
2022-01-19 21:58:46 |

2022-01-19 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:46 | ------------------------------------

2022-01-19 21:58:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "item-id": "item-89df05b8-d111-4984-a955-feacb43cc2c5"
}

2022-01-19 21:58:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-89df05b8-d111-4984-a955-feacb43cc2c5"
}

2022-01-19 21:58:46 | [Mutex] received everything.

2022-01-19 21:58:46 | [Mutex] isItemNotified: retracted:item:notifieditem-89df05b8-d111-4984-a955-feacb43cc2c5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.018s
2022-01-19 21:58:46 |

2022-01-19 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:46 | ------------------------------------

2022-01-19 21:58:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "item-id": "item-89df05b8-d111-4984-a955-feacb43cc2c5"
}

2022-01-19 21:58:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "item-id": "item-89df05b8-d111-4984-a955-feacb43cc2c5",
    "item": [
        "<item id=\"item-89df05b8-d111-4984-a955-feacb43cc2c5\"><test>item-89df05b8-d111-4984-a955-feacb43cc2c5</test></item>"
    ]
}

2022-01-19 21:58:46 | [Mutex] notify: [retrieved:item:item-89df05b8-d111-4984-a955-feacb43cc2c5:payload-matches:true:localhost]

2022-01-19 21:58:46 | [Mutex] received everything.

2022-01-19 21:58:46 | [Mutex] isItemNotified: retrieved:item:item-89df05b8-d111-4984-a955-feacb43cc2c5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2022-01-19 21:58:46 |

2022-01-19 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:46 | ------------------------------------

2022-01-19 21:58:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-01-19 21:58:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-31701a78-a2e8-4f0a-8487-60777fdda9a4",
        "node-2a6acf50-8253-48d9-9a40-e9fe248408b1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.107s
2022-01-19 21:58:46 |

2022-01-19 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:46 | ------------------------------------

2022-01-19 21:58:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2a6acf50-8253-48d9-9a40-e9fe248408b1)"
}

2022-01-19 21:58:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2022-01-19 21:58:45 |

2022-01-19 21:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:45 | ------------------------------------

2022-01-19 21:58:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-19 21:58:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2022-01-19 21:58:46 |

2022-01-19 21:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-01-19 21:58:46 | ------------------------------------

2022-01-19 21:58:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2a6acf50-8253-48d9-9a40-e9fe248408b1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-01-19 21:58:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}