Generated by TestNG with ReportNG at 21:25 PST on Tuesday 03 November 2020
root@43fec6d4badf / 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.084s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.143s
2020-11-03 21:41:05 |

2020-11-03 21:41:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:05 | ------------------------------------

2020-11-03 21:41:05 | [Mutex] waiting for: [configured:node:node-6605b772-334c-428f-89cd-76eb3bb98685:node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7]

2020-11-03 21:41:06 | [Mutex] received everything.

2020-11-03 21:41:06 | [Mutex] isItemNotified: configured:node:node-6605b772-334c-428f-89cd-76eb3bb98685:node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7 :: true

2020-11-03 21:41:07 | [Mutex] waiting for: [received:nodes:ad1af2ba-48a8-4f5b-9505-1ad7740a55e2:localhost]

2020-11-03 21:41:07 | [Mutex] received everything.

2020-11-03 21:41:07 | [Mutex] isItemNotified: received:node:ad1af2ba-48a8-4f5b-9505-1ad7740a55e2:localhost:node-6605b772-334c-428f-89cd-76eb3bb98685:Node 6605b772-334c-428f-89cd-76eb3bb98685 :: true

2020-11-03 21:41:07 | [Mutex] waiting for: [received:nodes:f6d8db6e-9cb9-498d-88a2-cecf806dffb8:localhost]

2020-11-03 21:41:07 | [Mutex] received everything.

2020-11-03 21:41:07 | [Mutex] isItemNotified: received:node:f6d8db6e-9cb9-498d-88a2-cecf806dffb8:localhost:node-6605b772-334c-428f-89cd-76eb3bb98685:Node 6605b772-334c-428f-89cd-76eb3bb98685 :: false

createNodes 1.600s
2020-11-03 21:41:03 |

2020-11-03 21:41:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:03 | ------------------------------------

2020-11-03 21:41:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "pubsub#title": "Node 6605b772-334c-428f-89cd-76eb3bb98685"
}

2020-11-03 21:41:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:41:04 | [Mutex] waiting for: [received:nodes:c3286ad8-6ef7-49aa-99f4-65e3419a597e:localhost]

2020-11-03 21:41:04 | [Mutex] received everything.

2020-11-03 21:41:04 | [Mutex] isItemNotified: received:node:c3286ad8-6ef7-49aa-99f4-65e3419a597e:localhost:node-6605b772-334c-428f-89cd-76eb3bb98685:Node 6605b772-334c-428f-89cd-76eb3bb98685 :: true

createSubnodes 1.030s
2020-11-03 21:41:04 |

2020-11-03 21:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:04 | ------------------------------------

2020-11-03 21:41:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7",
    "pubsub#title": "Node 8a17370b-46ab-49b3-9d0b-2e85ee7f50f7"
}

2020-11-03 21:41:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:41:05 | [Mutex] waiting for: [received:nodes:6a30fb02-9b3b-47e3-bd86-88769e54c0a8:localhost]

2020-11-03 21:41:05 | [Mutex] received everything.

2020-11-03 21:41:05 | [Mutex] isItemNotified: received:node:6a30fb02-9b3b-47e3-bd86-88769e54c0a8:localhost:node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7:Node 8a17370b-46ab-49b3-9d0b-2e85ee7f50f7 :: true

deleteNodes 1.021s
2020-11-03 21:41:10 |

2020-11-03 21:41:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:10 | ------------------------------------

2020-11-03 21:41:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7"
}

2020-11-03 21:41:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:41:11 | [Mutex] waiting for: [received:nodes:b26396b1-ddd5-47ab-b86a-b63bd8b8d266:localhost]

2020-11-03 21:41:11 | [Mutex] received everything.

2020-11-03 21:41:11 | [Mutex] isItemNotified: received:node:b26396b1-ddd5-47ab-b86a-b63bd8b8d266:localhost:node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7:Node 8a17370b-46ab-49b3-9d0b-2e85ee7f50f7 :: false

deleteSubnodes 1.068s
2020-11-03 21:41:09 |

2020-11-03 21:41:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:09 | ------------------------------------

2020-11-03 21:41:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685"
}

2020-11-03 21:41:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:41:10 | [Mutex] waiting for: [received:nodes:61d3fa0a-da73-4482-81f2-77c3a0582f35:localhost]

2020-11-03 21:41:10 | [Mutex] received everything.

2020-11-03 21:41:10 | [Mutex] isItemNotified: received:node:61d3fa0a-da73-4482-81f2-77c3a0582f35:localhost:node-6605b772-334c-428f-89cd-76eb3bb98685:Node 6605b772-334c-428f-89cd-76eb3bb98685 :: false

2020-11-03 21:41:10 | [Mutex] waiting for: [received:nodes:79e6f7ae-b620-408c-8b05-c6d03d94d0f6:localhost]

2020-11-03 21:41:10 | [Mutex] received everything.

2020-11-03 21:41:10 | [Mutex] isItemNotified: received:node:79e6f7ae-b620-408c-8b05-c6d03d94d0f6:localhost:node-6605b772-334c-428f-89cd-76eb3bb98685:Node 6605b772-334c-428f-89cd-76eb3bb98685 :: false

publishItemsToNodes 0.030s
2020-11-03 21:41:08 |

2020-11-03 21:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:08 | ------------------------------------

2020-11-03 21:41:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "entry": "<test>item-fb10880c-ce6e-4912-8b34-c868af44262c</test>",
    "item-id": "item-fb10880c-ce6e-4912-8b34-c868af44262c"
}

2020-11-03 21:41:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb10880c-ce6e-4912-8b34-c868af44262c"
}

2020-11-03 21:41:08 | [Mutex] received everything.

2020-11-03 21:41:08 | [Mutex] isItemNotified: published:item:notifieditem-fb10880c-ce6e-4912-8b34-c868af44262c:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-11-03 21:41:08 |

2020-11-03 21:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:08 | ------------------------------------

2020-11-03 21:41:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "item-id": "item-fb10880c-ce6e-4912-8b34-c868af44262c"
}

2020-11-03 21:41:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb10880c-ce6e-4912-8b34-c868af44262c"
}

2020-11-03 21:41:08 | [Mutex] received everything.

2020-11-03 21:41:08 | [Mutex] isItemNotified: retracted:item:notifieditem-fb10880c-ce6e-4912-8b34-c868af44262c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2020-11-03 21:41:08 |

2020-11-03 21:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:08 | ------------------------------------

2020-11-03 21:41:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "item-id": "item-fb10880c-ce6e-4912-8b34-c868af44262c"
}

2020-11-03 21:41:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "item-id": "item-fb10880c-ce6e-4912-8b34-c868af44262c",
    "item": [
        "<item id=\"item-fb10880c-ce6e-4912-8b34-c868af44262c\"><test>item-fb10880c-ce6e-4912-8b34-c868af44262c</test></item>"
    ]
}

2020-11-03 21:41:08 | [Mutex] notify: [retrieved:item:item-fb10880c-ce6e-4912-8b34-c868af44262c:payload-matches:true:localhost]

2020-11-03 21:41:08 | [Mutex] received everything.

2020-11-03 21:41:08 | [Mutex] isItemNotified: retrieved:item:item-fb10880c-ce6e-4912-8b34-c868af44262c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-11-03 21:41:08 |

2020-11-03 21:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:08 | ------------------------------------

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

2020-11-03 21:41:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-8a17370b-46ab-49b3-9d0b-2e85ee7f50f7",
        "test",
        "node-6605b772-334c-428f-89cd-76eb3bb98685"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-03 21:41:08 |

2020-11-03 21:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:08 | ------------------------------------

2020-11-03 21:41:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6605b772-334c-428f-89cd-76eb3bb98685)"
}

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

subscribeNodes 1.013s
2020-11-03 21:41:07 |

2020-11-03 21:41:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:07 | ------------------------------------

2020-11-03 21:41:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-03 21:41:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2020-11-03 21:41:08 |

2020-11-03 21:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:41:08 | ------------------------------------

2020-11-03 21:41:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6605b772-334c-428f-89cd-76eb3bb98685",
    "jids": [
        "admin@test-domain.com"
    ]
}

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