Generated by TestNG with ReportNG at 22:22 PDT on Thursday 25 March 2021
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.140s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.112s
2021-03-25 22:38:52 |

2021-03-25 22:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:52 | ------------------------------------

2021-03-25 22:38:52 | [Mutex] waiting for: [configured:node:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:node-1523dc8a-e26f-47f1-bc1d-61560b952f2f]

2021-03-25 22:38:52 | [Mutex] received everything.

2021-03-25 22:38:52 | [Mutex] isItemNotified: configured:node:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:node-1523dc8a-e26f-47f1-bc1d-61560b952f2f :: true

2021-03-25 22:38:53 | [Mutex] waiting for: [received:nodes:a7229832-ddee-4c75-84b2-bc4baede7a81:localhost]

2021-03-25 22:38:53 | [Mutex] received everything.

2021-03-25 22:38:53 | [Mutex] isItemNotified: received:node:a7229832-ddee-4c75-84b2-bc4baede7a81:localhost:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:Node c2e2dd8a-4b30-42e6-ab93-cfd02d31302b :: true

2021-03-25 22:38:53 | [Mutex] waiting for: [received:nodes:18afdb09-54c5-495e-96a5-6016ebba7003:localhost]

2021-03-25 22:38:53 | [Mutex] waiting for: [received:nodes:18afdb09-54c5-495e-96a5-6016ebba7003:localhost]

2021-03-25 22:38:53 | [Mutex] received everything.

2021-03-25 22:38:53 | [Mutex] isItemNotified: received:node:18afdb09-54c5-495e-96a5-6016ebba7003:localhost:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:Node c2e2dd8a-4b30-42e6-ab93-cfd02d31302b :: false

createNodes 1.602s
2021-03-25 22:38:49 |

2021-03-25 22:38:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:49 | ------------------------------------

2021-03-25 22:38:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "pubsub#title": "Node c2e2dd8a-4b30-42e6-ab93-cfd02d31302b"
}

2021-03-25 22:38:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:38:51 | [Mutex] waiting for: [received:nodes:7b5c6c0d-99dc-4cff-ad19-86c4105123e3:localhost]

2021-03-25 22:38:51 | [Mutex] received everything.

2021-03-25 22:38:51 | [Mutex] isItemNotified: received:node:7b5c6c0d-99dc-4cff-ad19-86c4105123e3:localhost:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:Node c2e2dd8a-4b30-42e6-ab93-cfd02d31302b :: true

createSubnodes 1.024s
2021-03-25 22:38:51 |

2021-03-25 22:38:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:51 | ------------------------------------

2021-03-25 22:38:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1523dc8a-e26f-47f1-bc1d-61560b952f2f",
    "pubsub#title": "Node 1523dc8a-e26f-47f1-bc1d-61560b952f2f"
}

2021-03-25 22:38:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:38:52 | [Mutex] waiting for: [received:nodes:c316de0e-c70a-4c28-936d-110ae60c4a95:localhost]

2021-03-25 22:38:52 | [Mutex] waiting for: [received:nodes:c316de0e-c70a-4c28-936d-110ae60c4a95:localhost]

2021-03-25 22:38:52 | [Mutex] received everything.

2021-03-25 22:38:52 | [Mutex] isItemNotified: received:node:c316de0e-c70a-4c28-936d-110ae60c4a95:localhost:node-1523dc8a-e26f-47f1-bc1d-61560b952f2f:Node 1523dc8a-e26f-47f1-bc1d-61560b952f2f :: true

deleteNodes 1.020s
2021-03-25 22:38:57 |

2021-03-25 22:38:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:57 | ------------------------------------

2021-03-25 22:38:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1523dc8a-e26f-47f1-bc1d-61560b952f2f"
}

2021-03-25 22:38:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:38:58 | [Mutex] waiting for: [received:nodes:e604ef9a-34d4-4741-8f01-cf07dd2071bb:localhost]

2021-03-25 22:38:58 | [Mutex] waiting for: [received:nodes:e604ef9a-34d4-4741-8f01-cf07dd2071bb:localhost]

2021-03-25 22:38:58 | [Mutex] received everything.

2021-03-25 22:38:58 | [Mutex] isItemNotified: received:node:e604ef9a-34d4-4741-8f01-cf07dd2071bb:localhost:node-1523dc8a-e26f-47f1-bc1d-61560b952f2f:Node 1523dc8a-e26f-47f1-bc1d-61560b952f2f :: false

deleteSubnodes 1.027s
2021-03-25 22:38:56 |

2021-03-25 22:38:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:56 | ------------------------------------

2021-03-25 22:38:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b"
}

2021-03-25 22:38:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-25 22:38:57 | [Mutex] waiting for: [received:nodes:23342848-f267-4e42-9593-0ee92de11856:localhost]

2021-03-25 22:38:57 | [Mutex] received everything.

2021-03-25 22:38:57 | [Mutex] isItemNotified: received:node:23342848-f267-4e42-9593-0ee92de11856:localhost:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:Node c2e2dd8a-4b30-42e6-ab93-cfd02d31302b :: false

2021-03-25 22:38:57 | [Mutex] waiting for: [received:nodes:d68bfdb7-0881-4e63-9216-3e6801b9f169:localhost]

2021-03-25 22:38:57 | [Mutex] received everything.

2021-03-25 22:38:57 | [Mutex] isItemNotified: received:node:d68bfdb7-0881-4e63-9216-3e6801b9f169:localhost:node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b:Node c2e2dd8a-4b30-42e6-ab93-cfd02d31302b :: false

publishItemsToNodes 0.048s
2021-03-25 22:38:54 |

2021-03-25 22:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:54 | ------------------------------------

2021-03-25 22:38:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "entry": "<test>item-ad957123-1b52-46cd-ae56-16562c150334</test>",
    "item-id": "item-ad957123-1b52-46cd-ae56-16562c150334"
}

2021-03-25 22:38:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ad957123-1b52-46cd-ae56-16562c150334"
}

2021-03-25 22:38:54 | [Mutex] waiting for: [published:item:notifieditem-ad957123-1b52-46cd-ae56-16562c150334:admin@test-domain.com]

2021-03-25 22:38:54 | [Mutex] received everything.

2021-03-25 22:38:54 | [Mutex] isItemNotified: published:item:notifieditem-ad957123-1b52-46cd-ae56-16562c150334:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2021-03-25 22:38:54 |

2021-03-25 22:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:54 | ------------------------------------

2021-03-25 22:38:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "item-id": "item-ad957123-1b52-46cd-ae56-16562c150334"
}

2021-03-25 22:38:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ad957123-1b52-46cd-ae56-16562c150334"
}

2021-03-25 22:38:54 | [Mutex] received everything.

2021-03-25 22:38:54 | [Mutex] isItemNotified: retracted:item:notifieditem-ad957123-1b52-46cd-ae56-16562c150334:admin@test-domain.com :: true

retrieveItemsFromNodes 0.041s
2021-03-25 22:38:54 |

2021-03-25 22:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:54 | ------------------------------------

2021-03-25 22:38:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "item-id": "item-ad957123-1b52-46cd-ae56-16562c150334"
}

2021-03-25 22:38:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "item-id": "item-ad957123-1b52-46cd-ae56-16562c150334",
    "item": [
        "<item id=\"item-ad957123-1b52-46cd-ae56-16562c150334\"><test>item-ad957123-1b52-46cd-ae56-16562c150334</test></item>"
    ]
}

2021-03-25 22:38:54 | [Mutex] notify: [retrieved:item:item-ad957123-1b52-46cd-ae56-16562c150334:payload-matches:true:localhost]

2021-03-25 22:38:54 | [Mutex] received everything.

2021-03-25 22:38:54 | [Mutex] isItemNotified: retrieved:item:item-ad957123-1b52-46cd-ae56-16562c150334:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.110s
2021-03-25 22:38:54 |

2021-03-25 22:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:54 | ------------------------------------

2021-03-25 22:38:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-25 22:38:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
        "test",
        "node-1523dc8a-e26f-47f1-bc1d-61560b952f2f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2021-03-25 22:38:54 |

2021-03-25 22:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:54 | ------------------------------------

2021-03-25 22:38:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b)"
}

2021-03-25 22:38:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-03-25 22:38:53 |

2021-03-25 22:38:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:53 | ------------------------------------

2021-03-25 22:38:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2021-03-25 22:38:54 |

2021-03-25 22:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:38:54 | ------------------------------------

2021-03-25 22:38:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c2e2dd8a-4b30-42e6-ab93-cfd02d31302b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-25 22:38:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}