Generated by TestNG with ReportNG at 21:15 PST on Wednesday 01 February 2023
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.628s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.085s
2023-02-01 21:32:00 |

2023-02-01 21:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:00 | ------------------------------------

2023-02-01 21:32:00 | [Mutex] waiting for: [configured:node:node-517d27ab-57fc-498b-b1e5-da2f6008d771:node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b]

2023-02-01 21:32:00 | [Mutex] received everything.

2023-02-01 21:32:00 | [Mutex] isItemNotified: configured:node:node-517d27ab-57fc-498b-b1e5-da2f6008d771:node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b :: true

2023-02-01 21:32:01 | [Mutex] waiting for: [received:nodes:74d32720-2a52-4fe7-b9bd-17d37d486426:localhost]

2023-02-01 21:32:01 | [Mutex] received everything.

2023-02-01 21:32:01 | [Mutex] isItemNotified: received:node:74d32720-2a52-4fe7-b9bd-17d37d486426:localhost:node-517d27ab-57fc-498b-b1e5-da2f6008d771:Node 517d27ab-57fc-498b-b1e5-da2f6008d771 :: true

2023-02-01 21:32:01 | [Mutex] waiting for: [received:nodes:cab189f5-d57a-4229-b766-cd2593bc5f11:localhost]

2023-02-01 21:32:01 | [Mutex] waiting for: [received:nodes:cab189f5-d57a-4229-b766-cd2593bc5f11:localhost]

2023-02-01 21:32:01 | [Mutex] waiting for: [received:nodes:cab189f5-d57a-4229-b766-cd2593bc5f11:localhost]

2023-02-01 21:32:01 | [Mutex] waiting for: [received:nodes:cab189f5-d57a-4229-b766-cd2593bc5f11:localhost]

2023-02-01 21:32:01 | [Mutex] received everything.

2023-02-01 21:32:01 | [Mutex] isItemNotified: received:node:cab189f5-d57a-4229-b766-cd2593bc5f11:localhost:node-517d27ab-57fc-498b-b1e5-da2f6008d771:Node 517d27ab-57fc-498b-b1e5-da2f6008d771 :: false

createNodes 1.611s
2023-02-01 21:31:57 |

2023-02-01 21:31:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:31:57 | ------------------------------------

2023-02-01 21:31:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "pubsub#title": "Node 517d27ab-57fc-498b-b1e5-da2f6008d771"
}

2023-02-01 21:31:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:31:59 | [Mutex] waiting for: [received:nodes:d474481e-cac5-45f3-afdd-0fcdabd16e5d:localhost]

2023-02-01 21:31:59 | [Mutex] waiting for: [received:nodes:d474481e-cac5-45f3-afdd-0fcdabd16e5d:localhost]

2023-02-01 21:31:59 | [Mutex] waiting for: [received:nodes:d474481e-cac5-45f3-afdd-0fcdabd16e5d:localhost]

2023-02-01 21:31:59 | [Mutex] received everything.

2023-02-01 21:31:59 | [Mutex] isItemNotified: received:node:d474481e-cac5-45f3-afdd-0fcdabd16e5d:localhost:node-517d27ab-57fc-498b-b1e5-da2f6008d771:Node 517d27ab-57fc-498b-b1e5-da2f6008d771 :: true

createSubnodes 1.024s
2023-02-01 21:31:59 |

2023-02-01 21:31:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:31:59 | ------------------------------------

2023-02-01 21:31:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b",
    "pubsub#title": "Node cce5c0e8-2693-4cb8-b5be-491c2aa6db1b"
}

2023-02-01 21:31:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:00 | [Mutex] waiting for: [received:nodes:8691800f-0f3f-4a03-bfe7-ec145cb5606e:localhost]

2023-02-01 21:32:00 | [Mutex] waiting for: [received:nodes:8691800f-0f3f-4a03-bfe7-ec145cb5606e:localhost]

2023-02-01 21:32:00 | [Mutex] waiting for: [received:nodes:8691800f-0f3f-4a03-bfe7-ec145cb5606e:localhost]

2023-02-01 21:32:00 | [Mutex] waiting for: [received:nodes:8691800f-0f3f-4a03-bfe7-ec145cb5606e:localhost]

2023-02-01 21:32:00 | [Mutex] received everything.

2023-02-01 21:32:00 | [Mutex] isItemNotified: received:node:8691800f-0f3f-4a03-bfe7-ec145cb5606e:localhost:node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b:Node cce5c0e8-2693-4cb8-b5be-491c2aa6db1b :: true

deleteNodes 1.019s
2023-02-01 21:32:04 |

2023-02-01 21:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:04 | ------------------------------------

2023-02-01 21:32:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b"
}

2023-02-01 21:32:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:05 | [Mutex] waiting for: [received:nodes:985475a9-0b06-45af-8a7c-cf071c121a88:localhost]

2023-02-01 21:32:05 | [Mutex] waiting for: [received:nodes:985475a9-0b06-45af-8a7c-cf071c121a88:localhost]

2023-02-01 21:32:05 | [Mutex] waiting for: [received:nodes:985475a9-0b06-45af-8a7c-cf071c121a88:localhost]

2023-02-01 21:32:05 | [Mutex] received everything.

2023-02-01 21:32:05 | [Mutex] isItemNotified: received:node:985475a9-0b06-45af-8a7c-cf071c121a88:localhost:node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b:Node cce5c0e8-2693-4cb8-b5be-491c2aa6db1b :: false

deleteSubnodes 1.025s
2023-02-01 21:32:03 |

2023-02-01 21:32:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:03 | ------------------------------------

2023-02-01 21:32:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771"
}

2023-02-01 21:32:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-01 21:32:04 | [Mutex] waiting for: [received:nodes:ef4ff541-beed-405d-b94c-d8f352f6ad06:localhost]

2023-02-01 21:32:04 | [Mutex] received everything.

2023-02-01 21:32:04 | [Mutex] isItemNotified: received:node:ef4ff541-beed-405d-b94c-d8f352f6ad06:localhost:node-517d27ab-57fc-498b-b1e5-da2f6008d771:Node 517d27ab-57fc-498b-b1e5-da2f6008d771 :: false

2023-02-01 21:32:04 | [Mutex] waiting for: [received:nodes:253bd341-8acb-46c7-b91f-5eb0a96695f4:localhost]

2023-02-01 21:32:04 | [Mutex] received everything.

2023-02-01 21:32:04 | [Mutex] isItemNotified: received:node:253bd341-8acb-46c7-b91f-5eb0a96695f4:localhost:node-517d27ab-57fc-498b-b1e5-da2f6008d771:Node 517d27ab-57fc-498b-b1e5-da2f6008d771 :: false

publishItemsToNodes 0.057s
2023-02-01 21:32:02 |

2023-02-01 21:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:02 | ------------------------------------

2023-02-01 21:32:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "entry": "<test>item-7853fa58-7717-41f2-b2a4-6227d073e8c4</test>",
    "item-id": "item-7853fa58-7717-41f2-b2a4-6227d073e8c4"
}

2023-02-01 21:32:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7853fa58-7717-41f2-b2a4-6227d073e8c4"
}

2023-02-01 21:32:02 | [Mutex] waiting for: [published:item:notifieditem-7853fa58-7717-41f2-b2a4-6227d073e8c4:admin@test-domain.com]

2023-02-01 21:32:02 | [Mutex] received everything.

2023-02-01 21:32:02 | [Mutex] isItemNotified: published:item:notifieditem-7853fa58-7717-41f2-b2a4-6227d073e8c4:admin@test-domain.com :: true

retractItemsFromNodes 0.101s
2023-02-01 21:32:02 |

2023-02-01 21:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:02 | ------------------------------------

2023-02-01 21:32:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "item-id": "item-7853fa58-7717-41f2-b2a4-6227d073e8c4"
}

2023-02-01 21:32:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7853fa58-7717-41f2-b2a4-6227d073e8c4"
}

2023-02-01 21:32:02 | [Mutex] received everything.

2023-02-01 21:32:02 | [Mutex] isItemNotified: retracted:item:notifieditem-7853fa58-7717-41f2-b2a4-6227d073e8c4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.033s
2023-02-01 21:32:02 |

2023-02-01 21:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:02 | ------------------------------------

2023-02-01 21:32:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "item-id": "item-7853fa58-7717-41f2-b2a4-6227d073e8c4"
}

2023-02-01 21:32:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "item-id": "item-7853fa58-7717-41f2-b2a4-6227d073e8c4",
    "item": [
        "<item id=\"item-7853fa58-7717-41f2-b2a4-6227d073e8c4\"><test>item-7853fa58-7717-41f2-b2a4-6227d073e8c4</test></item>"
    ]
}

2023-02-01 21:32:02 | [Mutex] notify: [retrieved:item:item-7853fa58-7717-41f2-b2a4-6227d073e8c4:payload-matches:true:localhost]

2023-02-01 21:32:02 | [Mutex] received everything.

2023-02-01 21:32:02 | [Mutex] isItemNotified: retrieved:item:item-7853fa58-7717-41f2-b2a4-6227d073e8c4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2023-02-01 21:32:02 |

2023-02-01 21:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:02 | ------------------------------------

2023-02-01 21:32:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-01 21:32:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-cce5c0e8-2693-4cb8-b5be-491c2aa6db1b",
        "test",
        "node-517d27ab-57fc-498b-b1e5-da2f6008d771"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-01 21:32:02 |

2023-02-01 21:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:02 | ------------------------------------

2023-02-01 21:32:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-517d27ab-57fc-498b-b1e5-da2f6008d771)"
}

2023-02-01 21:32:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2023-02-01 21:32:01 |

2023-02-01 21:32:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:01 | ------------------------------------

2023-02-01 21:32:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-01 21:32:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.011s
2023-02-01 21:32:02 |

2023-02-01 21:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-01 21:32:02 | ------------------------------------

2023-02-01 21:32:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-517d27ab-57fc-498b-b1e5-da2f6008d771",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-01 21:32:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}