Generated by TestNG with ReportNG at 22:21 PDT on Thursday 27 May 2021
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.196s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.106s
2021-05-27 22:39:00 |

2021-05-27 22:39:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:00 | ------------------------------------

2021-05-27 22:39:00 | [Mutex] waiting for: [configured:node:node-206be15c-da12-4ee6-82ff-8070ec937472:node-8267acf5-012f-448b-8d65-6ec50e7ff583]

2021-05-27 22:39:00 | [Mutex] received everything.

2021-05-27 22:39:00 | [Mutex] isItemNotified: configured:node:node-206be15c-da12-4ee6-82ff-8070ec937472:node-8267acf5-012f-448b-8d65-6ec50e7ff583 :: true

2021-05-27 22:39:01 | [Mutex] waiting for: [received:nodes:0bb03cbb-0034-40fd-8a36-fd6874588111:localhost]

2021-05-27 22:39:01 | [Mutex] received everything.

2021-05-27 22:39:01 | [Mutex] isItemNotified: received:node:0bb03cbb-0034-40fd-8a36-fd6874588111:localhost:node-206be15c-da12-4ee6-82ff-8070ec937472:Node 206be15c-da12-4ee6-82ff-8070ec937472 :: true

2021-05-27 22:39:01 | [Mutex] waiting for: [received:nodes:988f62dc-21b4-4658-8014-ac57686a07a2:localhost]

2021-05-27 22:39:01 | [Mutex] waiting for: [received:nodes:988f62dc-21b4-4658-8014-ac57686a07a2:localhost]

2021-05-27 22:39:01 | [Mutex] received everything.

2021-05-27 22:39:01 | [Mutex] isItemNotified: received:node:988f62dc-21b4-4658-8014-ac57686a07a2:localhost:node-206be15c-da12-4ee6-82ff-8070ec937472:Node 206be15c-da12-4ee6-82ff-8070ec937472 :: false

createNodes 1.725s
2021-05-27 22:38:57 |

2021-05-27 22:38:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:57 | ------------------------------------

2021-05-27 22:38:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "pubsub#title": "Node 206be15c-da12-4ee6-82ff-8070ec937472"
}

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

2021-05-27 22:38:59 | [Mutex] waiting for: [received:nodes:d07aedb0-9951-407c-952e-37b0dd28a8a4:localhost]

2021-05-27 22:38:59 | [Mutex] waiting for: [received:nodes:d07aedb0-9951-407c-952e-37b0dd28a8a4:localhost]

2021-05-27 22:38:59 | [Mutex] received everything.

2021-05-27 22:38:59 | [Mutex] isItemNotified: received:node:d07aedb0-9951-407c-952e-37b0dd28a8a4:localhost:node-206be15c-da12-4ee6-82ff-8070ec937472:Node 206be15c-da12-4ee6-82ff-8070ec937472 :: true

createSubnodes 1.030s
2021-05-27 22:38:59 |

2021-05-27 22:38:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:38:59 | ------------------------------------

2021-05-27 22:38:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8267acf5-012f-448b-8d65-6ec50e7ff583",
    "pubsub#title": "Node 8267acf5-012f-448b-8d65-6ec50e7ff583"
}

2021-05-27 22:38:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 22:39:00 | [Mutex] waiting for: [received:nodes:026ea185-af6a-4efa-a769-290b0c694a06:localhost]

2021-05-27 22:39:00 | [Mutex] received everything.

2021-05-27 22:39:00 | [Mutex] isItemNotified: received:node:026ea185-af6a-4efa-a769-290b0c694a06:localhost:node-8267acf5-012f-448b-8d65-6ec50e7ff583:Node 8267acf5-012f-448b-8d65-6ec50e7ff583 :: true

deleteNodes 1.024s
2021-05-27 22:39:05 |

2021-05-27 22:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:05 | ------------------------------------

2021-05-27 22:39:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8267acf5-012f-448b-8d65-6ec50e7ff583"
}

2021-05-27 22:39:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-27 22:39:06 | [Mutex] waiting for: [received:nodes:069801c0-605f-468b-b7ce-70aa94d341c9:localhost]

2021-05-27 22:39:06 | [Mutex] received everything.

2021-05-27 22:39:06 | [Mutex] isItemNotified: received:node:069801c0-605f-468b-b7ce-70aa94d341c9:localhost:node-8267acf5-012f-448b-8d65-6ec50e7ff583:Node 8267acf5-012f-448b-8d65-6ec50e7ff583 :: false

deleteSubnodes 1.029s
2021-05-27 22:39:03 |

2021-05-27 22:39:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:03 | ------------------------------------

2021-05-27 22:39:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472"
}

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

2021-05-27 22:39:04 | [Mutex] waiting for: [received:nodes:f34cfa13-d079-4626-b632-edbaa789f857:localhost]

2021-05-27 22:39:05 | [Mutex] received everything.

2021-05-27 22:39:05 | [Mutex] isItemNotified: received:node:f34cfa13-d079-4626-b632-edbaa789f857:localhost:node-206be15c-da12-4ee6-82ff-8070ec937472:Node 206be15c-da12-4ee6-82ff-8070ec937472 :: false

2021-05-27 22:39:05 | [Mutex] waiting for: [received:nodes:fbed1e1f-0420-428c-adac-150e04fb565d:localhost]

2021-05-27 22:39:05 | [Mutex] received everything.

2021-05-27 22:39:05 | [Mutex] isItemNotified: received:node:fbed1e1f-0420-428c-adac-150e04fb565d:localhost:node-206be15c-da12-4ee6-82ff-8070ec937472:Node 206be15c-da12-4ee6-82ff-8070ec937472 :: false

publishItemsToNodes 0.129s
2021-05-27 22:39:02 |

2021-05-27 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:02 | ------------------------------------

2021-05-27 22:39:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "entry": "<test>item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db</test>",
    "item-id": "item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db"
}

2021-05-27 22:39:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db"
}

2021-05-27 22:39:02 | [Mutex] received everything.

2021-05-27 22:39:02 | [Mutex] isItemNotified: published:item:notifieditem-a7041ec1-f2fb-4a47-a1d7-4faee5d905db:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-05-27 22:39:02 |

2021-05-27 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:02 | ------------------------------------

2021-05-27 22:39:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "item-id": "item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db"
}

2021-05-27 22:39:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db"
}

2021-05-27 22:39:02 | [Mutex] waiting for: [retracted:item:notifieditem-a7041ec1-f2fb-4a47-a1d7-4faee5d905db:admin@test-domain.com]

2021-05-27 22:39:02 | [Mutex] received everything.

2021-05-27 22:39:02 | [Mutex] isItemNotified: retracted:item:notifieditem-a7041ec1-f2fb-4a47-a1d7-4faee5d905db:admin@test-domain.com :: true

retrieveItemsFromNodes 0.093s
2021-05-27 22:39:02 |

2021-05-27 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:02 | ------------------------------------

2021-05-27 22:39:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "item-id": "item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db"
}

2021-05-27 22:39:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "item-id": "item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db",
    "item": [
        "<item id=\"item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db\"><test>item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db</test></item>"
    ]
}

2021-05-27 22:39:02 | [Mutex] notify: [retrieved:item:item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db:payload-matches:true:localhost]

2021-05-27 22:39:02 | [Mutex] received everything.

2021-05-27 22:39:02 | [Mutex] isItemNotified: retrieved:item:item-a7041ec1-f2fb-4a47-a1d7-4faee5d905db:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-27 22:39:02 |

2021-05-27 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:02 | ------------------------------------

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

2021-05-27 22:39:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-206be15c-da12-4ee6-82ff-8070ec937472",
        "node-8267acf5-012f-448b-8d65-6ec50e7ff583"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-27 22:39:02 |

2021-05-27 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:02 | ------------------------------------

2021-05-27 22:39:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-206be15c-da12-4ee6-82ff-8070ec937472)"
}

2021-05-27 22:39:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-05-27 22:39:01 |

2021-05-27 22:39:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:01 | ------------------------------------

2021-05-27 22:39:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-27 22:39:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.089s
2021-05-27 22:39:02 |

2021-05-27 22:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-27 22:39:02 | ------------------------------------

2021-05-27 22:39:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-206be15c-da12-4ee6-82ff-8070ec937472",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-27 22:39:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}