Generated by TestNG with ReportNG at 18:07 PDT on Tuesday 01 September 2020
root@45eef7750236 / 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.055s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2020-09-01 18:25:09 |

2020-09-01 18:25:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:09 | ------------------------------------

2020-09-01 18:25:09 | [Mutex] waiting for: [configured:node:node-8501ff67-14c4-492a-a04c-634625c737b8:node-be43231c-3262-4d4f-a978-2c30623e73b8]

2020-09-01 18:25:09 | [Mutex] received everything.

2020-09-01 18:25:09 | [Mutex] isItemNotified: configured:node:node-8501ff67-14c4-492a-a04c-634625c737b8:node-be43231c-3262-4d4f-a978-2c30623e73b8 :: true

2020-09-01 18:25:10 | [Mutex] waiting for: [received:nodes:1e55657d-297b-4405-ae1a-61262015ebcd:localhost]

2020-09-01 18:25:10 | [Mutex] received everything.

2020-09-01 18:25:10 | [Mutex] isItemNotified: received:node:1e55657d-297b-4405-ae1a-61262015ebcd:localhost:node-8501ff67-14c4-492a-a04c-634625c737b8:Node 8501ff67-14c4-492a-a04c-634625c737b8 :: true

2020-09-01 18:25:10 | [Mutex] waiting for: [received:nodes:eedd23bf-bc54-4aa4-816b-1fba34f246e6:localhost]

2020-09-01 18:25:10 | [Mutex] received everything.

2020-09-01 18:25:10 | [Mutex] isItemNotified: received:node:eedd23bf-bc54-4aa4-816b-1fba34f246e6:localhost:node-8501ff67-14c4-492a-a04c-634625c737b8:Node 8501ff67-14c4-492a-a04c-634625c737b8 :: false

createNodes 1.572s
2020-09-01 18:25:07 |

2020-09-01 18:25:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:07 | ------------------------------------

2020-09-01 18:25: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-8501ff67-14c4-492a-a04c-634625c737b8",
    "pubsub#title": "Node 8501ff67-14c4-492a-a04c-634625c737b8"
}

2020-09-01 18:25:07 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 18:25:08 | [Mutex] waiting for: [received:nodes:ee4e96ff-3aef-49f7-b716-c512644448af:localhost]

2020-09-01 18:25:08 | [Mutex] waiting for: [received:nodes:ee4e96ff-3aef-49f7-b716-c512644448af:localhost]

2020-09-01 18:25:08 | [Mutex] received everything.

2020-09-01 18:25:08 | [Mutex] isItemNotified: received:node:ee4e96ff-3aef-49f7-b716-c512644448af:localhost:node-8501ff67-14c4-492a-a04c-634625c737b8:Node 8501ff67-14c4-492a-a04c-634625c737b8 :: true

createSubnodes 1.023s
2020-09-01 18:25:08 |

2020-09-01 18:25:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:08 | ------------------------------------

2020-09-01 18:25: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-be43231c-3262-4d4f-a978-2c30623e73b8",
    "pubsub#title": "Node be43231c-3262-4d4f-a978-2c30623e73b8"
}

2020-09-01 18:25:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 18:25:09 | [Mutex] waiting for: [received:nodes:0004a28d-8999-4ad2-b7db-d4be524f65d6:localhost]

2020-09-01 18:25:09 | [Mutex] received everything.

2020-09-01 18:25:09 | [Mutex] isItemNotified: received:node:0004a28d-8999-4ad2-b7db-d4be524f65d6:localhost:node-be43231c-3262-4d4f-a978-2c30623e73b8:Node be43231c-3262-4d4f-a978-2c30623e73b8 :: true

deleteNodes 1.024s
2020-09-01 18:25:14 |

2020-09-01 18:25:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:14 | ------------------------------------

2020-09-01 18:25:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-be43231c-3262-4d4f-a978-2c30623e73b8"
}

2020-09-01 18:25:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 18:25:15 | [Mutex] waiting for: [received:nodes:3820d448-b63f-4073-9d4b-8f2908a5f02f:localhost]

2020-09-01 18:25:15 | [Mutex] received everything.

2020-09-01 18:25:15 | [Mutex] isItemNotified: received:node:3820d448-b63f-4073-9d4b-8f2908a5f02f:localhost:node-be43231c-3262-4d4f-a978-2c30623e73b8:Node be43231c-3262-4d4f-a978-2c30623e73b8 :: false

deleteSubnodes 1.025s
2020-09-01 18:25:13 |

2020-09-01 18:25:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:13 | ------------------------------------

2020-09-01 18:25:13 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8"
}

2020-09-01 18:25:13 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-01 18:25:14 | [Mutex] waiting for: [received:nodes:d7de097f-fbde-4a79-a69f-6b063e0016f8:localhost]

2020-09-01 18:25:14 | [Mutex] received everything.

2020-09-01 18:25:14 | [Mutex] isItemNotified: received:node:d7de097f-fbde-4a79-a69f-6b063e0016f8:localhost:node-8501ff67-14c4-492a-a04c-634625c737b8:Node 8501ff67-14c4-492a-a04c-634625c737b8 :: false

2020-09-01 18:25:14 | [Mutex] waiting for: [received:nodes:1e221ece-09d7-4116-988f-9fbb37c533b0:localhost]

2020-09-01 18:25:14 | [Mutex] received everything.

2020-09-01 18:25:14 | [Mutex] isItemNotified: received:node:1e221ece-09d7-4116-988f-9fbb37c533b0:localhost:node-8501ff67-14c4-492a-a04c-634625c737b8:Node 8501ff67-14c4-492a-a04c-634625c737b8 :: false

publishItemsToNodes 0.041s
2020-09-01 18:25:11 |

2020-09-01 18:25:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:11 | ------------------------------------

2020-09-01 18:25:11 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8",
    "entry": "<test>item-4458704a-e2ff-483b-b1fa-f1c339a6a77c</test>",
    "item-id": "item-4458704a-e2ff-483b-b1fa-f1c339a6a77c"
}

2020-09-01 18:25:11 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4458704a-e2ff-483b-b1fa-f1c339a6a77c"
}

2020-09-01 18:25:11 | [Mutex] waiting for: [published:item:notifieditem-4458704a-e2ff-483b-b1fa-f1c339a6a77c:admin@test-domain.com]

2020-09-01 18:25:11 | [Mutex] received everything.

2020-09-01 18:25:11 | [Mutex] isItemNotified: published:item:notifieditem-4458704a-e2ff-483b-b1fa-f1c339a6a77c:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2020-09-01 18:25:12 |

2020-09-01 18:25:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:12 | ------------------------------------

2020-09-01 18:25:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8",
    "item-id": "item-4458704a-e2ff-483b-b1fa-f1c339a6a77c"
}

2020-09-01 18:25:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4458704a-e2ff-483b-b1fa-f1c339a6a77c"
}

2020-09-01 18:25:12 | [Mutex] received everything.

2020-09-01 18:25:12 | [Mutex] isItemNotified: retracted:item:notifieditem-4458704a-e2ff-483b-b1fa-f1c339a6a77c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-09-01 18:25:11 |

2020-09-01 18:25:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:11 | ------------------------------------

2020-09-01 18:25:11 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8",
    "item-id": "item-4458704a-e2ff-483b-b1fa-f1c339a6a77c"
}

2020-09-01 18:25:11 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8",
    "item-id": "item-4458704a-e2ff-483b-b1fa-f1c339a6a77c",
    "item": [
        "<item id=\"item-4458704a-e2ff-483b-b1fa-f1c339a6a77c\"><test>item-4458704a-e2ff-483b-b1fa-f1c339a6a77c</test></item>"
    ]
}

2020-09-01 18:25:11 | [Mutex] notify: [retrieved:item:item-4458704a-e2ff-483b-b1fa-f1c339a6a77c:payload-matches:true:localhost]

2020-09-01 18:25:11 | [Mutex] received everything.

2020-09-01 18:25:11 | [Mutex] isItemNotified: retrieved:item:item-4458704a-e2ff-483b-b1fa-f1c339a6a77c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-01 18:25:11 |

2020-09-01 18:25:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:11 | ------------------------------------

2020-09-01 18:25:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-01 18:25:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8501ff67-14c4-492a-a04c-634625c737b8",
        "test",
        "node-be43231c-3262-4d4f-a978-2c30623e73b8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-09-01 18:25:11 |

2020-09-01 18:25:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:11 | ------------------------------------

2020-09-01 18:25:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8501ff67-14c4-492a-a04c-634625c737b8)"
}

2020-09-01 18:25:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-09-01 18:25:10 |

2020-09-01 18:25:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:10 | ------------------------------------

2020-09-01 18:25:10 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 18:25:10 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-09-01 18:25:12 |

2020-09-01 18:25:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-01 18:25:12 | ------------------------------------

2020-09-01 18:25:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8501ff67-14c4-492a-a04c-634625c737b8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-01 18:25:12 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}