Generated by TestNG with ReportNG at 22:46 PDT on Sunday 17 July 2022
root@f9c07ffec79b / Java 17.0.2 (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.722s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-07-17 23:01:34 |

2022-07-17 23:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:34 | ------------------------------------

2022-07-17 23:01:34 | [Mutex] waiting for: [configured:node:node-447e672b-76d4-422d-95c2-792bbf93c0c8:node-8d5d3c5d-cb86-499f-8822-ce420ac34c81]

2022-07-17 23:01:34 | [Mutex] received everything.

2022-07-17 23:01:34 | [Mutex] isItemNotified: configured:node:node-447e672b-76d4-422d-95c2-792bbf93c0c8:node-8d5d3c5d-cb86-499f-8822-ce420ac34c81 :: true

2022-07-17 23:01:35 | [Mutex] waiting for: [received:nodes:478d342e-9f5f-402e-bd1d-b29c69524337:localhost]

2022-07-17 23:01:35 | [Mutex] received everything.

2022-07-17 23:01:35 | [Mutex] isItemNotified: received:node:478d342e-9f5f-402e-bd1d-b29c69524337:localhost:node-447e672b-76d4-422d-95c2-792bbf93c0c8:Node 447e672b-76d4-422d-95c2-792bbf93c0c8 :: true

2022-07-17 23:01:35 | [Mutex] waiting for: [received:nodes:3d0d91c2-190e-4d67-a653-0e3d335e9111:localhost]

2022-07-17 23:01:35 | [Mutex] waiting for: [received:nodes:3d0d91c2-190e-4d67-a653-0e3d335e9111:localhost]

2022-07-17 23:01:35 | [Mutex] received everything.

2022-07-17 23:01:35 | [Mutex] isItemNotified: received:node:3d0d91c2-190e-4d67-a653-0e3d335e9111:localhost:node-447e672b-76d4-422d-95c2-792bbf93c0c8:Node 447e672b-76d4-422d-95c2-792bbf93c0c8 :: false

createNodes 1.587s
2022-07-17 23:01:31 |

2022-07-17 23:01:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:31 | ------------------------------------

2022-07-17 23:01:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "pubsub#title": "Node 447e672b-76d4-422d-95c2-792bbf93c0c8"
}

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

2022-07-17 23:01:33 | [Mutex] waiting for: [received:nodes:e8c570b8-7b1b-454b-b266-00fcc542fde7:localhost]

2022-07-17 23:01:33 | [Mutex] received everything.

2022-07-17 23:01:33 | [Mutex] isItemNotified: received:node:e8c570b8-7b1b-454b-b266-00fcc542fde7:localhost:node-447e672b-76d4-422d-95c2-792bbf93c0c8:Node 447e672b-76d4-422d-95c2-792bbf93c0c8 :: true

createSubnodes 1.022s
2022-07-17 23:01:33 |

2022-07-17 23:01:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:33 | ------------------------------------

2022-07-17 23:01:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8d5d3c5d-cb86-499f-8822-ce420ac34c81",
    "pubsub#title": "Node 8d5d3c5d-cb86-499f-8822-ce420ac34c81"
}

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

2022-07-17 23:01:34 | [Mutex] waiting for: [received:nodes:a1fcc7a2-905a-480a-81d1-08ec8c76ee61:localhost]

2022-07-17 23:01:34 | [Mutex] received everything.

2022-07-17 23:01:34 | [Mutex] isItemNotified: received:node:a1fcc7a2-905a-480a-81d1-08ec8c76ee61:localhost:node-8d5d3c5d-cb86-499f-8822-ce420ac34c81:Node 8d5d3c5d-cb86-499f-8822-ce420ac34c81 :: true

deleteNodes 1.023s
2022-07-17 23:01:38 |

2022-07-17 23:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:38 | ------------------------------------

2022-07-17 23:01:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8d5d3c5d-cb86-499f-8822-ce420ac34c81"
}

2022-07-17 23:01:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-17 23:01:39 | [Mutex] waiting for: [received:nodes:254da0ba-916c-4de2-9207-8e5c9755dd04:localhost]

2022-07-17 23:01:39 | [Mutex] waiting for: [received:nodes:254da0ba-916c-4de2-9207-8e5c9755dd04:localhost]

2022-07-17 23:01:39 | [Mutex] received everything.

2022-07-17 23:01:39 | [Mutex] isItemNotified: received:node:254da0ba-916c-4de2-9207-8e5c9755dd04:localhost:node-8d5d3c5d-cb86-499f-8822-ce420ac34c81:Node 8d5d3c5d-cb86-499f-8822-ce420ac34c81 :: false

deleteSubnodes 1.024s
2022-07-17 23:01:37 |

2022-07-17 23:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:37 | ------------------------------------

2022-07-17 23:01:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8"
}

2022-07-17 23:01:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-17 23:01:38 | [Mutex] waiting for: [received:nodes:3a1bae57-766b-4016-b223-d4a381b025e7:localhost]

2022-07-17 23:01:38 | [Mutex] received everything.

2022-07-17 23:01:38 | [Mutex] isItemNotified: received:node:3a1bae57-766b-4016-b223-d4a381b025e7:localhost:node-447e672b-76d4-422d-95c2-792bbf93c0c8:Node 447e672b-76d4-422d-95c2-792bbf93c0c8 :: false

2022-07-17 23:01:38 | [Mutex] waiting for: [received:nodes:17a2a0ed-7557-4cb4-a8b9-2c86933ced27:localhost]

2022-07-17 23:01:38 | [Mutex] received everything.

2022-07-17 23:01:38 | [Mutex] isItemNotified: received:node:17a2a0ed-7557-4cb4-a8b9-2c86933ced27:localhost:node-447e672b-76d4-422d-95c2-792bbf93c0c8:Node 447e672b-76d4-422d-95c2-792bbf93c0c8 :: false

publishItemsToNodes 0.063s
2022-07-17 23:01:36 |

2022-07-17 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:36 | ------------------------------------

2022-07-17 23:01:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "entry": "<test>item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226</test>",
    "item-id": "item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226"
}

2022-07-17 23:01:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226"
}

2022-07-17 23:01:36 | [Mutex] waiting for: [published:item:notifieditem-e2ccd57f-37ef-47ec-bf50-6a38b8a60226:admin@test-domain.com]

2022-07-17 23:01:36 | [Mutex] received everything.

2022-07-17 23:01:36 | [Mutex] isItemNotified: published:item:notifieditem-e2ccd57f-37ef-47ec-bf50-6a38b8a60226:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-07-17 23:01:36 |

2022-07-17 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:36 | ------------------------------------

2022-07-17 23:01:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "item-id": "item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226"
}

2022-07-17 23:01:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226"
}

2022-07-17 23:01:36 | [Mutex] received everything.

2022-07-17 23:01:36 | [Mutex] isItemNotified: retracted:item:notifieditem-e2ccd57f-37ef-47ec-bf50-6a38b8a60226:admin@test-domain.com :: true

retrieveItemsFromNodes 0.012s
2022-07-17 23:01:36 |

2022-07-17 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:36 | ------------------------------------

2022-07-17 23:01:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "item-id": "item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226"
}

2022-07-17 23:01:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "item-id": "item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226",
    "item": [
        "<item id=\"item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226\"><test>item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226</test></item>"
    ]
}

2022-07-17 23:01:36 | [Mutex] notify: [retrieved:item:item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226:payload-matches:true:localhost]

2022-07-17 23:01:36 | [Mutex] received everything.

2022-07-17 23:01:36 | [Mutex] isItemNotified: retrieved:item:item-e2ccd57f-37ef-47ec-bf50-6a38b8a60226:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-17 23:01:36 |

2022-07-17 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:36 | ------------------------------------

2022-07-17 23:01:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-17 23:01:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
        "node-8d5d3c5d-cb86-499f-8822-ce420ac34c81"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-17 23:01:36 |

2022-07-17 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:36 | ------------------------------------

2022-07-17 23:01:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-447e672b-76d4-422d-95c2-792bbf93c0c8)"
}

2022-07-17 23:01:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-17 23:01:35 |

2022-07-17 23:01:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:35 | ------------------------------------

2022-07-17 23:01:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-17 23:01:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-07-17 23:01:36 |

2022-07-17 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-17 23:01:36 | ------------------------------------

2022-07-17 23:01:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-447e672b-76d4-422d-95c2-792bbf93c0c8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-17 23:01:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}