Generated by TestNG with ReportNG at 04:08 PST on Thursday 17 February 2022
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.047s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.094s
2022-02-17 04:22:50 |

2022-02-17 04:22:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:50 | ------------------------------------

2022-02-17 04:22:50 | [Mutex] waiting for: [configured:node:node-4f941524-6cfe-49e8-a691-eca034621506:node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51]

2022-02-17 04:22:51 | [Mutex] received everything.

2022-02-17 04:22:51 | [Mutex] isItemNotified: configured:node:node-4f941524-6cfe-49e8-a691-eca034621506:node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51 :: true

2022-02-17 04:22:52 | [Mutex] waiting for: [received:nodes:e787425a-f1dd-4e8b-b5ba-0d27c6707900:localhost]

2022-02-17 04:22:52 | [Mutex] received everything.

2022-02-17 04:22:52 | [Mutex] isItemNotified: received:node:e787425a-f1dd-4e8b-b5ba-0d27c6707900:localhost:node-4f941524-6cfe-49e8-a691-eca034621506:Node 4f941524-6cfe-49e8-a691-eca034621506 :: true

2022-02-17 04:22:52 | [Mutex] waiting for: [received:nodes:75922a19-6e91-4264-a0fd-cb0c60113272:localhost]

2022-02-17 04:22:52 | [Mutex] waiting for: [received:nodes:75922a19-6e91-4264-a0fd-cb0c60113272:localhost]

2022-02-17 04:22:52 | [Mutex] received everything.

2022-02-17 04:22:52 | [Mutex] isItemNotified: received:node:75922a19-6e91-4264-a0fd-cb0c60113272:localhost:node-4f941524-6cfe-49e8-a691-eca034621506:Node 4f941524-6cfe-49e8-a691-eca034621506 :: false

createNodes 1.661s
2022-02-17 04:22:48 |

2022-02-17 04:22:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:48 | ------------------------------------

2022-02-17 04:22:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "pubsub#title": "Node 4f941524-6cfe-49e8-a691-eca034621506"
}

2022-02-17 04:22:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:22:49 | [Mutex] waiting for: [received:nodes:662f16db-e4df-4d1e-be94-52742681fa0f:localhost]

2022-02-17 04:22:49 | [Mutex] received everything.

2022-02-17 04:22:49 | [Mutex] isItemNotified: received:node:662f16db-e4df-4d1e-be94-52742681fa0f:localhost:node-4f941524-6cfe-49e8-a691-eca034621506:Node 4f941524-6cfe-49e8-a691-eca034621506 :: true

createSubnodes 1.033s
2022-02-17 04:22:49 |

2022-02-17 04:22:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:49 | ------------------------------------

2022-02-17 04:22:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51",
    "pubsub#title": "Node 541f07cb-ad4b-4fc4-b006-ffaf050bcd51"
}

2022-02-17 04:22:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:22:50 | [Mutex] waiting for: [received:nodes:adf2c53f-86d9-4102-9e05-ab4d6ed8021f:localhost]

2022-02-17 04:22:50 | [Mutex] received everything.

2022-02-17 04:22:50 | [Mutex] isItemNotified: received:node:adf2c53f-86d9-4102-9e05-ab4d6ed8021f:localhost:node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51:Node 541f07cb-ad4b-4fc4-b006-ffaf050bcd51 :: true

deleteNodes 1.027s
2022-02-17 04:22:55 |

2022-02-17 04:22:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:55 | ------------------------------------

2022-02-17 04:22:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51"
}

2022-02-17 04:22:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:22:56 | [Mutex] waiting for: [received:nodes:2b4f17df-c126-47da-90c5-fcbc19e6d7e4:localhost]

2022-02-17 04:22:56 | [Mutex] received everything.

2022-02-17 04:22:56 | [Mutex] isItemNotified: received:node:2b4f17df-c126-47da-90c5-fcbc19e6d7e4:localhost:node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51:Node 541f07cb-ad4b-4fc4-b006-ffaf050bcd51 :: false

deleteSubnodes 1.031s
2022-02-17 04:22:54 |

2022-02-17 04:22:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:54 | ------------------------------------

2022-02-17 04:22:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506"
}

2022-02-17 04:22:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:22:55 | [Mutex] waiting for: [received:nodes:524ef928-8fbd-4d93-84cd-d147914a5369:localhost]

2022-02-17 04:22:55 | [Mutex] received everything.

2022-02-17 04:22:55 | [Mutex] isItemNotified: received:node:524ef928-8fbd-4d93-84cd-d147914a5369:localhost:node-4f941524-6cfe-49e8-a691-eca034621506:Node 4f941524-6cfe-49e8-a691-eca034621506 :: false

2022-02-17 04:22:55 | [Mutex] waiting for: [received:nodes:427b1f07-59c3-4554-9aef-b053dd70cb5b:localhost]

2022-02-17 04:22:55 | [Mutex] received everything.

2022-02-17 04:22:55 | [Mutex] isItemNotified: received:node:427b1f07-59c3-4554-9aef-b053dd70cb5b:localhost:node-4f941524-6cfe-49e8-a691-eca034621506:Node 4f941524-6cfe-49e8-a691-eca034621506 :: false

publishItemsToNodes 0.086s
2022-02-17 04:22:53 |

2022-02-17 04:22:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:53 | ------------------------------------

2022-02-17 04:22:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "entry": "<test>item-65848e1b-69c2-4bbe-98b8-6fc63fb08746</test>",
    "item-id": "item-65848e1b-69c2-4bbe-98b8-6fc63fb08746"
}

2022-02-17 04:22:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65848e1b-69c2-4bbe-98b8-6fc63fb08746"
}

2022-02-17 04:22:53 | [Mutex] waiting for: [published:item:notifieditem-65848e1b-69c2-4bbe-98b8-6fc63fb08746:admin@test-domain.com]

2022-02-17 04:22:53 | [Mutex] received everything.

2022-02-17 04:22:53 | [Mutex] isItemNotified: published:item:notifieditem-65848e1b-69c2-4bbe-98b8-6fc63fb08746:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-02-17 04:22:53 |

2022-02-17 04:22:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:53 | ------------------------------------

2022-02-17 04:22:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "item-id": "item-65848e1b-69c2-4bbe-98b8-6fc63fb08746"
}

2022-02-17 04:22:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-65848e1b-69c2-4bbe-98b8-6fc63fb08746"
}

2022-02-17 04:22:53 | [Mutex] received everything.

2022-02-17 04:22:53 | [Mutex] isItemNotified: retracted:item:notifieditem-65848e1b-69c2-4bbe-98b8-6fc63fb08746:admin@test-domain.com :: true

retrieveItemsFromNodes 0.088s
2022-02-17 04:22:53 |

2022-02-17 04:22:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:53 | ------------------------------------

2022-02-17 04:22:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "item-id": "item-65848e1b-69c2-4bbe-98b8-6fc63fb08746"
}

2022-02-17 04:22:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "item-id": "item-65848e1b-69c2-4bbe-98b8-6fc63fb08746",
    "item": [
        "<item id=\"item-65848e1b-69c2-4bbe-98b8-6fc63fb08746\"><test>item-65848e1b-69c2-4bbe-98b8-6fc63fb08746</test></item>"
    ]
}

2022-02-17 04:22:53 | [Mutex] notify: [retrieved:item:item-65848e1b-69c2-4bbe-98b8-6fc63fb08746:payload-matches:true:localhost]

2022-02-17 04:22:53 | [Mutex] received everything.

2022-02-17 04:22:53 | [Mutex] isItemNotified: retrieved:item:item-65848e1b-69c2-4bbe-98b8-6fc63fb08746:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2022-02-17 04:22:53 |

2022-02-17 04:22:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:53 | ------------------------------------

2022-02-17 04:22:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-17 04:22:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-541f07cb-ad4b-4fc4-b006-ffaf050bcd51",
        "node-4f941524-6cfe-49e8-a691-eca034621506"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-02-17 04:22:53 |

2022-02-17 04:22:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:53 | ------------------------------------

2022-02-17 04:22:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4f941524-6cfe-49e8-a691-eca034621506)"
}

2022-02-17 04:22:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-02-17 04:22:52 |

2022-02-17 04:22:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:52 | ------------------------------------

2022-02-17 04:22:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 04:22:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-02-17 04:22:53 |

2022-02-17 04:22:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:22:53 | ------------------------------------

2022-02-17 04:22:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4f941524-6cfe-49e8-a691-eca034621506",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 04:22:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}