Generated by TestNG with ReportNG at 00:09 PDT on Wednesday 26 August 2020
root@f09c7b422724 / 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.195s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2020-08-26 00:24:39 |

2020-08-26 00:24:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:39 | ------------------------------------

2020-08-26 00:24:39 | [Mutex] waiting for: [configured:node:node-700ed756-9037-4266-9f95-fdeeb27a1f70:node-db698597-8ab9-4e44-89bb-6f3e017adca4]

2020-08-26 00:24:39 | [Mutex] received everything.

2020-08-26 00:24:39 | [Mutex] isItemNotified: configured:node:node-700ed756-9037-4266-9f95-fdeeb27a1f70:node-db698597-8ab9-4e44-89bb-6f3e017adca4 :: true

2020-08-26 00:24:40 | [Mutex] waiting for: [received:nodes:49140029-8d64-4550-869f-05774aa6426f:localhost]

2020-08-26 00:24:40 | [Mutex] waiting for: [received:nodes:49140029-8d64-4550-869f-05774aa6426f:localhost]

2020-08-26 00:24:40 | [Mutex] received everything.

2020-08-26 00:24:40 | [Mutex] isItemNotified: received:node:49140029-8d64-4550-869f-05774aa6426f:localhost:node-700ed756-9037-4266-9f95-fdeeb27a1f70:Node 700ed756-9037-4266-9f95-fdeeb27a1f70 :: true

2020-08-26 00:24:40 | [Mutex] waiting for: [received:nodes:5b607d53-1f7b-4d11-89dd-1af71de850d2:localhost]

2020-08-26 00:24:40 | [Mutex] received everything.

2020-08-26 00:24:40 | [Mutex] isItemNotified: received:node:5b607d53-1f7b-4d11-89dd-1af71de850d2:localhost:node-700ed756-9037-4266-9f95-fdeeb27a1f70:Node 700ed756-9037-4266-9f95-fdeeb27a1f70 :: false

createNodes 1.795s
2020-08-26 00:24:36 |

2020-08-26 00:24:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:36 | ------------------------------------

2020-08-26 00:24:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "pubsub#title": "Node 700ed756-9037-4266-9f95-fdeeb27a1f70"
}

2020-08-26 00:24:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 00:24:38 | [Mutex] waiting for: [received:nodes:ea37e535-0c60-4760-96a2-1389674449d4:localhost]

2020-08-26 00:24:38 | [Mutex] received everything.

2020-08-26 00:24:38 | [Mutex] isItemNotified: received:node:ea37e535-0c60-4760-96a2-1389674449d4:localhost:node-700ed756-9037-4266-9f95-fdeeb27a1f70:Node 700ed756-9037-4266-9f95-fdeeb27a1f70 :: true

createSubnodes 1.026s
2020-08-26 00:24:38 |

2020-08-26 00:24:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:38 | ------------------------------------

2020-08-26 00:24:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-db698597-8ab9-4e44-89bb-6f3e017adca4",
    "pubsub#title": "Node db698597-8ab9-4e44-89bb-6f3e017adca4"
}

2020-08-26 00:24:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 00:24:39 | [Mutex] waiting for: [received:nodes:fa4ce246-aecc-4104-a4f5-70594a96164d:localhost]

2020-08-26 00:24:39 | [Mutex] waiting for: [received:nodes:fa4ce246-aecc-4104-a4f5-70594a96164d:localhost]

2020-08-26 00:24:39 | [Mutex] received everything.

2020-08-26 00:24:39 | [Mutex] isItemNotified: received:node:fa4ce246-aecc-4104-a4f5-70594a96164d:localhost:node-db698597-8ab9-4e44-89bb-6f3e017adca4:Node db698597-8ab9-4e44-89bb-6f3e017adca4 :: true

deleteNodes 1.019s
2020-08-26 00:24:43 |

2020-08-26 00:24:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:43 | ------------------------------------

2020-08-26 00:24:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-db698597-8ab9-4e44-89bb-6f3e017adca4"
}

2020-08-26 00:24:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 00:24:44 | [Mutex] waiting for: [received:nodes:1b483eb4-cf4d-4ede-bb04-2ba11363fe3b:localhost]

2020-08-26 00:24:44 | [Mutex] waiting for: [received:nodes:1b483eb4-cf4d-4ede-bb04-2ba11363fe3b:localhost]

2020-08-26 00:24:44 | [Mutex] received everything.

2020-08-26 00:24:44 | [Mutex] isItemNotified: received:node:1b483eb4-cf4d-4ede-bb04-2ba11363fe3b:localhost:node-db698597-8ab9-4e44-89bb-6f3e017adca4:Node db698597-8ab9-4e44-89bb-6f3e017adca4 :: false

deleteSubnodes 1.031s
2020-08-26 00:24:42 |

2020-08-26 00:24:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:42 | ------------------------------------

2020-08-26 00:24:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70"
}

2020-08-26 00:24:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 00:24:43 | [Mutex] waiting for: [received:nodes:002c5b29-9f56-4b7b-9911-7a21d1817f4b:localhost]

2020-08-26 00:24:43 | [Mutex] received everything.

2020-08-26 00:24:43 | [Mutex] isItemNotified: received:node:002c5b29-9f56-4b7b-9911-7a21d1817f4b:localhost:node-700ed756-9037-4266-9f95-fdeeb27a1f70:Node 700ed756-9037-4266-9f95-fdeeb27a1f70 :: false

2020-08-26 00:24:43 | [Mutex] waiting for: [received:nodes:f9620b3f-9197-4716-88ae-0abab7ff6ae3:localhost]

2020-08-26 00:24:43 | [Mutex] received everything.

2020-08-26 00:24:43 | [Mutex] isItemNotified: received:node:f9620b3f-9197-4716-88ae-0abab7ff6ae3:localhost:node-700ed756-9037-4266-9f95-fdeeb27a1f70:Node 700ed756-9037-4266-9f95-fdeeb27a1f70 :: false

publishItemsToNodes 0.075s
2020-08-26 00:24:41 |

2020-08-26 00:24:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:41 | ------------------------------------

2020-08-26 00:24:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "entry": "<test>item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba</test>",
    "item-id": "item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba"
}

2020-08-26 00:24:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba"
}

2020-08-26 00:24:41 | [Mutex] waiting for: [published:item:notifieditem-a01b5c2c-9d25-4ce6-89f9-900f8f626fba:admin@test-domain.com]

2020-08-26 00:24:41 | [Mutex] received everything.

2020-08-26 00:24:41 | [Mutex] isItemNotified: published:item:notifieditem-a01b5c2c-9d25-4ce6-89f9-900f8f626fba:admin@test-domain.com :: true

retractItemsFromNodes 0.091s
2020-08-26 00:24:41 |

2020-08-26 00:24:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:41 | ------------------------------------

2020-08-26 00:24:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "item-id": "item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba"
}

2020-08-26 00:24:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba"
}

2020-08-26 00:24:41 | [Mutex] received everything.

2020-08-26 00:24:41 | [Mutex] isItemNotified: retracted:item:notifieditem-a01b5c2c-9d25-4ce6-89f9-900f8f626fba:admin@test-domain.com :: true

retrieveItemsFromNodes 0.036s
2020-08-26 00:24:41 |

2020-08-26 00:24:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:41 | ------------------------------------

2020-08-26 00:24:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "item-id": "item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba"
}

2020-08-26 00:24:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "item-id": "item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba",
    "item": [
        "<item id=\"item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba\"><test>item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba</test></item>"
    ]
}

2020-08-26 00:24:41 | [Mutex] notify: [retrieved:item:item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba:payload-matches:true:localhost]

2020-08-26 00:24:41 | [Mutex] received everything.

2020-08-26 00:24:41 | [Mutex] isItemNotified: retrieved:item:item-a01b5c2c-9d25-4ce6-89f9-900f8f626fba:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-08-26 00:24:41 |

2020-08-26 00:24:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:41 | ------------------------------------

2020-08-26 00:24:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-08-26 00:24:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-db698597-8ab9-4e44-89bb-6f3e017adca4",
        "node-700ed756-9037-4266-9f95-fdeeb27a1f70"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-08-26 00:24:41 |

2020-08-26 00:24:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:41 | ------------------------------------

2020-08-26 00:24:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-700ed756-9037-4266-9f95-fdeeb27a1f70)"
}

2020-08-26 00:24:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-08-26 00:24:40 |

2020-08-26 00:24:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:40 | ------------------------------------

2020-08-26 00:24:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 00:24:40 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2020-08-26 00:24:41 |

2020-08-26 00:24:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 00:24:41 | ------------------------------------

2020-08-26 00:24:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-700ed756-9037-4266-9f95-fdeeb27a1f70",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 00:24:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}