Generated by TestNG with ReportNG at 22:49 PDT on Wednesday 05 July 2023
root@cc7d7fbb25f7 / Java 17.0.6 (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.676s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.124s
2023-07-05 23:04:09 |

2023-07-05 23:04:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:09 | ------------------------------------

2023-07-05 23:04:09 | [Mutex] waiting for: [configured:node:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96]

2023-07-05 23:04:10 | [Mutex] received everything.

2023-07-05 23:04:10 | [Mutex] isItemNotified: configured:node:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96 :: true

2023-07-05 23:04:11 | [Mutex] waiting for: [received:nodes:df686111-5096-40c3-b70c-4e5417226f93:localhost]

2023-07-05 23:04:11 | [Mutex] received everything.

2023-07-05 23:04:11 | [Mutex] isItemNotified: received:node:df686111-5096-40c3-b70c-4e5417226f93:localhost:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:Node b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac :: true

2023-07-05 23:04:11 | [Mutex] waiting for: [received:nodes:9aff3ff2-f6ae-40b1-9171-82ddc9277c37:localhost]

2023-07-05 23:04:11 | [Mutex] received everything.

2023-07-05 23:04:11 | [Mutex] isItemNotified: received:node:9aff3ff2-f6ae-40b1-9171-82ddc9277c37:localhost:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:Node b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac :: false

createNodes 1.593s
2023-07-05 23:04:07 |

2023-07-05 23:04:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:07 | ------------------------------------

2023-07-05 23:04:07 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "pubsub#title": "Node b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac"
}

2023-07-05 23:04:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:08 | [Mutex] waiting for: [received:nodes:3ec8f2ce-20d3-4384-86db-db150494cc62:localhost]

2023-07-05 23:04:08 | [Mutex] waiting for: [received:nodes:3ec8f2ce-20d3-4384-86db-db150494cc62:localhost]

2023-07-05 23:04:08 | [Mutex] waiting for: [received:nodes:3ec8f2ce-20d3-4384-86db-db150494cc62:localhost]

2023-07-05 23:04:08 | [Mutex] received everything.

2023-07-05 23:04:08 | [Mutex] isItemNotified: received:node:3ec8f2ce-20d3-4384-86db-db150494cc62:localhost:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:Node b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac :: true

createSubnodes 1.031s
2023-07-05 23:04:08 |

2023-07-05 23:04:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:08 | ------------------------------------

2023-07-05 23:04:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96",
    "pubsub#title": "Node f7f7b31a-92b6-41f1-ac3c-4462b15e4e96"
}

2023-07-05 23:04:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:09 | [Mutex] waiting for: [received:nodes:753767e8-d2be-4f75-9ad6-6c9378aabb1c:localhost]

2023-07-05 23:04:09 | [Mutex] received everything.

2023-07-05 23:04:09 | [Mutex] isItemNotified: received:node:753767e8-d2be-4f75-9ad6-6c9378aabb1c:localhost:node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96:Node f7f7b31a-92b6-41f1-ac3c-4462b15e4e96 :: true

deleteNodes 1.020s
2023-07-05 23:04:14 |

2023-07-05 23:04:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:14 | ------------------------------------

2023-07-05 23:04:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96"
}

2023-07-05 23:04:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:15 | [Mutex] waiting for: [received:nodes:03e1e123-2514-4691-8556-bc911c9b54aa:localhost]

2023-07-05 23:04:15 | [Mutex] received everything.

2023-07-05 23:04:15 | [Mutex] isItemNotified: received:node:03e1e123-2514-4691-8556-bc911c9b54aa:localhost:node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96:Node f7f7b31a-92b6-41f1-ac3c-4462b15e4e96 :: false

deleteSubnodes 1.037s
2023-07-05 23:04:13 |

2023-07-05 23:04:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:13 | ------------------------------------

2023-07-05 23:04:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac"
}

2023-07-05 23:04:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-05 23:04:14 | [Mutex] waiting for: [received:nodes:279d52e8-8236-401e-8542-143f03161076:localhost]

2023-07-05 23:04:14 | [Mutex] received everything.

2023-07-05 23:04:14 | [Mutex] isItemNotified: received:node:279d52e8-8236-401e-8542-143f03161076:localhost:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:Node b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac :: false

2023-07-05 23:04:14 | [Mutex] waiting for: [received:nodes:5824543e-5cb6-47d2-944a-256639362be3:localhost]

2023-07-05 23:04:14 | [Mutex] received everything.

2023-07-05 23:04:14 | [Mutex] isItemNotified: received:node:5824543e-5cb6-47d2-944a-256639362be3:localhost:node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac:Node b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac :: false

publishItemsToNodes 0.054s
2023-07-05 23:04:12 |

2023-07-05 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:12 | ------------------------------------

2023-07-05 23:04:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "entry": "<test>item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46</test>",
    "item-id": "item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46"
}

2023-07-05 23:04:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46"
}

2023-07-05 23:04:12 | [Mutex] received everything.

2023-07-05 23:04:12 | [Mutex] isItemNotified: published:item:notifieditem-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-07-05 23:04:12 |

2023-07-05 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:12 | ------------------------------------

2023-07-05 23:04:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "item-id": "item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46"
}

2023-07-05 23:04:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46"
}

2023-07-05 23:04:12 | [Mutex] received everything.

2023-07-05 23:04:12 | [Mutex] isItemNotified: retracted:item:notifieditem-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2023-07-05 23:04:12 |

2023-07-05 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:12 | ------------------------------------

2023-07-05 23:04:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "item-id": "item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46"
}

2023-07-05 23:04:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "item-id": "item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46",
    "item": [
        "<item id=\"item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46\"><test>item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46</test></item>"
    ]
}

2023-07-05 23:04:12 | [Mutex] notify: [retrieved:item:item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46:payload-matches:true:localhost]

2023-07-05 23:04:12 | [Mutex] received everything.

2023-07-05 23:04:12 | [Mutex] isItemNotified: retrieved:item:item-ca73f0a2-1cdd-430c-b714-eb5bedaf7a46:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-07-05 23:04:12 |

2023-07-05 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:12 | ------------------------------------

2023-07-05 23:04:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-05 23:04:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-f7f7b31a-92b6-41f1-ac3c-4462b15e4e96",
        "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-07-05 23:04:12 |

2023-07-05 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:12 | ------------------------------------

2023-07-05 23:04:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac)"
}

2023-07-05 23:04:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-07-05 23:04:11 |

2023-07-05 23:04:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:11 | ------------------------------------

2023-07-05 23:04:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 23:04:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2023-07-05 23:04:12 |

2023-07-05 23:04:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-05 23:04:12 | ------------------------------------

2023-07-05 23:04:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b92aefc5-fcfb-4f7f-876a-2c0e2ea627ac",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-05 23:04:12 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}