Generated by TestNG with ReportNG at 02:14 PST on Thursday 03 February 2022
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 : 8.847s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2022-02-03 02:29:12 |

2022-02-03 02:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:12 | ------------------------------------

2022-02-03 02:29:12 | [Mutex] waiting for: [configured:node:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:node-55feaf08-d64f-43ee-afcb-684a21014998]

2022-02-03 02:29:12 | [Mutex] received everything.

2022-02-03 02:29:12 | [Mutex] isItemNotified: configured:node:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:node-55feaf08-d64f-43ee-afcb-684a21014998 :: true

2022-02-03 02:29:13 | [Mutex] waiting for: [received:nodes:0f1c9c69-7a34-4551-bb8d-987cb7a7f3e1:localhost]

2022-02-03 02:29:13 | [Mutex] received everything.

2022-02-03 02:29:13 | [Mutex] isItemNotified: received:node:0f1c9c69-7a34-4551-bb8d-987cb7a7f3e1:localhost:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:Node 6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964 :: true

2022-02-03 02:29:13 | [Mutex] waiting for: [received:nodes:ea1bd736-d396-4a6c-97d2-57c297990854:localhost]

2022-02-03 02:29:13 | [Mutex] received everything.

2022-02-03 02:29:13 | [Mutex] isItemNotified: received:node:ea1bd736-d396-4a6c-97d2-57c297990854:localhost:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:Node 6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964 :: false

createNodes 1.523s
2022-02-03 02:29:10 |

2022-02-03 02:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:10 | ------------------------------------

2022-02-03 02:29:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "pubsub#title": "Node 6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964"
}

2022-02-03 02:29:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:29:11 | [Mutex] waiting for: [received:nodes:4eb1623d-28ea-43d8-a8a3-da3201a47c81:localhost]

2022-02-03 02:29:11 | [Mutex] waiting for: [received:nodes:4eb1623d-28ea-43d8-a8a3-da3201a47c81:localhost]

2022-02-03 02:29:11 | [Mutex] received everything.

2022-02-03 02:29:11 | [Mutex] isItemNotified: received:node:4eb1623d-28ea-43d8-a8a3-da3201a47c81:localhost:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:Node 6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964 :: true

createSubnodes 1.029s
2022-02-03 02:29:11 |

2022-02-03 02:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:11 | ------------------------------------

2022-02-03 02:29:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-55feaf08-d64f-43ee-afcb-684a21014998",
    "pubsub#title": "Node 55feaf08-d64f-43ee-afcb-684a21014998"
}

2022-02-03 02:29:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:29:12 | [Mutex] waiting for: [received:nodes:b99eb9ca-f64b-477a-b2a7-b58e42c09fd1:localhost]

2022-02-03 02:29:12 | [Mutex] received everything.

2022-02-03 02:29:12 | [Mutex] isItemNotified: received:node:b99eb9ca-f64b-477a-b2a7-b58e42c09fd1:localhost:node-55feaf08-d64f-43ee-afcb-684a21014998:Node 55feaf08-d64f-43ee-afcb-684a21014998 :: true

deleteNodes 1.022s
2022-02-03 02:29:17 |

2022-02-03 02:29:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:17 | ------------------------------------

2022-02-03 02:29:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55feaf08-d64f-43ee-afcb-684a21014998"
}

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

2022-02-03 02:29:18 | [Mutex] waiting for: [received:nodes:86747b65-c4c3-4301-91d0-73ca77d0dcb6:localhost]

2022-02-03 02:29:18 | [Mutex] received everything.

2022-02-03 02:29:18 | [Mutex] isItemNotified: received:node:86747b65-c4c3-4301-91d0-73ca77d0dcb6:localhost:node-55feaf08-d64f-43ee-afcb-684a21014998:Node 55feaf08-d64f-43ee-afcb-684a21014998 :: false

deleteSubnodes 1.027s
2022-02-03 02:29:16 |

2022-02-03 02:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:16 | ------------------------------------

2022-02-03 02:29:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964"
}

2022-02-03 02:29:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-03 02:29:17 | [Mutex] waiting for: [received:nodes:4b3c2e33-67f8-40df-9a6f-28ed1f37a51f:localhost]

2022-02-03 02:29:17 | [Mutex] received everything.

2022-02-03 02:29:17 | [Mutex] isItemNotified: received:node:4b3c2e33-67f8-40df-9a6f-28ed1f37a51f:localhost:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:Node 6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964 :: false

2022-02-03 02:29:17 | [Mutex] waiting for: [received:nodes:dbf8939b-3456-41cd-b3ce-7c4fb84bc454:localhost]

2022-02-03 02:29:17 | [Mutex] received everything.

2022-02-03 02:29:17 | [Mutex] isItemNotified: received:node:dbf8939b-3456-41cd-b3ce-7c4fb84bc454:localhost:node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964:Node 6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964 :: false

publishItemsToNodes 0.063s
2022-02-03 02:29:14 |

2022-02-03 02:29:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:14 | ------------------------------------

2022-02-03 02:29:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "entry": "<test>item-54f8b7cb-8f13-46ad-8dd7-dca721acca51</test>",
    "item-id": "item-54f8b7cb-8f13-46ad-8dd7-dca721acca51"
}

2022-02-03 02:29:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54f8b7cb-8f13-46ad-8dd7-dca721acca51"
}

2022-02-03 02:29:14 | [Mutex] waiting for: [published:item:notifieditem-54f8b7cb-8f13-46ad-8dd7-dca721acca51:admin@test-domain.com]

2022-02-03 02:29:14 | [Mutex] received everything.

2022-02-03 02:29:14 | [Mutex] isItemNotified: published:item:notifieditem-54f8b7cb-8f13-46ad-8dd7-dca721acca51:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2022-02-03 02:29:15 |

2022-02-03 02:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:15 | ------------------------------------

2022-02-03 02:29:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "item-id": "item-54f8b7cb-8f13-46ad-8dd7-dca721acca51"
}

2022-02-03 02:29:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-54f8b7cb-8f13-46ad-8dd7-dca721acca51"
}

2022-02-03 02:29:15 | [Mutex] received everything.

2022-02-03 02:29:15 | [Mutex] isItemNotified: retracted:item:notifieditem-54f8b7cb-8f13-46ad-8dd7-dca721acca51:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-02-03 02:29:14 |

2022-02-03 02:29:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:14 | ------------------------------------

2022-02-03 02:29:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "item-id": "item-54f8b7cb-8f13-46ad-8dd7-dca721acca51"
}

2022-02-03 02:29:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "item-id": "item-54f8b7cb-8f13-46ad-8dd7-dca721acca51",
    "item": [
        "<item id=\"item-54f8b7cb-8f13-46ad-8dd7-dca721acca51\"><test>item-54f8b7cb-8f13-46ad-8dd7-dca721acca51</test></item>"
    ]
}

2022-02-03 02:29:15 | [Mutex] notify: [retrieved:item:item-54f8b7cb-8f13-46ad-8dd7-dca721acca51:payload-matches:true:localhost]

2022-02-03 02:29:15 | [Mutex] received everything.

2022-02-03 02:29:15 | [Mutex] isItemNotified: retrieved:item:item-54f8b7cb-8f13-46ad-8dd7-dca721acca51:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-03 02:29:15 |

2022-02-03 02:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:15 | ------------------------------------

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

2022-02-03 02:29:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-55feaf08-d64f-43ee-afcb-684a21014998",
        "test",
        "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-02-03 02:29:15 |

2022-02-03 02:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:15 | ------------------------------------

2022-02-03 02:29:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964)"
}

2022-02-03 02:29:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-02-03 02:29:13 |

2022-02-03 02:29:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:13 | ------------------------------------

2022-02-03 02:29:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 02:29:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-02-03 02:29:15 |

2022-02-03 02:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-03 02:29:15 | ------------------------------------

2022-02-03 02:29:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6247f4f2-3bdc-46f3-8ea7-e5cf04f1d964",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-03 02:29:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}