Generated by TestNG with ReportNG at 22:44 PDT on Monday 13 September 2021
root@b2c2a8eba6e6 / 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.059s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2021-09-13 23:01:28 |

2021-09-13 23:01:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:28 | ------------------------------------

2021-09-13 23:01:28 | [Mutex] waiting for: [configured:node:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:node-cf74f620-6e61-4efd-837f-8fa753930760]

2021-09-13 23:01:28 | [Mutex] received everything.

2021-09-13 23:01:28 | [Mutex] isItemNotified: configured:node:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:node-cf74f620-6e61-4efd-837f-8fa753930760 :: true

2021-09-13 23:01:29 | [Mutex] waiting for: [received:nodes:7b2929d3-79a8-4274-9e7d-ed66f19d2f16:localhost]

2021-09-13 23:01:29 | [Mutex] received everything.

2021-09-13 23:01:29 | [Mutex] isItemNotified: received:node:7b2929d3-79a8-4274-9e7d-ed66f19d2f16:localhost:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:Node 5d67fbea-c1ae-4d00-9aec-fdc9a05c6728 :: true

2021-09-13 23:01:29 | [Mutex] waiting for: [received:nodes:e86b86f0-6d49-4d95-8a7f-2e34fdb0e6a7:localhost]

2021-09-13 23:01:29 | [Mutex] received everything.

2021-09-13 23:01:29 | [Mutex] isItemNotified: received:node:e86b86f0-6d49-4d95-8a7f-2e34fdb0e6a7:localhost:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:Node 5d67fbea-c1ae-4d00-9aec-fdc9a05c6728 :: false

createNodes 1.665s
2021-09-13 23:01:25 |

2021-09-13 23:01:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:25 | ------------------------------------

2021-09-13 23:01:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "pubsub#title": "Node 5d67fbea-c1ae-4d00-9aec-fdc9a05c6728"
}

2021-09-13 23:01:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-13 23:01:27 | [Mutex] waiting for: [received:nodes:721caed5-dab4-45a2-8002-429574a68a84:localhost]

2021-09-13 23:01:27 | [Mutex] waiting for: [received:nodes:721caed5-dab4-45a2-8002-429574a68a84:localhost]

2021-09-13 23:01:27 | [Mutex] received everything.

2021-09-13 23:01:27 | [Mutex] isItemNotified: received:node:721caed5-dab4-45a2-8002-429574a68a84:localhost:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:Node 5d67fbea-c1ae-4d00-9aec-fdc9a05c6728 :: true

createSubnodes 1.023s
2021-09-13 23:01:27 |

2021-09-13 23:01:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:27 | ------------------------------------

2021-09-13 23:01:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cf74f620-6e61-4efd-837f-8fa753930760",
    "pubsub#title": "Node cf74f620-6e61-4efd-837f-8fa753930760"
}

2021-09-13 23:01:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-13 23:01:28 | [Mutex] waiting for: [received:nodes:def421fe-e510-4a12-869c-7690edddb5dd:localhost]

2021-09-13 23:01:28 | [Mutex] received everything.

2021-09-13 23:01:28 | [Mutex] isItemNotified: received:node:def421fe-e510-4a12-869c-7690edddb5dd:localhost:node-cf74f620-6e61-4efd-837f-8fa753930760:Node cf74f620-6e61-4efd-837f-8fa753930760 :: true

deleteNodes 1.024s
2021-09-13 23:01:33 |

2021-09-13 23:01:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:33 | ------------------------------------

2021-09-13 23:01:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cf74f620-6e61-4efd-837f-8fa753930760"
}

2021-09-13 23:01:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-13 23:01:34 | [Mutex] waiting for: [received:nodes:8764f041-997d-47da-b083-fac7b38541ae:localhost]

2021-09-13 23:01:34 | [Mutex] waiting for: [received:nodes:8764f041-997d-47da-b083-fac7b38541ae:localhost]

2021-09-13 23:01:34 | [Mutex] received everything.

2021-09-13 23:01:34 | [Mutex] isItemNotified: received:node:8764f041-997d-47da-b083-fac7b38541ae:localhost:node-cf74f620-6e61-4efd-837f-8fa753930760:Node cf74f620-6e61-4efd-837f-8fa753930760 :: false

deleteSubnodes 1.035s
2021-09-13 23:01:32 |

2021-09-13 23:01:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:32 | ------------------------------------

2021-09-13 23:01:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728"
}

2021-09-13 23:01:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-13 23:01:33 | [Mutex] waiting for: [received:nodes:fc60ae6a-1b62-40d7-9e1e-b1c22eb1c450:localhost]

2021-09-13 23:01:33 | [Mutex] received everything.

2021-09-13 23:01:33 | [Mutex] isItemNotified: received:node:fc60ae6a-1b62-40d7-9e1e-b1c22eb1c450:localhost:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:Node 5d67fbea-c1ae-4d00-9aec-fdc9a05c6728 :: false

2021-09-13 23:01:33 | [Mutex] waiting for: [received:nodes:e87a85ce-ffbd-4992-a6fc-41d6cd2e915b:localhost]

2021-09-13 23:01:33 | [Mutex] received everything.

2021-09-13 23:01:33 | [Mutex] isItemNotified: received:node:e87a85ce-ffbd-4992-a6fc-41d6cd2e915b:localhost:node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728:Node 5d67fbea-c1ae-4d00-9aec-fdc9a05c6728 :: false

publishItemsToNodes 0.036s
2021-09-13 23:01:30 |

2021-09-13 23:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:30 | ------------------------------------

2021-09-13 23:01:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "entry": "<test>item-1c1bf787-7749-4268-aa4a-533a4c68b942</test>",
    "item-id": "item-1c1bf787-7749-4268-aa4a-533a4c68b942"
}

2021-09-13 23:01:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1c1bf787-7749-4268-aa4a-533a4c68b942"
}

2021-09-13 23:01:30 | [Mutex] waiting for: [published:item:notifieditem-1c1bf787-7749-4268-aa4a-533a4c68b942:admin@test-domain.com]

2021-09-13 23:01:30 | [Mutex] received everything.

2021-09-13 23:01:30 | [Mutex] isItemNotified: published:item:notifieditem-1c1bf787-7749-4268-aa4a-533a4c68b942:admin@test-domain.com :: true

retractItemsFromNodes 0.099s
2021-09-13 23:01:31 |

2021-09-13 23:01:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:31 | ------------------------------------

2021-09-13 23:01:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "item-id": "item-1c1bf787-7749-4268-aa4a-533a4c68b942"
}

2021-09-13 23:01:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1c1bf787-7749-4268-aa4a-533a4c68b942"
}

2021-09-13 23:01:31 | [Mutex] received everything.

2021-09-13 23:01:31 | [Mutex] isItemNotified: retracted:item:notifieditem-1c1bf787-7749-4268-aa4a-533a4c68b942:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2021-09-13 23:01:30 |

2021-09-13 23:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:30 | ------------------------------------

2021-09-13 23:01:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "item-id": "item-1c1bf787-7749-4268-aa4a-533a4c68b942"
}

2021-09-13 23:01:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "item-id": "item-1c1bf787-7749-4268-aa4a-533a4c68b942",
    "item": [
        "<item id=\"item-1c1bf787-7749-4268-aa4a-533a4c68b942\"><test>item-1c1bf787-7749-4268-aa4a-533a4c68b942</test></item>"
    ]
}

2021-09-13 23:01:30 | [Mutex] notify: [retrieved:item:item-1c1bf787-7749-4268-aa4a-533a4c68b942:payload-matches:true:localhost]

2021-09-13 23:01:30 | [Mutex] received everything.

2021-09-13 23:01:30 | [Mutex] isItemNotified: retrieved:item:item-1c1bf787-7749-4268-aa4a-533a4c68b942:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-09-13 23:01:30 |

2021-09-13 23:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:30 | ------------------------------------

2021-09-13 23:01:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-13 23:01:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cf74f620-6e61-4efd-837f-8fa753930760",
        "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-09-13 23:01:30 |

2021-09-13 23:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:30 | ------------------------------------

2021-09-13 23:01:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728)"
}

2021-09-13 23:01:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-09-13 23:01:29 |

2021-09-13 23:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:29 | ------------------------------------

2021-09-13 23:01:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-13 23:01:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2021-09-13 23:01:31 |

2021-09-13 23:01:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 23:01:31 | ------------------------------------

2021-09-13 23:01:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5d67fbea-c1ae-4d00-9aec-fdc9a05c6728",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-13 23:01:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}