Generated by TestNG with ReportNG at 22:43 PDT on Sunday 21 March 2021
root@eaa73862192b / 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.013s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2021-03-21 22:58:55 |

2021-03-21 22:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:55 | ------------------------------------

2021-03-21 22:58:55 | [Mutex] waiting for: [configured:node:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:node-dd4bc672-1baa-4a23-8f02-74cc1e484cac]

2021-03-21 22:58:55 | [Mutex] received everything.

2021-03-21 22:58:55 | [Mutex] isItemNotified: configured:node:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:node-dd4bc672-1baa-4a23-8f02-74cc1e484cac :: true

2021-03-21 22:58:56 | [Mutex] waiting for: [received:nodes:bce7f50b-0467-493a-b572-ec742c0b0b58:localhost]

2021-03-21 22:58:56 | [Mutex] received everything.

2021-03-21 22:58:56 | [Mutex] isItemNotified: received:node:bce7f50b-0467-493a-b572-ec742c0b0b58:localhost:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:Node f8fb9e66-1d40-42eb-837f-be878351d3d3 :: true

2021-03-21 22:58:56 | [Mutex] waiting for: [received:nodes:c1b4b0b7-2d94-4c48-a165-fb3580690da7:localhost]

2021-03-21 22:58:56 | [Mutex] received everything.

2021-03-21 22:58:56 | [Mutex] isItemNotified: received:node:c1b4b0b7-2d94-4c48-a165-fb3580690da7:localhost:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:Node f8fb9e66-1d40-42eb-837f-be878351d3d3 :: false

createNodes 1.483s
2021-03-21 22:58:53 |

2021-03-21 22:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:53 | ------------------------------------

2021-03-21 22:58:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "pubsub#title": "Node f8fb9e66-1d40-42eb-837f-be878351d3d3"
}

2021-03-21 22:58:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-21 22:58:54 | [Mutex] waiting for: [received:nodes:72d5b00a-57e7-47c4-88cc-896084c4a862:localhost]

2021-03-21 22:58:54 | [Mutex] received everything.

2021-03-21 22:58:54 | [Mutex] isItemNotified: received:node:72d5b00a-57e7-47c4-88cc-896084c4a862:localhost:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:Node f8fb9e66-1d40-42eb-837f-be878351d3d3 :: true

createSubnodes 1.035s
2021-03-21 22:58:54 |

2021-03-21 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:54 | ------------------------------------

2021-03-21 22:58:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dd4bc672-1baa-4a23-8f02-74cc1e484cac",
    "pubsub#title": "Node dd4bc672-1baa-4a23-8f02-74cc1e484cac"
}

2021-03-21 22:58:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-21 22:58:55 | [Mutex] waiting for: [received:nodes:99c370bb-11f9-400e-9cf0-3082853fee65:localhost]

2021-03-21 22:58:55 | [Mutex] received everything.

2021-03-21 22:58:55 | [Mutex] isItemNotified: received:node:99c370bb-11f9-400e-9cf0-3082853fee65:localhost:node-dd4bc672-1baa-4a23-8f02-74cc1e484cac:Node dd4bc672-1baa-4a23-8f02-74cc1e484cac :: true

deleteNodes 1.024s
2021-03-21 22:59:00 |

2021-03-21 22:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:59:00 | ------------------------------------

2021-03-21 22:59:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dd4bc672-1baa-4a23-8f02-74cc1e484cac"
}

2021-03-21 22:59:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-21 22:59:01 | [Mutex] waiting for: [received:nodes:2988fecd-fd6a-4189-94c6-59b47d2e24a5:localhost]

2021-03-21 22:59:01 | [Mutex] waiting for: [received:nodes:2988fecd-fd6a-4189-94c6-59b47d2e24a5:localhost]

2021-03-21 22:59:01 | [Mutex] received everything.

2021-03-21 22:59:01 | [Mutex] isItemNotified: received:node:2988fecd-fd6a-4189-94c6-59b47d2e24a5:localhost:node-dd4bc672-1baa-4a23-8f02-74cc1e484cac:Node dd4bc672-1baa-4a23-8f02-74cc1e484cac :: false

deleteSubnodes 1.029s
2021-03-21 22:58:59 |

2021-03-21 22:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:59 | ------------------------------------

2021-03-21 22:58:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3"
}

2021-03-21 22:58:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-21 22:59:00 | [Mutex] waiting for: [received:nodes:25e39917-7aaf-4e5c-a7e3-fddc589b1f9e:localhost]

2021-03-21 22:59:00 | [Mutex] received everything.

2021-03-21 22:59:00 | [Mutex] isItemNotified: received:node:25e39917-7aaf-4e5c-a7e3-fddc589b1f9e:localhost:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:Node f8fb9e66-1d40-42eb-837f-be878351d3d3 :: false

2021-03-21 22:59:00 | [Mutex] waiting for: [received:nodes:f0485302-61ca-4ac5-b708-715b63c721ef:localhost]

2021-03-21 22:59:00 | [Mutex] received everything.

2021-03-21 22:59:00 | [Mutex] isItemNotified: received:node:f0485302-61ca-4ac5-b708-715b63c721ef:localhost:node-f8fb9e66-1d40-42eb-837f-be878351d3d3:Node f8fb9e66-1d40-42eb-837f-be878351d3d3 :: false

publishItemsToNodes 0.070s
2021-03-21 22:58:57 |

2021-03-21 22:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:57 | ------------------------------------

2021-03-21 22:58:57 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "entry": "<test>item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020</test>",
    "item-id": "item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020"
}

2021-03-21 22:58:57 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020"
}

2021-03-21 22:58:57 | [Mutex] waiting for: [published:item:notifieditem-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020:admin@test-domain.com]

2021-03-21 22:58:57 | [Mutex] received everything.

2021-03-21 22:58:57 | [Mutex] isItemNotified: published:item:notifieditem-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020:admin@test-domain.com :: true

retractItemsFromNodes 0.132s
2021-03-21 22:58:58 |

2021-03-21 22:58:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:58 | ------------------------------------

2021-03-21 22:58:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "item-id": "item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020"
}

2021-03-21 22:58:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020"
}

2021-03-21 22:58:58 | [Mutex] received everything.

2021-03-21 22:58:58 | [Mutex] isItemNotified: retracted:item:notifieditem-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020:admin@test-domain.com :: true

retrieveItemsFromNodes 0.087s
2021-03-21 22:58:57 |

2021-03-21 22:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:57 | ------------------------------------

2021-03-21 22:58:57 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "item-id": "item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020"
}

2021-03-21 22:58:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "item-id": "item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020",
    "item": [
        "<item id=\"item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020\"><test>item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020</test></item>"
    ]
}

2021-03-21 22:58:58 | [Mutex] notify: [retrieved:item:item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020:payload-matches:true:localhost]

2021-03-21 22:58:58 | [Mutex] received everything.

2021-03-21 22:58:58 | [Mutex] isItemNotified: retrieved:item:item-41cbbd8f-8d36-42d9-a9a2-bc80b9c9c020:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-03-21 22:58:58 |

2021-03-21 22:58:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:58 | ------------------------------------

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

2021-03-21 22:58:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-dd4bc672-1baa-4a23-8f02-74cc1e484cac",
        "node-f8fb9e66-1d40-42eb-837f-be878351d3d3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-03-21 22:58:58 |

2021-03-21 22:58:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:58 | ------------------------------------

2021-03-21 22:58:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f8fb9e66-1d40-42eb-837f-be878351d3d3)"
}

2021-03-21 22:58:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-03-21 22:58:56 |

2021-03-21 22:58:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:56 | ------------------------------------

2021-03-21 22:58:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-21 22:58:56 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-03-21 22:58:58 |

2021-03-21 22:58:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-21 22:58:58 | ------------------------------------

2021-03-21 22:58:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f8fb9e66-1d40-42eb-837f-be878351d3d3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-21 22:58:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}