Generated by TestNG with ReportNG at 22:13 PDT on Thursday 17 June 2021
root@f29ef40080b5 / 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.037s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.118s
2021-06-17 22:28:24 |

2021-06-17 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:24 | ------------------------------------

2021-06-17 22:28:24 | [Mutex] waiting for: [configured:node:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:node-8c21d294-a571-4c99-94be-06e4f01940c7]

2021-06-17 22:28:24 | [Mutex] received everything.

2021-06-17 22:28:24 | [Mutex] isItemNotified: configured:node:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:node-8c21d294-a571-4c99-94be-06e4f01940c7 :: true

2021-06-17 22:28:25 | [Mutex] waiting for: [received:nodes:c3540b7d-4c8b-4053-a1aa-65e90e8fb4bc:localhost]

2021-06-17 22:28:25 | [Mutex] received everything.

2021-06-17 22:28:25 | [Mutex] isItemNotified: received:node:c3540b7d-4c8b-4053-a1aa-65e90e8fb4bc:localhost:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:Node 4a56f56d-7604-44e1-b7b7-68f517dffb5a :: true

2021-06-17 22:28:25 | [Mutex] waiting for: [received:nodes:d30e1677-594d-49c8-85b0-505c42ff2691:localhost]

2021-06-17 22:28:25 | [Mutex] waiting for: [received:nodes:d30e1677-594d-49c8-85b0-505c42ff2691:localhost]

2021-06-17 22:28:25 | [Mutex] received everything.

2021-06-17 22:28:25 | [Mutex] isItemNotified: received:node:d30e1677-594d-49c8-85b0-505c42ff2691:localhost:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:Node 4a56f56d-7604-44e1-b7b7-68f517dffb5a :: false

createNodes 1.663s
2021-06-17 22:28:22 |

2021-06-17 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:22 | ------------------------------------

2021-06-17 22:28:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "pubsub#title": "Node 4a56f56d-7604-44e1-b7b7-68f517dffb5a"
}

2021-06-17 22:28:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:28:23 | [Mutex] waiting for: [received:nodes:9188ee45-a314-4fd4-b7dc-a5b8995f89ee:localhost]

2021-06-17 22:28:23 | [Mutex] received everything.

2021-06-17 22:28:23 | [Mutex] isItemNotified: received:node:9188ee45-a314-4fd4-b7dc-a5b8995f89ee:localhost:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:Node 4a56f56d-7604-44e1-b7b7-68f517dffb5a :: true

createSubnodes 1.029s
2021-06-17 22:28:23 |

2021-06-17 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:23 | ------------------------------------

2021-06-17 22:28:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8c21d294-a571-4c99-94be-06e4f01940c7",
    "pubsub#title": "Node 8c21d294-a571-4c99-94be-06e4f01940c7"
}

2021-06-17 22:28:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:28:24 | [Mutex] waiting for: [received:nodes:2f014ea7-bf9d-42de-afb8-194a7782a811:localhost]

2021-06-17 22:28:24 | [Mutex] received everything.

2021-06-17 22:28:24 | [Mutex] isItemNotified: received:node:2f014ea7-bf9d-42de-afb8-194a7782a811:localhost:node-8c21d294-a571-4c99-94be-06e4f01940c7:Node 8c21d294-a571-4c99-94be-06e4f01940c7 :: true

deleteNodes 1.019s
2021-06-17 22:28:29 |

2021-06-17 22:28:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:29 | ------------------------------------

2021-06-17 22:28:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8c21d294-a571-4c99-94be-06e4f01940c7"
}

2021-06-17 22:28:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:28:30 | [Mutex] waiting for: [received:nodes:2a550057-067e-4bad-a176-d0462352e4ce:localhost]

2021-06-17 22:28:30 | [Mutex] received everything.

2021-06-17 22:28:30 | [Mutex] isItemNotified: received:node:2a550057-067e-4bad-a176-d0462352e4ce:localhost:node-8c21d294-a571-4c99-94be-06e4f01940c7:Node 8c21d294-a571-4c99-94be-06e4f01940c7 :: false

deleteSubnodes 1.027s
2021-06-17 22:28:28 |

2021-06-17 22:28:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:28 | ------------------------------------

2021-06-17 22:28:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a"
}

2021-06-17 22:28:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-17 22:28:29 | [Mutex] waiting for: [received:nodes:86d1e9ce-6628-4d91-9dae-f7dc9569ae52:localhost]

2021-06-17 22:28:29 | [Mutex] received everything.

2021-06-17 22:28:29 | [Mutex] isItemNotified: received:node:86d1e9ce-6628-4d91-9dae-f7dc9569ae52:localhost:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:Node 4a56f56d-7604-44e1-b7b7-68f517dffb5a :: false

2021-06-17 22:28:29 | [Mutex] waiting for: [received:nodes:abf25ae7-f241-4e3a-9c50-03902f1bc59b:localhost]

2021-06-17 22:28:29 | [Mutex] received everything.

2021-06-17 22:28:29 | [Mutex] isItemNotified: received:node:abf25ae7-f241-4e3a-9c50-03902f1bc59b:localhost:node-4a56f56d-7604-44e1-b7b7-68f517dffb5a:Node 4a56f56d-7604-44e1-b7b7-68f517dffb5a :: false

publishItemsToNodes 0.131s
2021-06-17 22:28:26 |

2021-06-17 22:28:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:26 | ------------------------------------

2021-06-17 22:28:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "entry": "<test>item-82a50a33-adc0-4ef0-8156-e981c88287fc</test>",
    "item-id": "item-82a50a33-adc0-4ef0-8156-e981c88287fc"
}

2021-06-17 22:28:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-82a50a33-adc0-4ef0-8156-e981c88287fc"
}

2021-06-17 22:28:26 | [Mutex] waiting for: [published:item:notifieditem-82a50a33-adc0-4ef0-8156-e981c88287fc:admin@test-domain.com]

2021-06-17 22:28:27 | [Mutex] received everything.

2021-06-17 22:28:27 | [Mutex] isItemNotified: published:item:notifieditem-82a50a33-adc0-4ef0-8156-e981c88287fc:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-06-17 22:28:27 |

2021-06-17 22:28:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:27 | ------------------------------------

2021-06-17 22:28:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "item-id": "item-82a50a33-adc0-4ef0-8156-e981c88287fc"
}

2021-06-17 22:28:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-82a50a33-adc0-4ef0-8156-e981c88287fc"
}

2021-06-17 22:28:27 | [Mutex] received everything.

2021-06-17 22:28:27 | [Mutex] isItemNotified: retracted:item:notifieditem-82a50a33-adc0-4ef0-8156-e981c88287fc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2021-06-17 22:28:27 |

2021-06-17 22:28:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:27 | ------------------------------------

2021-06-17 22:28:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "item-id": "item-82a50a33-adc0-4ef0-8156-e981c88287fc"
}

2021-06-17 22:28:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "item-id": "item-82a50a33-adc0-4ef0-8156-e981c88287fc",
    "item": [
        "<item id=\"item-82a50a33-adc0-4ef0-8156-e981c88287fc\"><test>item-82a50a33-adc0-4ef0-8156-e981c88287fc</test></item>"
    ]
}

2021-06-17 22:28:27 | [Mutex] notify: [retrieved:item:item-82a50a33-adc0-4ef0-8156-e981c88287fc:payload-matches:true:localhost]

2021-06-17 22:28:27 | [Mutex] received everything.

2021-06-17 22:28:27 | [Mutex] isItemNotified: retrieved:item:item-82a50a33-adc0-4ef0-8156-e981c88287fc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-06-17 22:28:27 |

2021-06-17 22:28:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:27 | ------------------------------------

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

2021-06-17 22:28:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8c21d294-a571-4c99-94be-06e4f01940c7",
        "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-06-17 22:28:27 |

2021-06-17 22:28:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:27 | ------------------------------------

2021-06-17 22:28:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4a56f56d-7604-44e1-b7b7-68f517dffb5a)"
}

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

subscribeNodes 1.012s
2021-06-17 22:28:25 |

2021-06-17 22:28:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:25 | ------------------------------------

2021-06-17 22:28:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-17 22:28:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-06-17 22:28:27 |

2021-06-17 22:28:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-17 22:28:27 | ------------------------------------

2021-06-17 22:28:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4a56f56d-7604-44e1-b7b7-68f517dffb5a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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