Generated by TestNG with ReportNG at 21:28 PST on Thursday 14 January 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.254s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.084s
2021-01-14 21:43:00 |

2021-01-14 21:43:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:00 | ------------------------------------

2021-01-14 21:43:00 | [Mutex] waiting for: [configured:node:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:node-ae167588-1fa7-4dc4-9452-f735105d6ed3]

2021-01-14 21:43:00 | [Mutex] received everything.

2021-01-14 21:43:00 | [Mutex] isItemNotified: configured:node:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:node-ae167588-1fa7-4dc4-9452-f735105d6ed3 :: true

2021-01-14 21:43:01 | [Mutex] waiting for: [received:nodes:e014a4a7-7df7-46db-92ff-693301708560:localhost]

2021-01-14 21:43:01 | [Mutex] received everything.

2021-01-14 21:43:01 | [Mutex] isItemNotified: received:node:e014a4a7-7df7-46db-92ff-693301708560:localhost:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:Node f9260d0f-ca4c-423b-81f4-c2fbb0efed09 :: true

2021-01-14 21:43:01 | [Mutex] waiting for: [received:nodes:a868d0c5-ebaa-4e5d-a08b-facc4b6fadaf:localhost]

2021-01-14 21:43:01 | [Mutex] received everything.

2021-01-14 21:43:01 | [Mutex] isItemNotified: received:node:a868d0c5-ebaa-4e5d-a08b-facc4b6fadaf:localhost:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:Node f9260d0f-ca4c-423b-81f4-c2fbb0efed09 :: false

createNodes 1.859s
2021-01-14 21:42:57 |

2021-01-14 21:42:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:42:57 | ------------------------------------

2021-01-14 21:42: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-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "pubsub#title": "Node f9260d0f-ca4c-423b-81f4-c2fbb0efed09"
}

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

2021-01-14 21:42:59 | [Mutex] waiting for: [received:nodes:bf6d9f72-30f4-401d-badd-6f65c28eb7a4:localhost]

2021-01-14 21:42:59 | [Mutex] received everything.

2021-01-14 21:42:59 | [Mutex] isItemNotified: received:node:bf6d9f72-30f4-401d-badd-6f65c28eb7a4:localhost:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:Node f9260d0f-ca4c-423b-81f4-c2fbb0efed09 :: true

createSubnodes 1.024s
2021-01-14 21:42:59 |

2021-01-14 21:42:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:42:59 | ------------------------------------

2021-01-14 21:42: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-ae167588-1fa7-4dc4-9452-f735105d6ed3",
    "pubsub#title": "Node ae167588-1fa7-4dc4-9452-f735105d6ed3"
}

2021-01-14 21:42:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:43:00 | [Mutex] waiting for: [received:nodes:2403bbd1-73e2-4d60-a917-a0abd462e0fe:localhost]

2021-01-14 21:43:00 | [Mutex] received everything.

2021-01-14 21:43:00 | [Mutex] isItemNotified: received:node:2403bbd1-73e2-4d60-a917-a0abd462e0fe:localhost:node-ae167588-1fa7-4dc4-9452-f735105d6ed3:Node ae167588-1fa7-4dc4-9452-f735105d6ed3 :: true

deleteNodes 1.019s
2021-01-14 21:43:05 |

2021-01-14 21:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:05 | ------------------------------------

2021-01-14 21:43:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ae167588-1fa7-4dc4-9452-f735105d6ed3"
}

2021-01-14 21:43:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:43:06 | [Mutex] waiting for: [received:nodes:223b0fb9-7b36-4e36-9c6a-4a15cfc550df:localhost]

2021-01-14 21:43:06 | [Mutex] waiting for: [received:nodes:223b0fb9-7b36-4e36-9c6a-4a15cfc550df:localhost]

2021-01-14 21:43:06 | [Mutex] received everything.

2021-01-14 21:43:06 | [Mutex] isItemNotified: received:node:223b0fb9-7b36-4e36-9c6a-4a15cfc550df:localhost:node-ae167588-1fa7-4dc4-9452-f735105d6ed3:Node ae167588-1fa7-4dc4-9452-f735105d6ed3 :: false

deleteSubnodes 1.027s
2021-01-14 21:43:04 |

2021-01-14 21:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:04 | ------------------------------------

2021-01-14 21:43:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09"
}

2021-01-14 21:43:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-14 21:43:05 | [Mutex] waiting for: [received:nodes:f258d63a-b642-4c1c-837f-59285597033c:localhost]

2021-01-14 21:43:05 | [Mutex] received everything.

2021-01-14 21:43:05 | [Mutex] isItemNotified: received:node:f258d63a-b642-4c1c-837f-59285597033c:localhost:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:Node f9260d0f-ca4c-423b-81f4-c2fbb0efed09 :: false

2021-01-14 21:43:05 | [Mutex] waiting for: [received:nodes:d474ef71-f43b-45ad-830a-0e3a54382f0d:localhost]

2021-01-14 21:43:05 | [Mutex] received everything.

2021-01-14 21:43:05 | [Mutex] isItemNotified: received:node:d474ef71-f43b-45ad-830a-0e3a54382f0d:localhost:node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09:Node f9260d0f-ca4c-423b-81f4-c2fbb0efed09 :: false

publishItemsToNodes 0.092s
2021-01-14 21:43:02 |

2021-01-14 21:43:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:02 | ------------------------------------

2021-01-14 21:43:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "entry": "<test>item-1437ddb0-0a3e-4c59-9518-36fccbefb623</test>",
    "item-id": "item-1437ddb0-0a3e-4c59-9518-36fccbefb623"
}

2021-01-14 21:43:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1437ddb0-0a3e-4c59-9518-36fccbefb623"
}

2021-01-14 21:43:02 | [Mutex] waiting for: [published:item:notifieditem-1437ddb0-0a3e-4c59-9518-36fccbefb623:admin@test-domain.com]

2021-01-14 21:43:02 | [Mutex] received everything.

2021-01-14 21:43:02 | [Mutex] isItemNotified: published:item:notifieditem-1437ddb0-0a3e-4c59-9518-36fccbefb623:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2021-01-14 21:43:03 |

2021-01-14 21:43:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:03 | ------------------------------------

2021-01-14 21:43:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "item-id": "item-1437ddb0-0a3e-4c59-9518-36fccbefb623"
}

2021-01-14 21:43:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1437ddb0-0a3e-4c59-9518-36fccbefb623"
}

2021-01-14 21:43:03 | [Mutex] received everything.

2021-01-14 21:43:03 | [Mutex] isItemNotified: retracted:item:notifieditem-1437ddb0-0a3e-4c59-9518-36fccbefb623:admin@test-domain.com :: true

retrieveItemsFromNodes 0.087s
2021-01-14 21:43:02 |

2021-01-14 21:43:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:02 | ------------------------------------

2021-01-14 21:43:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "item-id": "item-1437ddb0-0a3e-4c59-9518-36fccbefb623"
}

2021-01-14 21:43:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "item-id": "item-1437ddb0-0a3e-4c59-9518-36fccbefb623",
    "item": [
        "<item id=\"item-1437ddb0-0a3e-4c59-9518-36fccbefb623\"><test>item-1437ddb0-0a3e-4c59-9518-36fccbefb623</test></item>"
    ]
}

2021-01-14 21:43:02 | [Mutex] notify: [retrieved:item:item-1437ddb0-0a3e-4c59-9518-36fccbefb623:payload-matches:true:localhost]

2021-01-14 21:43:02 | [Mutex] received everything.

2021-01-14 21:43:02 | [Mutex] isItemNotified: retrieved:item:item-1437ddb0-0a3e-4c59-9518-36fccbefb623:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2021-01-14 21:43:02 |

2021-01-14 21:43:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:02 | ------------------------------------

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

2021-01-14 21:43:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
        "test",
        "node-ae167588-1fa7-4dc4-9452-f735105d6ed3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-01-14 21:43:03 |

2021-01-14 21:43:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:03 | ------------------------------------

2021-01-14 21:43:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09)"
}

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

subscribeNodes 1.016s
2021-01-14 21:43:01 |

2021-01-14 21:43:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:01 | ------------------------------------

2021-01-14 21:43:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-14 21:43:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.084s
2021-01-14 21:43:03 |

2021-01-14 21:43:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-14 21:43:03 | ------------------------------------

2021-01-14 21:43:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f9260d0f-ca4c-423b-81f4-c2fbb0efed09",
    "jids": [
        "admin@test-domain.com"
    ]
}

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