Generated by TestNG with ReportNG at 22:47 PDT on Wednesday 17 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.766s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2022-08-17 23:01:54 |

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

2022-08-17 23:01:54 | ------------------------------------

2022-08-17 23:01:54 | [Mutex] waiting for: [configured:node:node-649f915f-c549-495b-a11c-6ecc963456ae:node-d1e4856e-9541-49d5-94b5-2da3dd7116d5]

2022-08-17 23:01:54 | [Mutex] received everything.

2022-08-17 23:01:54 | [Mutex] isItemNotified: configured:node:node-649f915f-c549-495b-a11c-6ecc963456ae:node-d1e4856e-9541-49d5-94b5-2da3dd7116d5 :: true

2022-08-17 23:01:55 | [Mutex] waiting for: [received:nodes:c5cf2417-ed56-4860-9ce9-02ffa0b82843:localhost]

2022-08-17 23:01:55 | [Mutex] received everything.

2022-08-17 23:01:55 | [Mutex] isItemNotified: received:node:c5cf2417-ed56-4860-9ce9-02ffa0b82843:localhost:node-649f915f-c549-495b-a11c-6ecc963456ae:Node 649f915f-c549-495b-a11c-6ecc963456ae :: true

2022-08-17 23:01:55 | [Mutex] waiting for: [received:nodes:2a507bf1-7e7b-4f85-b642-608a84864c61:localhost]

2022-08-17 23:01:55 | [Mutex] received everything.

2022-08-17 23:01:55 | [Mutex] isItemNotified: received:node:2a507bf1-7e7b-4f85-b642-608a84864c61:localhost:node-649f915f-c549-495b-a11c-6ecc963456ae:Node 649f915f-c549-495b-a11c-6ecc963456ae :: false

createNodes 1.601s
2022-08-17 23:01:51 |

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

2022-08-17 23:01:51 | ------------------------------------

2022-08-17 23:01:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "pubsub#title": "Node 649f915f-c549-495b-a11c-6ecc963456ae"
}

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

2022-08-17 23:01:53 | [Mutex] waiting for: [received:nodes:8f9d7e8d-cfc0-4d84-a456-497c1d32f3cd:localhost]

2022-08-17 23:01:53 | [Mutex] waiting for: [received:nodes:8f9d7e8d-cfc0-4d84-a456-497c1d32f3cd:localhost]

2022-08-17 23:01:53 | [Mutex] received everything.

2022-08-17 23:01:53 | [Mutex] isItemNotified: received:node:8f9d7e8d-cfc0-4d84-a456-497c1d32f3cd:localhost:node-649f915f-c549-495b-a11c-6ecc963456ae:Node 649f915f-c549-495b-a11c-6ecc963456ae :: true

createSubnodes 1.021s
2022-08-17 23:01:53 |

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

2022-08-17 23:01:53 | ------------------------------------

2022-08-17 23:01:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d1e4856e-9541-49d5-94b5-2da3dd7116d5",
    "pubsub#title": "Node d1e4856e-9541-49d5-94b5-2da3dd7116d5"
}

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

2022-08-17 23:01:54 | [Mutex] waiting for: [received:nodes:c6e9e1ef-65fc-421e-9a40-dcbd1be64b85:localhost]

2022-08-17 23:01:54 | [Mutex] waiting for: [received:nodes:c6e9e1ef-65fc-421e-9a40-dcbd1be64b85:localhost]

2022-08-17 23:01:54 | [Mutex] received everything.

2022-08-17 23:01:54 | [Mutex] isItemNotified: received:node:c6e9e1ef-65fc-421e-9a40-dcbd1be64b85:localhost:node-d1e4856e-9541-49d5-94b5-2da3dd7116d5:Node d1e4856e-9541-49d5-94b5-2da3dd7116d5 :: true

deleteNodes 1.020s
2022-08-17 23:01:58 |

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

2022-08-17 23:01:58 | ------------------------------------

2022-08-17 23:01:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1e4856e-9541-49d5-94b5-2da3dd7116d5"
}

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

2022-08-17 23:01:59 | [Mutex] waiting for: [received:nodes:a0a6af54-02e0-46b8-9069-90ad2919fdc7:localhost]

2022-08-17 23:01:59 | [Mutex] waiting for: [received:nodes:a0a6af54-02e0-46b8-9069-90ad2919fdc7:localhost]

2022-08-17 23:01:59 | [Mutex] received everything.

2022-08-17 23:01:59 | [Mutex] isItemNotified: received:node:a0a6af54-02e0-46b8-9069-90ad2919fdc7:localhost:node-d1e4856e-9541-49d5-94b5-2da3dd7116d5:Node d1e4856e-9541-49d5-94b5-2da3dd7116d5 :: false

deleteSubnodes 1.022s
2022-08-17 23:01:57 |

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

2022-08-17 23:01:57 | ------------------------------------

2022-08-17 23:01:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae"
}

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

2022-08-17 23:01:58 | [Mutex] waiting for: [received:nodes:176e6395-6c65-45ae-9e3c-ac243b94b311:localhost]

2022-08-17 23:01:58 | [Mutex] waiting for: [received:nodes:176e6395-6c65-45ae-9e3c-ac243b94b311:localhost]

2022-08-17 23:01:58 | [Mutex] received everything.

2022-08-17 23:01:58 | [Mutex] isItemNotified: received:node:176e6395-6c65-45ae-9e3c-ac243b94b311:localhost:node-649f915f-c549-495b-a11c-6ecc963456ae:Node 649f915f-c549-495b-a11c-6ecc963456ae :: false

2022-08-17 23:01:58 | [Mutex] waiting for: [received:nodes:ef8f62e3-4292-4610-8891-49ad82f367fc:localhost]

2022-08-17 23:01:58 | [Mutex] received everything.

2022-08-17 23:01:58 | [Mutex] isItemNotified: received:node:ef8f62e3-4292-4610-8891-49ad82f367fc:localhost:node-649f915f-c549-495b-a11c-6ecc963456ae:Node 649f915f-c549-495b-a11c-6ecc963456ae :: false

publishItemsToNodes 0.068s
2022-08-17 23:01:56 |

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

2022-08-17 23:01:56 | ------------------------------------

2022-08-17 23:01:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "entry": "<test>item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924</test>",
    "item-id": "item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924"
}

2022-08-17 23:01:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924"
}

2022-08-17 23:01:56 | [Mutex] received everything.

2022-08-17 23:01:56 | [Mutex] isItemNotified: published:item:notifieditem-c32d8f53-d44e-4b54-8815-d1ccf1c6a924:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-08-17 23:01:56 |

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

2022-08-17 23:01:56 | ------------------------------------

2022-08-17 23:01:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "item-id": "item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924"
}

2022-08-17 23:01:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924"
}

2022-08-17 23:01:56 | [Mutex] received everything.

2022-08-17 23:01:56 | [Mutex] isItemNotified: retracted:item:notifieditem-c32d8f53-d44e-4b54-8815-d1ccf1c6a924:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2022-08-17 23:01:56 |

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

2022-08-17 23:01:56 | ------------------------------------

2022-08-17 23:01:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "item-id": "item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924"
}

2022-08-17 23:01:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "item-id": "item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924",
    "item": [
        "<item id=\"item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924\"><test>item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924</test></item>"
    ]
}

2022-08-17 23:01:56 | [Mutex] notify: [retrieved:item:item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924:payload-matches:true:localhost]

2022-08-17 23:01:56 | [Mutex] received everything.

2022-08-17 23:01:56 | [Mutex] isItemNotified: retrieved:item:item-c32d8f53-d44e-4b54-8815-d1ccf1c6a924:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-17 23:01:56 |

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

2022-08-17 23:01:56 | ------------------------------------

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

2022-08-17 23:01:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d1e4856e-9541-49d5-94b5-2da3dd7116d5",
        "test",
        "node-649f915f-c549-495b-a11c-6ecc963456ae"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-08-17 23:01:56 |

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

2022-08-17 23:01:56 | ------------------------------------

2022-08-17 23:01:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-649f915f-c549-495b-a11c-6ecc963456ae)"
}

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

subscribeNodes 1.016s
2022-08-17 23:01:55 |

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

2022-08-17 23:01:55 | ------------------------------------

2022-08-17 23:01:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.074s
2022-08-17 23:01:56 |

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

2022-08-17 23:01:56 | ------------------------------------

2022-08-17 23:01:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-649f915f-c549-495b-a11c-6ecc963456ae",
    "jids": [
        "admin@test-domain.com"
    ]
}

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