Generated by TestNG with ReportNG at 22:47 PDT on Monday 22 August 2022
root@ed1b7dd8a1b3 / 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.719s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2022-08-22 23:01:37 |

2022-08-22 23:01:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:37 | ------------------------------------

2022-08-22 23:01:37 | [Mutex] waiting for: [configured:node:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f]

2022-08-22 23:01:37 | [Mutex] received everything.

2022-08-22 23:01:37 | [Mutex] isItemNotified: configured:node:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f :: true

2022-08-22 23:01:38 | [Mutex] waiting for: [received:nodes:fd74a878-5278-46d5-8073-b3a3360eb894:localhost]

2022-08-22 23:01:38 | [Mutex] received everything.

2022-08-22 23:01:38 | [Mutex] isItemNotified: received:node:fd74a878-5278-46d5-8073-b3a3360eb894:localhost:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:Node f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d :: true

2022-08-22 23:01:38 | [Mutex] waiting for: [received:nodes:53351284-0c70-4c93-a302-90a5cf323bd8:localhost]

2022-08-22 23:01:38 | [Mutex] received everything.

2022-08-22 23:01:38 | [Mutex] isItemNotified: received:node:53351284-0c70-4c93-a302-90a5cf323bd8:localhost:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:Node f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d :: false

createNodes 1.607s
2022-08-22 23:01:34 |

2022-08-22 23:01:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:34 | ------------------------------------

2022-08-22 23:01:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "pubsub#title": "Node f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d"
}

2022-08-22 23:01:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-22 23:01:36 | [Mutex] waiting for: [received:nodes:5df933b4-6a31-4655-9e7c-99353ce45400:localhost]

2022-08-22 23:01:36 | [Mutex] received everything.

2022-08-22 23:01:36 | [Mutex] isItemNotified: received:node:5df933b4-6a31-4655-9e7c-99353ce45400:localhost:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:Node f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d :: true

createSubnodes 1.020s
2022-08-22 23:01:36 |

2022-08-22 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:36 | ------------------------------------

2022-08-22 23:01:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f",
    "pubsub#title": "Node 1a14492d-b4e5-4bc7-80e4-5c72ce47518f"
}

2022-08-22 23:01:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-22 23:01:37 | [Mutex] waiting for: [received:nodes:f9631958-803c-47dd-a8e3-74ab51b1a595:localhost]

2022-08-22 23:01:37 | [Mutex] received everything.

2022-08-22 23:01:37 | [Mutex] isItemNotified: received:node:f9631958-803c-47dd-a8e3-74ab51b1a595:localhost:node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f:Node 1a14492d-b4e5-4bc7-80e4-5c72ce47518f :: true

deleteNodes 1.026s
2022-08-22 23:01:41 |

2022-08-22 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:41 | ------------------------------------

2022-08-22 23:01:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f"
}

2022-08-22 23:01:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-22 23:01:42 | [Mutex] waiting for: [received:nodes:e7f2cee6-884d-459a-b922-b792826ede77:localhost]

2022-08-22 23:01:42 | [Mutex] waiting for: [received:nodes:e7f2cee6-884d-459a-b922-b792826ede77:localhost]

2022-08-22 23:01:42 | [Mutex] received everything.

2022-08-22 23:01:42 | [Mutex] isItemNotified: received:node:e7f2cee6-884d-459a-b922-b792826ede77:localhost:node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f:Node 1a14492d-b4e5-4bc7-80e4-5c72ce47518f :: false

deleteSubnodes 1.025s
2022-08-22 23:01:40 |

2022-08-22 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:40 | ------------------------------------

2022-08-22 23:01:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d"
}

2022-08-22 23:01:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-22 23:01:41 | [Mutex] waiting for: [received:nodes:f96cc2bb-fd52-4688-9e20-25b4b5dcf0f6:localhost]

2022-08-22 23:01:41 | [Mutex] received everything.

2022-08-22 23:01:41 | [Mutex] isItemNotified: received:node:f96cc2bb-fd52-4688-9e20-25b4b5dcf0f6:localhost:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:Node f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d :: false

2022-08-22 23:01:41 | [Mutex] waiting for: [received:nodes:48115bb1-0793-4d1b-a54b-870ee4bb6767:localhost]

2022-08-22 23:01:41 | [Mutex] received everything.

2022-08-22 23:01:41 | [Mutex] isItemNotified: received:node:48115bb1-0793-4d1b-a54b-870ee4bb6767:localhost:node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d:Node f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d :: false

publishItemsToNodes 0.047s
2022-08-22 23:01:39 |

2022-08-22 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:39 | ------------------------------------

2022-08-22 23:01:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "entry": "<test>item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f</test>",
    "item-id": "item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f"
}

2022-08-22 23:01:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f"
}

2022-08-22 23:01:39 | [Mutex] waiting for: [published:item:notifieditem-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f:admin@test-domain.com]

2022-08-22 23:01:39 | [Mutex] received everything.

2022-08-22 23:01:39 | [Mutex] isItemNotified: published:item:notifieditem-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2022-08-22 23:01:39 |

2022-08-22 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:39 | ------------------------------------

2022-08-22 23:01:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "item-id": "item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f"
}

2022-08-22 23:01:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f"
}

2022-08-22 23:01:39 | [Mutex] waiting for: [retracted:item:notifieditem-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f:admin@test-domain.com]

2022-08-22 23:01:39 | [Mutex] received everything.

2022-08-22 23:01:39 | [Mutex] isItemNotified: retracted:item:notifieditem-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2022-08-22 23:01:39 |

2022-08-22 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:39 | ------------------------------------

2022-08-22 23:01:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "item-id": "item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f"
}

2022-08-22 23:01:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "item-id": "item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f",
    "item": [
        "<item id=\"item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f\"><test>item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f</test></item>"
    ]
}

2022-08-22 23:01:39 | [Mutex] notify: [retrieved:item:item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f:payload-matches:true:localhost]

2022-08-22 23:01:39 | [Mutex] received everything.

2022-08-22 23:01:39 | [Mutex] isItemNotified: retrieved:item:item-eedc4a9f-0e6b-4e4e-8bd1-65f5bc42a02f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.099s
2022-08-22 23:01:39 |

2022-08-22 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:39 | ------------------------------------

2022-08-22 23:01:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-22 23:01:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1a14492d-b4e5-4bc7-80e4-5c72ce47518f",
        "test",
        "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-22 23:01:39 |

2022-08-22 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:39 | ------------------------------------

2022-08-22 23:01:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d)"
}

2022-08-22 23:01:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-22 23:01:38 |

2022-08-22 23:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:38 | ------------------------------------

2022-08-22 23:01:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-22 23:01:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.081s
2022-08-22 23:01:39 |

2022-08-22 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-22 23:01:39 | ------------------------------------

2022-08-22 23:01:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f26ef1e8-55aa-48a1-a5e2-c0a2fe7f3f1d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-22 23:01:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}