Generated by TestNG with ReportNG at 22:16 PDT on Sunday 26 March 2023
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.664s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2023-03-26 22:30:57 |

2023-03-26 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:57 | ------------------------------------

2023-03-26 22:30:57 | [Mutex] waiting for: [configured:node:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:node-b63332c8-4c06-46e6-9cbf-1937c2896fd5]

2023-03-26 22:30:57 | [Mutex] received everything.

2023-03-26 22:30:57 | [Mutex] isItemNotified: configured:node:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:node-b63332c8-4c06-46e6-9cbf-1937c2896fd5 :: true

2023-03-26 22:30:58 | [Mutex] waiting for: [received:nodes:44576da7-0057-450d-995e-4359a95097c6:localhost]

2023-03-26 22:30:58 | [Mutex] received everything.

2023-03-26 22:30:58 | [Mutex] isItemNotified: received:node:44576da7-0057-450d-995e-4359a95097c6:localhost:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:Node 1e0d30fa-7dcd-4efc-a3ad-9630976958ab :: true

2023-03-26 22:30:58 | [Mutex] waiting for: [received:nodes:bb64baff-0c2b-48a3-9681-62abfbd38335:localhost]

2023-03-26 22:30:58 | [Mutex] waiting for: [received:nodes:bb64baff-0c2b-48a3-9681-62abfbd38335:localhost]

2023-03-26 22:30:58 | [Mutex] waiting for: [received:nodes:bb64baff-0c2b-48a3-9681-62abfbd38335:localhost]

2023-03-26 22:30:58 | [Mutex] received everything.

2023-03-26 22:30:58 | [Mutex] isItemNotified: received:node:bb64baff-0c2b-48a3-9681-62abfbd38335:localhost:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:Node 1e0d30fa-7dcd-4efc-a3ad-9630976958ab :: false

createNodes 1.558s
2023-03-26 22:30:54 |

2023-03-26 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:54 | ------------------------------------

2023-03-26 22:30:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "pubsub#title": "Node 1e0d30fa-7dcd-4efc-a3ad-9630976958ab"
}

2023-03-26 22:30:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-26 22:30:56 | [Mutex] waiting for: [received:nodes:3b9a48fe-1a3b-4550-93bd-4038991fb744:localhost]

2023-03-26 22:30:56 | [Mutex] waiting for: [received:nodes:3b9a48fe-1a3b-4550-93bd-4038991fb744:localhost]

2023-03-26 22:30:56 | [Mutex] waiting for: [received:nodes:3b9a48fe-1a3b-4550-93bd-4038991fb744:localhost]

2023-03-26 22:30:56 | [Mutex] waiting for: [received:nodes:3b9a48fe-1a3b-4550-93bd-4038991fb744:localhost]

2023-03-26 22:30:56 | [Mutex] received everything.

2023-03-26 22:30:56 | [Mutex] isItemNotified: received:node:3b9a48fe-1a3b-4550-93bd-4038991fb744:localhost:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:Node 1e0d30fa-7dcd-4efc-a3ad-9630976958ab :: true

createSubnodes 1.030s
2023-03-26 22:30:56 |

2023-03-26 22:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:56 | ------------------------------------

2023-03-26 22:30:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b63332c8-4c06-46e6-9cbf-1937c2896fd5",
    "pubsub#title": "Node b63332c8-4c06-46e6-9cbf-1937c2896fd5"
}

2023-03-26 22:30:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-26 22:30:57 | [Mutex] waiting for: [received:nodes:61db684c-d03a-441c-9dd6-0e83f3fc54e5:localhost]

2023-03-26 22:30:57 | [Mutex] waiting for: [received:nodes:61db684c-d03a-441c-9dd6-0e83f3fc54e5:localhost]

2023-03-26 22:30:57 | [Mutex] waiting for: [received:nodes:61db684c-d03a-441c-9dd6-0e83f3fc54e5:localhost]

2023-03-26 22:30:57 | [Mutex] waiting for: [received:nodes:61db684c-d03a-441c-9dd6-0e83f3fc54e5:localhost]

2023-03-26 22:30:57 | [Mutex] received everything.

2023-03-26 22:30:57 | [Mutex] isItemNotified: received:node:61db684c-d03a-441c-9dd6-0e83f3fc54e5:localhost:node-b63332c8-4c06-46e6-9cbf-1937c2896fd5:Node b63332c8-4c06-46e6-9cbf-1937c2896fd5 :: true

deleteNodes 1.023s
2023-03-26 22:31:01 |

2023-03-26 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:31:01 | ------------------------------------

2023-03-26 22:31:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b63332c8-4c06-46e6-9cbf-1937c2896fd5"
}

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

2023-03-26 22:31:02 | [Mutex] waiting for: [received:nodes:093a9ea9-0aec-4534-800c-7674b4e7fb26:localhost]

2023-03-26 22:31:02 | [Mutex] waiting for: [received:nodes:093a9ea9-0aec-4534-800c-7674b4e7fb26:localhost]

2023-03-26 22:31:02 | [Mutex] waiting for: [received:nodes:093a9ea9-0aec-4534-800c-7674b4e7fb26:localhost]

2023-03-26 22:31:02 | [Mutex] received everything.

2023-03-26 22:31:02 | [Mutex] isItemNotified: received:node:093a9ea9-0aec-4534-800c-7674b4e7fb26:localhost:node-b63332c8-4c06-46e6-9cbf-1937c2896fd5:Node b63332c8-4c06-46e6-9cbf-1937c2896fd5 :: false

deleteSubnodes 1.028s
2023-03-26 22:31:00 |

2023-03-26 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:31:00 | ------------------------------------

2023-03-26 22:31:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab"
}

2023-03-26 22:31:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-26 22:31:01 | [Mutex] waiting for: [received:nodes:49634022-a8bf-4664-97e0-33fc6a4929d0:localhost]

2023-03-26 22:31:01 | [Mutex] waiting for: [received:nodes:49634022-a8bf-4664-97e0-33fc6a4929d0:localhost]

2023-03-26 22:31:01 | [Mutex] received everything.

2023-03-26 22:31:01 | [Mutex] isItemNotified: received:node:49634022-a8bf-4664-97e0-33fc6a4929d0:localhost:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:Node 1e0d30fa-7dcd-4efc-a3ad-9630976958ab :: false

2023-03-26 22:31:01 | [Mutex] waiting for: [received:nodes:3188ce21-2832-4dd3-b20e-af116395765a:localhost]

2023-03-26 22:31:01 | [Mutex] received everything.

2023-03-26 22:31:01 | [Mutex] isItemNotified: received:node:3188ce21-2832-4dd3-b20e-af116395765a:localhost:node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab:Node 1e0d30fa-7dcd-4efc-a3ad-9630976958ab :: false

publishItemsToNodes 0.059s
2023-03-26 22:30:59 |

2023-03-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:59 | ------------------------------------

2023-03-26 22:30:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "entry": "<test>item-cc86ab66-6d95-46d7-b808-7c249307d54a</test>",
    "item-id": "item-cc86ab66-6d95-46d7-b808-7c249307d54a"
}

2023-03-26 22:30:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cc86ab66-6d95-46d7-b808-7c249307d54a"
}

2023-03-26 22:30:59 | [Mutex] waiting for: [published:item:notifieditem-cc86ab66-6d95-46d7-b808-7c249307d54a:admin@test-domain.com]

2023-03-26 22:30:59 | [Mutex] received everything.

2023-03-26 22:30:59 | [Mutex] isItemNotified: published:item:notifieditem-cc86ab66-6d95-46d7-b808-7c249307d54a:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2023-03-26 22:30:59 |

2023-03-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:59 | ------------------------------------

2023-03-26 22:30:59 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "item-id": "item-cc86ab66-6d95-46d7-b808-7c249307d54a"
}

2023-03-26 22:30:59 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cc86ab66-6d95-46d7-b808-7c249307d54a"
}

2023-03-26 22:30:59 | [Mutex] received everything.

2023-03-26 22:30:59 | [Mutex] isItemNotified: retracted:item:notifieditem-cc86ab66-6d95-46d7-b808-7c249307d54a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2023-03-26 22:30:59 |

2023-03-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:59 | ------------------------------------

2023-03-26 22:30:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "item-id": "item-cc86ab66-6d95-46d7-b808-7c249307d54a"
}

2023-03-26 22:30:59 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "item-id": "item-cc86ab66-6d95-46d7-b808-7c249307d54a",
    "item": [
        "<item id=\"item-cc86ab66-6d95-46d7-b808-7c249307d54a\"><test>item-cc86ab66-6d95-46d7-b808-7c249307d54a</test></item>"
    ]
}

2023-03-26 22:30:59 | [Mutex] notify: [retrieved:item:item-cc86ab66-6d95-46d7-b808-7c249307d54a:payload-matches:true:localhost]

2023-03-26 22:30:59 | [Mutex] received everything.

2023-03-26 22:30:59 | [Mutex] isItemNotified: retrieved:item:item-cc86ab66-6d95-46d7-b808-7c249307d54a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-03-26 22:30:59 |

2023-03-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:59 | ------------------------------------

2023-03-26 22:30:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-26 22:30:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b63332c8-4c06-46e6-9cbf-1937c2896fd5",
        "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-03-26 22:30:59 |

2023-03-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:59 | ------------------------------------

2023-03-26 22:30:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab)"
}

2023-03-26 22:30:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2023-03-26 22:30:58 |

2023-03-26 22:30:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:58 | ------------------------------------

2023-03-26 22:30:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-26 22:30:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-03-26 22:30:59 |

2023-03-26 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-26 22:30:59 | ------------------------------------

2023-03-26 22:30:59 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1e0d30fa-7dcd-4efc-a3ad-9630976958ab",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-26 22:30:59 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}