Generated by TestNG with ReportNG at 21:15 PST on Monday 16 January 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.560s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-01-16 21:30:25 |

2023-01-16 21:30:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:25 | ------------------------------------

2023-01-16 21:30:25 | [Mutex] waiting for: [configured:node:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d]

2023-01-16 21:30:25 | [Mutex] received everything.

2023-01-16 21:30:25 | [Mutex] isItemNotified: configured:node:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d :: true

2023-01-16 21:30:26 | [Mutex] waiting for: [received:nodes:74e19310-6ef0-4211-86c7-e691d05cfd90:localhost]

2023-01-16 21:30:26 | [Mutex] received everything.

2023-01-16 21:30:26 | [Mutex] isItemNotified: received:node:74e19310-6ef0-4211-86c7-e691d05cfd90:localhost:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:Node 5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4 :: true

2023-01-16 21:30:26 | [Mutex] waiting for: [received:nodes:51150032-b78d-4dad-ac4f-b70cc003c942:localhost]

2023-01-16 21:30:26 | [Mutex] waiting for: [received:nodes:51150032-b78d-4dad-ac4f-b70cc003c942:localhost]

2023-01-16 21:30:26 | [Mutex] waiting for: [received:nodes:51150032-b78d-4dad-ac4f-b70cc003c942:localhost]

2023-01-16 21:30:26 | [Mutex] received everything.

2023-01-16 21:30:26 | [Mutex] isItemNotified: received:node:51150032-b78d-4dad-ac4f-b70cc003c942:localhost:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:Node 5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4 :: false

createNodes 1.512s
2023-01-16 21:30:23 |

2023-01-16 21:30:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:23 | ------------------------------------

2023-01-16 21:30:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "pubsub#title": "Node 5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4"
}

2023-01-16 21:30:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 21:30:24 | [Mutex] waiting for: [received:nodes:b49a7db5-637b-4c8b-90ef-762fab422b3b:localhost]

2023-01-16 21:30:24 | [Mutex] waiting for: [received:nodes:b49a7db5-637b-4c8b-90ef-762fab422b3b:localhost]

2023-01-16 21:30:24 | [Mutex] waiting for: [received:nodes:b49a7db5-637b-4c8b-90ef-762fab422b3b:localhost]

2023-01-16 21:30:24 | [Mutex] waiting for: [received:nodes:b49a7db5-637b-4c8b-90ef-762fab422b3b:localhost]

2023-01-16 21:30:24 | [Mutex] received everything.

2023-01-16 21:30:24 | [Mutex] isItemNotified: received:node:b49a7db5-637b-4c8b-90ef-762fab422b3b:localhost:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:Node 5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4 :: true

createSubnodes 1.021s
2023-01-16 21:30:24 |

2023-01-16 21:30:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:24 | ------------------------------------

2023-01-16 21:30:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d",
    "pubsub#title": "Node d9d504a1-4990-4b4f-b7e1-c45c5bcae08d"
}

2023-01-16 21:30:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 21:30:25 | [Mutex] waiting for: [received:nodes:3f4d1d03-c10e-413f-9b05-e3631cde6289:localhost]

2023-01-16 21:30:25 | [Mutex] waiting for: [received:nodes:3f4d1d03-c10e-413f-9b05-e3631cde6289:localhost]

2023-01-16 21:30:25 | [Mutex] waiting for: [received:nodes:3f4d1d03-c10e-413f-9b05-e3631cde6289:localhost]

2023-01-16 21:30:25 | [Mutex] waiting for: [received:nodes:3f4d1d03-c10e-413f-9b05-e3631cde6289:localhost]

2023-01-16 21:30:25 | [Mutex] received everything.

2023-01-16 21:30:25 | [Mutex] isItemNotified: received:node:3f4d1d03-c10e-413f-9b05-e3631cde6289:localhost:node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d:Node d9d504a1-4990-4b4f-b7e1-c45c5bcae08d :: true

deleteNodes 1.018s
2023-01-16 21:30:30 |

2023-01-16 21:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:30 | ------------------------------------

2023-01-16 21:30:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d"
}

2023-01-16 21:30:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 21:30:31 | [Mutex] waiting for: [received:nodes:d33f9d0d-eca9-4128-b78b-eccf55a2fada:localhost]

2023-01-16 21:30:31 | [Mutex] waiting for: [received:nodes:d33f9d0d-eca9-4128-b78b-eccf55a2fada:localhost]

2023-01-16 21:30:31 | [Mutex] waiting for: [received:nodes:d33f9d0d-eca9-4128-b78b-eccf55a2fada:localhost]

2023-01-16 21:30:31 | [Mutex] received everything.

2023-01-16 21:30:31 | [Mutex] isItemNotified: received:node:d33f9d0d-eca9-4128-b78b-eccf55a2fada:localhost:node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d:Node d9d504a1-4990-4b4f-b7e1-c45c5bcae08d :: false

deleteSubnodes 1.025s
2023-01-16 21:30:29 |

2023-01-16 21:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:29 | ------------------------------------

2023-01-16 21:30:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4"
}

2023-01-16 21:30:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-01-16 21:30:30 | [Mutex] waiting for: [received:nodes:ff51f4a2-ade9-4d51-88e7-c673b7848633:localhost]

2023-01-16 21:30:30 | [Mutex] waiting for: [received:nodes:ff51f4a2-ade9-4d51-88e7-c673b7848633:localhost]

2023-01-16 21:30:30 | [Mutex] waiting for: [received:nodes:ff51f4a2-ade9-4d51-88e7-c673b7848633:localhost]

2023-01-16 21:30:30 | [Mutex] waiting for: [received:nodes:ff51f4a2-ade9-4d51-88e7-c673b7848633:localhost]

2023-01-16 21:30:30 | [Mutex] received everything.

2023-01-16 21:30:30 | [Mutex] isItemNotified: received:node:ff51f4a2-ade9-4d51-88e7-c673b7848633:localhost:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:Node 5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4 :: false

2023-01-16 21:30:30 | [Mutex] waiting for: [received:nodes:f2888240-1245-4f9a-8dfe-35aa9bd5a887:localhost]

2023-01-16 21:30:30 | [Mutex] received everything.

2023-01-16 21:30:30 | [Mutex] isItemNotified: received:node:f2888240-1245-4f9a-8dfe-35aa9bd5a887:localhost:node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4:Node 5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4 :: false

publishItemsToNodes 0.033s
2023-01-16 21:30:27 |

2023-01-16 21:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:27 | ------------------------------------

2023-01-16 21:30:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "entry": "<test>item-79c18ecc-be77-48f7-82f9-a17bf53d32a6</test>",
    "item-id": "item-79c18ecc-be77-48f7-82f9-a17bf53d32a6"
}

2023-01-16 21:30:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-79c18ecc-be77-48f7-82f9-a17bf53d32a6"
}

2023-01-16 21:30:27 | [Mutex] waiting for: [published:item:notifieditem-79c18ecc-be77-48f7-82f9-a17bf53d32a6:admin@test-domain.com]

2023-01-16 21:30:27 | [Mutex] received everything.

2023-01-16 21:30:27 | [Mutex] isItemNotified: published:item:notifieditem-79c18ecc-be77-48f7-82f9-a17bf53d32a6:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-01-16 21:30:28 |

2023-01-16 21:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:28 | ------------------------------------

2023-01-16 21:30:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "item-id": "item-79c18ecc-be77-48f7-82f9-a17bf53d32a6"
}

2023-01-16 21:30:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-79c18ecc-be77-48f7-82f9-a17bf53d32a6"
}

2023-01-16 21:30:28 | [Mutex] received everything.

2023-01-16 21:30:28 | [Mutex] isItemNotified: retracted:item:notifieditem-79c18ecc-be77-48f7-82f9-a17bf53d32a6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2023-01-16 21:30:27 |

2023-01-16 21:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:27 | ------------------------------------

2023-01-16 21:30:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "item-id": "item-79c18ecc-be77-48f7-82f9-a17bf53d32a6"
}

2023-01-16 21:30:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "item-id": "item-79c18ecc-be77-48f7-82f9-a17bf53d32a6",
    "item": [
        "<item id=\"item-79c18ecc-be77-48f7-82f9-a17bf53d32a6\"><test>item-79c18ecc-be77-48f7-82f9-a17bf53d32a6</test></item>"
    ]
}

2023-01-16 21:30:28 | [Mutex] notify: [retrieved:item:item-79c18ecc-be77-48f7-82f9-a17bf53d32a6:payload-matches:true:localhost]

2023-01-16 21:30:28 | [Mutex] received everything.

2023-01-16 21:30:28 | [Mutex] isItemNotified: retrieved:item:item-79c18ecc-be77-48f7-82f9-a17bf53d32a6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-01-16 21:30:28 |

2023-01-16 21:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:28 | ------------------------------------

2023-01-16 21:30:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-01-16 21:30:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d9d504a1-4990-4b4f-b7e1-c45c5bcae08d",
        "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-01-16 21:30:28 |

2023-01-16 21:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:28 | ------------------------------------

2023-01-16 21:30:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4)"
}

2023-01-16 21:30:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2023-01-16 21:30:26 |

2023-01-16 21:30:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:26 | ------------------------------------

2023-01-16 21:30:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.060s
2023-01-16 21:30:28 |

2023-01-16 21:30:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-01-16 21:30:28 | ------------------------------------

2023-01-16 21:30:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5ebdcaf4-7a8d-4a56-9c27-9c300139c3f4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-01-16 21:30:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}