Generated by TestNG with ReportNG at 01:25 PDT on Friday 18 September 2020
root@62b09120cfea / 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 : 8.828s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2020-09-18 01:40:45 |

2020-09-18 01:40:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:45 | ------------------------------------

2020-09-18 01:40:45 | [Mutex] waiting for: [configured:node:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045]

2020-09-18 01:40:45 | [Mutex] received everything.

2020-09-18 01:40:45 | [Mutex] isItemNotified: configured:node:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045 :: true

2020-09-18 01:40:46 | [Mutex] waiting for: [received:nodes:f73d98b0-6ea8-4313-b518-76277c1f3452:localhost]

2020-09-18 01:40:46 | [Mutex] received everything.

2020-09-18 01:40:46 | [Mutex] isItemNotified: received:node:f73d98b0-6ea8-4313-b518-76277c1f3452:localhost:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:Node d68f4a09-abcf-43cb-9524-e0db5786bf73 :: true

2020-09-18 01:40:46 | [Mutex] waiting for: [received:nodes:c14b682d-83a3-4c8f-8ee4-8e79e5685d6f:localhost]

2020-09-18 01:40:46 | [Mutex] received everything.

2020-09-18 01:40:46 | [Mutex] isItemNotified: received:node:c14b682d-83a3-4c8f-8ee4-8e79e5685d6f:localhost:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:Node d68f4a09-abcf-43cb-9524-e0db5786bf73 :: false

createNodes 1.585s
2020-09-18 01:40:42 |

2020-09-18 01:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:42 | ------------------------------------

2020-09-18 01:40:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "pubsub#title": "Node d68f4a09-abcf-43cb-9524-e0db5786bf73"
}

2020-09-18 01:40:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:40:44 | [Mutex] waiting for: [received:nodes:529cd936-0769-4f1a-ab8a-4124deb6b03a:localhost]

2020-09-18 01:40:44 | [Mutex] waiting for: [received:nodes:529cd936-0769-4f1a-ab8a-4124deb6b03a:localhost]

2020-09-18 01:40:44 | [Mutex] received everything.

2020-09-18 01:40:44 | [Mutex] isItemNotified: received:node:529cd936-0769-4f1a-ab8a-4124deb6b03a:localhost:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:Node d68f4a09-abcf-43cb-9524-e0db5786bf73 :: true

createSubnodes 1.025s
2020-09-18 01:40:44 |

2020-09-18 01:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:44 | ------------------------------------

2020-09-18 01:40:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045",
    "pubsub#title": "Node f6f1e35a-93af-4e8a-9461-fa9c61cbf045"
}

2020-09-18 01:40:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:40:45 | [Mutex] waiting for: [received:nodes:4b1ea06a-af70-488f-ad3a-432571312779:localhost]

2020-09-18 01:40:45 | [Mutex] received everything.

2020-09-18 01:40:45 | [Mutex] isItemNotified: received:node:4b1ea06a-af70-488f-ad3a-432571312779:localhost:node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045:Node f6f1e35a-93af-4e8a-9461-fa9c61cbf045 :: true

deleteNodes 1.019s
2020-09-18 01:40:49 |

2020-09-18 01:40:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:49 | ------------------------------------

2020-09-18 01:40:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045"
}

2020-09-18 01:40:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:40:50 | [Mutex] waiting for: [received:nodes:8cd28fe3-4c46-4321-97f6-d323a2523e45:localhost]

2020-09-18 01:40:50 | [Mutex] received everything.

2020-09-18 01:40:50 | [Mutex] isItemNotified: received:node:8cd28fe3-4c46-4321-97f6-d323a2523e45:localhost:node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045:Node f6f1e35a-93af-4e8a-9461-fa9c61cbf045 :: false

deleteSubnodes 1.025s
2020-09-18 01:40:48 |

2020-09-18 01:40:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:48 | ------------------------------------

2020-09-18 01:40:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73"
}

2020-09-18 01:40:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-18 01:40:49 | [Mutex] waiting for: [received:nodes:22894186-c814-4bc4-bd61-a144ba6d6de3:localhost]

2020-09-18 01:40:49 | [Mutex] waiting for: [received:nodes:22894186-c814-4bc4-bd61-a144ba6d6de3:localhost]

2020-09-18 01:40:49 | [Mutex] waiting for: [received:nodes:22894186-c814-4bc4-bd61-a144ba6d6de3:localhost]

2020-09-18 01:40:49 | [Mutex] received everything.

2020-09-18 01:40:49 | [Mutex] isItemNotified: received:node:22894186-c814-4bc4-bd61-a144ba6d6de3:localhost:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:Node d68f4a09-abcf-43cb-9524-e0db5786bf73 :: false

2020-09-18 01:40:49 | [Mutex] waiting for: [received:nodes:934a6617-aba7-456d-8500-c1a4223a4180:localhost]

2020-09-18 01:40:49 | [Mutex] received everything.

2020-09-18 01:40:49 | [Mutex] isItemNotified: received:node:934a6617-aba7-456d-8500-c1a4223a4180:localhost:node-d68f4a09-abcf-43cb-9524-e0db5786bf73:Node d68f4a09-abcf-43cb-9524-e0db5786bf73 :: false

publishItemsToNodes 0.061s
2020-09-18 01:40:47 |

2020-09-18 01:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:47 | ------------------------------------

2020-09-18 01:40:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "entry": "<test>item-8474cde0-90fe-45dc-88a1-74801335e71c</test>",
    "item-id": "item-8474cde0-90fe-45dc-88a1-74801335e71c"
}

2020-09-18 01:40:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8474cde0-90fe-45dc-88a1-74801335e71c"
}

2020-09-18 01:40:47 | [Mutex] waiting for: [published:item:notifieditem-8474cde0-90fe-45dc-88a1-74801335e71c:admin@test-domain.com]

2020-09-18 01:40:47 | [Mutex] received everything.

2020-09-18 01:40:47 | [Mutex] isItemNotified: published:item:notifieditem-8474cde0-90fe-45dc-88a1-74801335e71c:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-09-18 01:40:47 |

2020-09-18 01:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:47 | ------------------------------------

2020-09-18 01:40:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "item-id": "item-8474cde0-90fe-45dc-88a1-74801335e71c"
}

2020-09-18 01:40:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8474cde0-90fe-45dc-88a1-74801335e71c"
}

2020-09-18 01:40:47 | [Mutex] received everything.

2020-09-18 01:40:47 | [Mutex] isItemNotified: retracted:item:notifieditem-8474cde0-90fe-45dc-88a1-74801335e71c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2020-09-18 01:40:47 |

2020-09-18 01:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:47 | ------------------------------------

2020-09-18 01:40:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "item-id": "item-8474cde0-90fe-45dc-88a1-74801335e71c"
}

2020-09-18 01:40:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "item-id": "item-8474cde0-90fe-45dc-88a1-74801335e71c",
    "item": [
        "<item id=\"item-8474cde0-90fe-45dc-88a1-74801335e71c\"><test>item-8474cde0-90fe-45dc-88a1-74801335e71c</test></item>"
    ]
}

2020-09-18 01:40:47 | [Mutex] notify: [retrieved:item:item-8474cde0-90fe-45dc-88a1-74801335e71c:payload-matches:true:localhost]

2020-09-18 01:40:47 | [Mutex] received everything.

2020-09-18 01:40:47 | [Mutex] isItemNotified: retrieved:item:item-8474cde0-90fe-45dc-88a1-74801335e71c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-18 01:40:47 |

2020-09-18 01:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:47 | ------------------------------------

2020-09-18 01:40:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-18 01:40:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
        "node-f6f1e35a-93af-4e8a-9461-fa9c61cbf045"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-18 01:40:47 |

2020-09-18 01:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:47 | ------------------------------------

2020-09-18 01:40:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d68f4a09-abcf-43cb-9524-e0db5786bf73)"
}

2020-09-18 01:40:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2020-09-18 01:40:46 |

2020-09-18 01:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:46 | ------------------------------------

2020-09-18 01:40:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 01:40:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-18 01:40:47 |

2020-09-18 01:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-18 01:40:47 | ------------------------------------

2020-09-18 01:40:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d68f4a09-abcf-43cb-9524-e0db5786bf73",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-18 01:40:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}