Generated by TestNG with ReportNG at 22:27 PDT on Wednesday 06 October 2021
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 : 8.987s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2021-10-06 22:42:42 |

2021-10-06 22:42:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:42 | ------------------------------------

2021-10-06 22:42:42 | [Mutex] waiting for: [configured:node:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:node-906b87cb-5f66-4cdd-9448-a017436b4b81]

2021-10-06 22:42:42 | [Mutex] received everything.

2021-10-06 22:42:42 | [Mutex] isItemNotified: configured:node:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:node-906b87cb-5f66-4cdd-9448-a017436b4b81 :: true

2021-10-06 22:42:43 | [Mutex] waiting for: [received:nodes:d3fb760d-d2d0-4f5a-b0e5-98c414a18947:localhost]

2021-10-06 22:42:43 | [Mutex] received everything.

2021-10-06 22:42:43 | [Mutex] isItemNotified: received:node:d3fb760d-d2d0-4f5a-b0e5-98c414a18947:localhost:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:Node 1d22dc42-0c33-41b6-a3b3-52a76fe69930 :: true

2021-10-06 22:42:43 | [Mutex] waiting for: [received:nodes:131908e7-c1ae-434a-a8d1-96523a786561:localhost]

2021-10-06 22:42:43 | [Mutex] received everything.

2021-10-06 22:42:43 | [Mutex] isItemNotified: received:node:131908e7-c1ae-434a-a8d1-96523a786561:localhost:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:Node 1d22dc42-0c33-41b6-a3b3-52a76fe69930 :: false

createNodes 1.618s
2021-10-06 22:42:39 |

2021-10-06 22:42:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:39 | ------------------------------------

2021-10-06 22:42:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "pubsub#title": "Node 1d22dc42-0c33-41b6-a3b3-52a76fe69930"
}

2021-10-06 22:42:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:42:41 | [Mutex] waiting for: [received:nodes:328bb49f-08b4-487a-881c-f518b0123383:localhost]

2021-10-06 22:42:41 | [Mutex] waiting for: [received:nodes:328bb49f-08b4-487a-881c-f518b0123383:localhost]

2021-10-06 22:42:41 | [Mutex] received everything.

2021-10-06 22:42:41 | [Mutex] isItemNotified: received:node:328bb49f-08b4-487a-881c-f518b0123383:localhost:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:Node 1d22dc42-0c33-41b6-a3b3-52a76fe69930 :: true

createSubnodes 1.032s
2021-10-06 22:42:41 |

2021-10-06 22:42:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:41 | ------------------------------------

2021-10-06 22:42:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-906b87cb-5f66-4cdd-9448-a017436b4b81",
    "pubsub#title": "Node 906b87cb-5f66-4cdd-9448-a017436b4b81"
}

2021-10-06 22:42:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:42:42 | [Mutex] waiting for: [received:nodes:c3f8b577-f705-4799-8c76-c360598fc4cc:localhost]

2021-10-06 22:42:42 | [Mutex] received everything.

2021-10-06 22:42:42 | [Mutex] isItemNotified: received:node:c3f8b577-f705-4799-8c76-c360598fc4cc:localhost:node-906b87cb-5f66-4cdd-9448-a017436b4b81:Node 906b87cb-5f66-4cdd-9448-a017436b4b81 :: true

deleteNodes 1.026s
2021-10-06 22:42:46 |

2021-10-06 22:42:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:46 | ------------------------------------

2021-10-06 22:42:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-906b87cb-5f66-4cdd-9448-a017436b4b81"
}

2021-10-06 22:42:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:42:48 | [Mutex] waiting for: [received:nodes:bb987bd3-a192-4dd5-a2ac-2324bf1c8398:localhost]

2021-10-06 22:42:48 | [Mutex] received everything.

2021-10-06 22:42:48 | [Mutex] isItemNotified: received:node:bb987bd3-a192-4dd5-a2ac-2324bf1c8398:localhost:node-906b87cb-5f66-4cdd-9448-a017436b4b81:Node 906b87cb-5f66-4cdd-9448-a017436b4b81 :: false

deleteSubnodes 1.032s
2021-10-06 22:42:45 |

2021-10-06 22:42:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:45 | ------------------------------------

2021-10-06 22:42:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930"
}

2021-10-06 22:42:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-06 22:42:46 | [Mutex] waiting for: [received:nodes:ec467dc3-506e-407c-ae68-856e23ed052f:localhost]

2021-10-06 22:42:46 | [Mutex] waiting for: [received:nodes:ec467dc3-506e-407c-ae68-856e23ed052f:localhost]

2021-10-06 22:42:46 | [Mutex] received everything.

2021-10-06 22:42:46 | [Mutex] isItemNotified: received:node:ec467dc3-506e-407c-ae68-856e23ed052f:localhost:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:Node 1d22dc42-0c33-41b6-a3b3-52a76fe69930 :: false

2021-10-06 22:42:46 | [Mutex] waiting for: [received:nodes:5a302473-143c-4390-8332-b9a4fc8ec20d:localhost]

2021-10-06 22:42:46 | [Mutex] received everything.

2021-10-06 22:42:46 | [Mutex] isItemNotified: received:node:5a302473-143c-4390-8332-b9a4fc8ec20d:localhost:node-1d22dc42-0c33-41b6-a3b3-52a76fe69930:Node 1d22dc42-0c33-41b6-a3b3-52a76fe69930 :: false

publishItemsToNodes 0.061s
2021-10-06 22:42:44 |

2021-10-06 22:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:44 | ------------------------------------

2021-10-06 22:42:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "entry": "<test>item-146559a0-4012-4b5b-80ca-353b3b876e52</test>",
    "item-id": "item-146559a0-4012-4b5b-80ca-353b3b876e52"
}

2021-10-06 22:42:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-146559a0-4012-4b5b-80ca-353b3b876e52"
}

2021-10-06 22:42:44 | [Mutex] waiting for: [published:item:notifieditem-146559a0-4012-4b5b-80ca-353b3b876e52:admin@test-domain.com]

2021-10-06 22:42:44 | [Mutex] received everything.

2021-10-06 22:42:44 | [Mutex] isItemNotified: published:item:notifieditem-146559a0-4012-4b5b-80ca-353b3b876e52:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2021-10-06 22:42:44 |

2021-10-06 22:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:44 | ------------------------------------

2021-10-06 22:42:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "item-id": "item-146559a0-4012-4b5b-80ca-353b3b876e52"
}

2021-10-06 22:42:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-146559a0-4012-4b5b-80ca-353b3b876e52"
}

2021-10-06 22:42:44 | [Mutex] waiting for: [retracted:item:notifieditem-146559a0-4012-4b5b-80ca-353b3b876e52:admin@test-domain.com]

2021-10-06 22:42:44 | [Mutex] received everything.

2021-10-06 22:42:44 | [Mutex] isItemNotified: retracted:item:notifieditem-146559a0-4012-4b5b-80ca-353b3b876e52:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2021-10-06 22:42:44 |

2021-10-06 22:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:44 | ------------------------------------

2021-10-06 22:42:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "item-id": "item-146559a0-4012-4b5b-80ca-353b3b876e52"
}

2021-10-06 22:42:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "item-id": "item-146559a0-4012-4b5b-80ca-353b3b876e52",
    "item": [
        "<item id=\"item-146559a0-4012-4b5b-80ca-353b3b876e52\"><test>item-146559a0-4012-4b5b-80ca-353b3b876e52</test></item>"
    ]
}

2021-10-06 22:42:44 | [Mutex] notify: [retrieved:item:item-146559a0-4012-4b5b-80ca-353b3b876e52:payload-matches:true:localhost]

2021-10-06 22:42:44 | [Mutex] received everything.

2021-10-06 22:42:44 | [Mutex] isItemNotified: retrieved:item:item-146559a0-4012-4b5b-80ca-353b3b876e52:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-06 22:42:44 |

2021-10-06 22:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:44 | ------------------------------------

2021-10-06 22:42:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-06 22:42:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
        "node-906b87cb-5f66-4cdd-9448-a017436b4b81"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-06 22:42:44 |

2021-10-06 22:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:44 | ------------------------------------

2021-10-06 22:42:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1d22dc42-0c33-41b6-a3b3-52a76fe69930)"
}

2021-10-06 22:42:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-10-06 22:42:43 |

2021-10-06 22:42:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:43 | ------------------------------------

2021-10-06 22:42:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-06 22:42:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2021-10-06 22:42:44 |

2021-10-06 22:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-06 22:42:44 | ------------------------------------

2021-10-06 22:42:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1d22dc42-0c33-41b6-a3b3-52a76fe69930",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-06 22:42:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}