Generated by TestNG with ReportNG at 22:07 PST on Thursday 03 February 2022
root@785cf647a4ab / 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.143s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2022-02-03 22:23:02 |

2022-02-03 22:23:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:02 | ------------------------------------

2022-02-03 22:23:02 | [Mutex] waiting for: [configured:node:node-2d87d077-db9e-4973-aead-71eb7bf326bc:node-ece675c7-2ca2-467b-9f26-50a107545d74]

2022-02-03 22:23:02 | [Mutex] received everything.

2022-02-03 22:23:02 | [Mutex] isItemNotified: configured:node:node-2d87d077-db9e-4973-aead-71eb7bf326bc:node-ece675c7-2ca2-467b-9f26-50a107545d74 :: true

2022-02-03 22:23:03 | [Mutex] waiting for: [received:nodes:f98fd4cd-8e2c-4702-a934-cb3109321da0:localhost]

2022-02-03 22:23:03 | [Mutex] waiting for: [received:nodes:f98fd4cd-8e2c-4702-a934-cb3109321da0:localhost]

2022-02-03 22:23:03 | [Mutex] received everything.

2022-02-03 22:23:03 | [Mutex] isItemNotified: received:node:f98fd4cd-8e2c-4702-a934-cb3109321da0:localhost:node-2d87d077-db9e-4973-aead-71eb7bf326bc:Node 2d87d077-db9e-4973-aead-71eb7bf326bc :: true

2022-02-03 22:23:03 | [Mutex] waiting for: [received:nodes:c64cd3ec-ef6f-4f61-b721-f3f3ff2cca5a:localhost]

2022-02-03 22:23:03 | [Mutex] received everything.

2022-02-03 22:23:03 | [Mutex] isItemNotified: received:node:c64cd3ec-ef6f-4f61-b721-f3f3ff2cca5a:localhost:node-2d87d077-db9e-4973-aead-71eb7bf326bc:Node 2d87d077-db9e-4973-aead-71eb7bf326bc :: false

createNodes 1.663s
2022-02-03 22:22:59 |

2022-02-03 22:22:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:22:59 | ------------------------------------

2022-02-03 22:22:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "pubsub#title": "Node 2d87d077-db9e-4973-aead-71eb7bf326bc"
}

2022-02-03 22:22:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 22:23:01 | [Mutex] waiting for: [received:nodes:7a3c9475-b88a-4957-881e-ed39cdbe358d:localhost]

2022-02-03 22:23:01 | [Mutex] waiting for: [received:nodes:7a3c9475-b88a-4957-881e-ed39cdbe358d:localhost]

2022-02-03 22:23:01 | [Mutex] received everything.

2022-02-03 22:23:01 | [Mutex] isItemNotified: received:node:7a3c9475-b88a-4957-881e-ed39cdbe358d:localhost:node-2d87d077-db9e-4973-aead-71eb7bf326bc:Node 2d87d077-db9e-4973-aead-71eb7bf326bc :: true

createSubnodes 1.030s
2022-02-03 22:23:01 |

2022-02-03 22:23:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:01 | ------------------------------------

2022-02-03 22:23:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ece675c7-2ca2-467b-9f26-50a107545d74",
    "pubsub#title": "Node ece675c7-2ca2-467b-9f26-50a107545d74"
}

2022-02-03 22:23:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 22:23:02 | [Mutex] waiting for: [received:nodes:29f1d2c8-a75f-4f51-9006-78bc663fe104:localhost]

2022-02-03 22:23:02 | [Mutex] received everything.

2022-02-03 22:23:02 | [Mutex] isItemNotified: received:node:29f1d2c8-a75f-4f51-9006-78bc663fe104:localhost:node-ece675c7-2ca2-467b-9f26-50a107545d74:Node ece675c7-2ca2-467b-9f26-50a107545d74 :: true

deleteNodes 1.021s
2022-02-03 22:23:06 |

2022-02-03 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:06 | ------------------------------------

2022-02-03 22:23:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ece675c7-2ca2-467b-9f26-50a107545d74"
}

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

2022-02-03 22:23:07 | [Mutex] waiting for: [received:nodes:d3339de8-c459-4e91-80d7-a29b3d942924:localhost]

2022-02-03 22:23:07 | [Mutex] waiting for: [received:nodes:d3339de8-c459-4e91-80d7-a29b3d942924:localhost]

2022-02-03 22:23:07 | [Mutex] received everything.

2022-02-03 22:23:07 | [Mutex] isItemNotified: received:node:d3339de8-c459-4e91-80d7-a29b3d942924:localhost:node-ece675c7-2ca2-467b-9f26-50a107545d74:Node ece675c7-2ca2-467b-9f26-50a107545d74 :: false

deleteSubnodes 1.027s
2022-02-03 22:23:05 |

2022-02-03 22:23:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:05 | ------------------------------------

2022-02-03 22:23:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc"
}

2022-02-03 22:23:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 22:23:06 | [Mutex] waiting for: [received:nodes:1fd17ff9-65d9-452c-a672-2c50c212dd45:localhost]

2022-02-03 22:23:06 | [Mutex] received everything.

2022-02-03 22:23:06 | [Mutex] isItemNotified: received:node:1fd17ff9-65d9-452c-a672-2c50c212dd45:localhost:node-2d87d077-db9e-4973-aead-71eb7bf326bc:Node 2d87d077-db9e-4973-aead-71eb7bf326bc :: false

2022-02-03 22:23:06 | [Mutex] waiting for: [received:nodes:bd6994fd-05fa-4e0b-af4a-9a6c2fec19cc:localhost]

2022-02-03 22:23:06 | [Mutex] received everything.

2022-02-03 22:23:06 | [Mutex] isItemNotified: received:node:bd6994fd-05fa-4e0b-af4a-9a6c2fec19cc:localhost:node-2d87d077-db9e-4973-aead-71eb7bf326bc:Node 2d87d077-db9e-4973-aead-71eb7bf326bc :: false

publishItemsToNodes 0.054s
2022-02-03 22:23:04 |

2022-02-03 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:04 | ------------------------------------

2022-02-03 22:23:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "entry": "<test>item-7c860fa9-426a-4e2d-bf2d-0892df6ba940</test>",
    "item-id": "item-7c860fa9-426a-4e2d-bf2d-0892df6ba940"
}

2022-02-03 22:23:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7c860fa9-426a-4e2d-bf2d-0892df6ba940"
}

2022-02-03 22:23:04 | [Mutex] waiting for: [published:item:notifieditem-7c860fa9-426a-4e2d-bf2d-0892df6ba940:admin@test-domain.com]

2022-02-03 22:23:04 | [Mutex] received everything.

2022-02-03 22:23:04 | [Mutex] isItemNotified: published:item:notifieditem-7c860fa9-426a-4e2d-bf2d-0892df6ba940:admin@test-domain.com :: true

retractItemsFromNodes 0.074s
2022-02-03 22:23:04 |

2022-02-03 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:04 | ------------------------------------

2022-02-03 22:23:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "item-id": "item-7c860fa9-426a-4e2d-bf2d-0892df6ba940"
}

2022-02-03 22:23:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7c860fa9-426a-4e2d-bf2d-0892df6ba940"
}

2022-02-03 22:23:04 | [Mutex] received everything.

2022-02-03 22:23:04 | [Mutex] isItemNotified: retracted:item:notifieditem-7c860fa9-426a-4e2d-bf2d-0892df6ba940:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2022-02-03 22:23:04 |

2022-02-03 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:04 | ------------------------------------

2022-02-03 22:23:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "item-id": "item-7c860fa9-426a-4e2d-bf2d-0892df6ba940"
}

2022-02-03 22:23:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "item-id": "item-7c860fa9-426a-4e2d-bf2d-0892df6ba940",
    "item": [
        "<item id=\"item-7c860fa9-426a-4e2d-bf2d-0892df6ba940\"><test>item-7c860fa9-426a-4e2d-bf2d-0892df6ba940</test></item>"
    ]
}

2022-02-03 22:23:04 | [Mutex] notify: [retrieved:item:item-7c860fa9-426a-4e2d-bf2d-0892df6ba940:payload-matches:true:localhost]

2022-02-03 22:23:04 | [Mutex] received everything.

2022-02-03 22:23:04 | [Mutex] isItemNotified: retrieved:item:item-7c860fa9-426a-4e2d-bf2d-0892df6ba940:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-03 22:23:04 |

2022-02-03 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:04 | ------------------------------------

2022-02-03 22:23:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-03 22:23:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
        "node-ece675c7-2ca2-467b-9f26-50a107545d74"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-02-03 22:23:04 |

2022-02-03 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:04 | ------------------------------------

2022-02-03 22:23:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2d87d077-db9e-4973-aead-71eb7bf326bc)"
}

2022-02-03 22:23:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-02-03 22:23:03 |

2022-02-03 22:23:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:03 | ------------------------------------

2022-02-03 22:23:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 22:23:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.168s
2022-02-03 22:23:04 |

2022-02-03 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 22:23:04 | ------------------------------------

2022-02-03 22:23:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2d87d077-db9e-4973-aead-71eb7bf326bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 22:23:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}