Generated by TestNG with ReportNG at 22:00 PST on Monday 21 February 2022
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 : 9.049s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.131s
2022-02-21 22:17:45 |

2022-02-21 22:17:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:45 | ------------------------------------

2022-02-21 22:17:45 | [Mutex] waiting for: [configured:node:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:node-978a7ecb-ef53-4409-b721-ddaac435d7cd]

2022-02-21 22:17:45 | [Mutex] received everything.

2022-02-21 22:17:45 | [Mutex] isItemNotified: configured:node:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:node-978a7ecb-ef53-4409-b721-ddaac435d7cd :: true

2022-02-21 22:17:46 | [Mutex] waiting for: [received:nodes:926a7daa-d0b5-4bec-a608-b9bccb92e467:localhost]

2022-02-21 22:17:46 | [Mutex] waiting for: [received:nodes:926a7daa-d0b5-4bec-a608-b9bccb92e467:localhost]

2022-02-21 22:17:46 | [Mutex] received everything.

2022-02-21 22:17:46 | [Mutex] isItemNotified: received:node:926a7daa-d0b5-4bec-a608-b9bccb92e467:localhost:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:Node 95af67eb-2c67-41ea-8aa0-229ebec1b514 :: true

2022-02-21 22:17:46 | [Mutex] waiting for: [received:nodes:4230b085-8b0f-4ec7-8df9-5c0569fe8edf:localhost]

2022-02-21 22:17:46 | [Mutex] waiting for: [received:nodes:4230b085-8b0f-4ec7-8df9-5c0569fe8edf:localhost]

2022-02-21 22:17:46 | [Mutex] received everything.

2022-02-21 22:17:46 | [Mutex] isItemNotified: received:node:4230b085-8b0f-4ec7-8df9-5c0569fe8edf:localhost:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:Node 95af67eb-2c67-41ea-8aa0-229ebec1b514 :: false

createNodes 1.661s
2022-02-21 22:17:42 |

2022-02-21 22:17:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:42 | ------------------------------------

2022-02-21 22:17:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "pubsub#title": "Node 95af67eb-2c67-41ea-8aa0-229ebec1b514"
}

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

2022-02-21 22:17:44 | [Mutex] waiting for: [received:nodes:ba363bfa-d594-4d97-a2d9-d2780adc89fc:localhost]

2022-02-21 22:17:44 | [Mutex] received everything.

2022-02-21 22:17:44 | [Mutex] isItemNotified: received:node:ba363bfa-d594-4d97-a2d9-d2780adc89fc:localhost:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:Node 95af67eb-2c67-41ea-8aa0-229ebec1b514 :: true

createSubnodes 1.029s
2022-02-21 22:17:44 |

2022-02-21 22:17:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:44 | ------------------------------------

2022-02-21 22:17:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-978a7ecb-ef53-4409-b721-ddaac435d7cd",
    "pubsub#title": "Node 978a7ecb-ef53-4409-b721-ddaac435d7cd"
}

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

2022-02-21 22:17:45 | [Mutex] waiting for: [received:nodes:1985d1e6-2fd4-4a1f-80e3-68fe88bb37de:localhost]

2022-02-21 22:17:45 | [Mutex] received everything.

2022-02-21 22:17:45 | [Mutex] isItemNotified: received:node:1985d1e6-2fd4-4a1f-80e3-68fe88bb37de:localhost:node-978a7ecb-ef53-4409-b721-ddaac435d7cd:Node 978a7ecb-ef53-4409-b721-ddaac435d7cd :: true

deleteNodes 1.024s
2022-02-21 22:17:49 |

2022-02-21 22:17:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:49 | ------------------------------------

2022-02-21 22:17:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-978a7ecb-ef53-4409-b721-ddaac435d7cd"
}

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

2022-02-21 22:17:50 | [Mutex] waiting for: [received:nodes:ab68bd5f-9c5b-4adf-9819-b92bb840c68c:localhost]

2022-02-21 22:17:50 | [Mutex] received everything.

2022-02-21 22:17:50 | [Mutex] isItemNotified: received:node:ab68bd5f-9c5b-4adf-9819-b92bb840c68c:localhost:node-978a7ecb-ef53-4409-b721-ddaac435d7cd:Node 978a7ecb-ef53-4409-b721-ddaac435d7cd :: false

deleteSubnodes 1.026s
2022-02-21 22:17:48 |

2022-02-21 22:17:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:48 | ------------------------------------

2022-02-21 22:17:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514"
}

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

2022-02-21 22:17:49 | [Mutex] waiting for: [received:nodes:b063d847-f0f9-49cf-9b4b-cc44a4ab886b:localhost]

2022-02-21 22:17:49 | [Mutex] received everything.

2022-02-21 22:17:49 | [Mutex] isItemNotified: received:node:b063d847-f0f9-49cf-9b4b-cc44a4ab886b:localhost:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:Node 95af67eb-2c67-41ea-8aa0-229ebec1b514 :: false

2022-02-21 22:17:49 | [Mutex] waiting for: [received:nodes:132ba372-3f8d-47db-b975-61c443987282:localhost]

2022-02-21 22:17:49 | [Mutex] received everything.

2022-02-21 22:17:49 | [Mutex] isItemNotified: received:node:132ba372-3f8d-47db-b975-61c443987282:localhost:node-95af67eb-2c67-41ea-8aa0-229ebec1b514:Node 95af67eb-2c67-41ea-8aa0-229ebec1b514 :: false

publishItemsToNodes 0.048s
2022-02-21 22:17:47 |

2022-02-21 22:17:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:47 | ------------------------------------

2022-02-21 22:17:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "entry": "<test>item-482a35bc-5725-45c0-a9c8-685afdda5dcf</test>",
    "item-id": "item-482a35bc-5725-45c0-a9c8-685afdda5dcf"
}

2022-02-21 22:17:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-482a35bc-5725-45c0-a9c8-685afdda5dcf"
}

2022-02-21 22:17:47 | [Mutex] received everything.

2022-02-21 22:17:47 | [Mutex] isItemNotified: published:item:notifieditem-482a35bc-5725-45c0-a9c8-685afdda5dcf:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-02-21 22:17:47 |

2022-02-21 22:17:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:47 | ------------------------------------

2022-02-21 22:17:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "item-id": "item-482a35bc-5725-45c0-a9c8-685afdda5dcf"
}

2022-02-21 22:17:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-482a35bc-5725-45c0-a9c8-685afdda5dcf"
}

2022-02-21 22:17:47 | [Mutex] received everything.

2022-02-21 22:17:47 | [Mutex] isItemNotified: retracted:item:notifieditem-482a35bc-5725-45c0-a9c8-685afdda5dcf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2022-02-21 22:17:47 |

2022-02-21 22:17:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:47 | ------------------------------------

2022-02-21 22:17:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "item-id": "item-482a35bc-5725-45c0-a9c8-685afdda5dcf"
}

2022-02-21 22:17:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "item-id": "item-482a35bc-5725-45c0-a9c8-685afdda5dcf",
    "item": [
        "<item id=\"item-482a35bc-5725-45c0-a9c8-685afdda5dcf\"><test>item-482a35bc-5725-45c0-a9c8-685afdda5dcf</test></item>"
    ]
}

2022-02-21 22:17:47 | [Mutex] notify: [retrieved:item:item-482a35bc-5725-45c0-a9c8-685afdda5dcf:payload-matches:true:localhost]

2022-02-21 22:17:47 | [Mutex] received everything.

2022-02-21 22:17:47 | [Mutex] isItemNotified: retrieved:item:item-482a35bc-5725-45c0-a9c8-685afdda5dcf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-21 22:17:47 |

2022-02-21 22:17:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:47 | ------------------------------------

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

2022-02-21 22:17:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
        "node-978a7ecb-ef53-4409-b721-ddaac435d7cd"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-21 22:17:47 |

2022-02-21 22:17:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:47 | ------------------------------------

2022-02-21 22:17:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-95af67eb-2c67-41ea-8aa0-229ebec1b514)"
}

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

subscribeNodes 1.014s
2022-02-21 22:17:46 |

2022-02-21 22:17:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:46 | ------------------------------------

2022-02-21 22:17:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2022-02-21 22:17:47 |

2022-02-21 22:17:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-21 22:17:47 | ------------------------------------

2022-02-21 22:17:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-95af67eb-2c67-41ea-8aa0-229ebec1b514",
    "jids": [
        "admin@test-domain.com"
    ]
}

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