Generated by TestNG with ReportNG at 22:25 PDT on Thursday 19 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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.684s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2022-05-19 22:41:06 |

2022-05-19 22:41:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:06 | ------------------------------------

2022-05-19 22:41:06 | [Mutex] waiting for: [configured:node:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:node-9051437e-9894-4b30-b672-f39a47438fb1]

2022-05-19 22:41:06 | [Mutex] received everything.

2022-05-19 22:41:06 | [Mutex] isItemNotified: configured:node:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:node-9051437e-9894-4b30-b672-f39a47438fb1 :: true

2022-05-19 22:41:07 | [Mutex] waiting for: [received:nodes:f75c83be-cee8-43d8-a1fc-867332eacf13:localhost]

2022-05-19 22:41:07 | [Mutex] received everything.

2022-05-19 22:41:07 | [Mutex] isItemNotified: received:node:f75c83be-cee8-43d8-a1fc-867332eacf13:localhost:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:Node 2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148 :: true

2022-05-19 22:41:07 | [Mutex] waiting for: [received:nodes:b393b1d0-953f-40f0-9a0d-f5a3a2d124df:localhost]

2022-05-19 22:41:07 | [Mutex] received everything.

2022-05-19 22:41:07 | [Mutex] isItemNotified: received:node:b393b1d0-953f-40f0-9a0d-f5a3a2d124df:localhost:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:Node 2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148 :: false

createNodes 1.562s
2022-05-19 22:41:03 |

2022-05-19 22:41:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:03 | ------------------------------------

2022-05-19 22:41:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "pubsub#title": "Node 2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148"
}

2022-05-19 22:41:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:41:04 | [Mutex] waiting for: [received:nodes:de85712b-391a-4c05-99b1-bd79ad1c37e9:localhost]

2022-05-19 22:41:05 | [Mutex] received everything.

2022-05-19 22:41:05 | [Mutex] isItemNotified: received:node:de85712b-391a-4c05-99b1-bd79ad1c37e9:localhost:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:Node 2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148 :: true

createSubnodes 1.033s
2022-05-19 22:41:05 |

2022-05-19 22:41:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:05 | ------------------------------------

2022-05-19 22:41:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9051437e-9894-4b30-b672-f39a47438fb1",
    "pubsub#title": "Node 9051437e-9894-4b30-b672-f39a47438fb1"
}

2022-05-19 22:41:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:41:06 | [Mutex] waiting for: [received:nodes:30cd6741-fa88-42d1-a74d-477f9c6499ff:localhost]

2022-05-19 22:41:06 | [Mutex] received everything.

2022-05-19 22:41:06 | [Mutex] isItemNotified: received:node:30cd6741-fa88-42d1-a74d-477f9c6499ff:localhost:node-9051437e-9894-4b30-b672-f39a47438fb1:Node 9051437e-9894-4b30-b672-f39a47438fb1 :: true

deleteNodes 1.029s
2022-05-19 22:41:10 |

2022-05-19 22:41:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:10 | ------------------------------------

2022-05-19 22:41:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9051437e-9894-4b30-b672-f39a47438fb1"
}

2022-05-19 22:41:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:41:11 | [Mutex] waiting for: [received:nodes:c02497eb-4620-413f-93a4-0a486c214748:localhost]

2022-05-19 22:41:11 | [Mutex] received everything.

2022-05-19 22:41:11 | [Mutex] isItemNotified: received:node:c02497eb-4620-413f-93a4-0a486c214748:localhost:node-9051437e-9894-4b30-b672-f39a47438fb1:Node 9051437e-9894-4b30-b672-f39a47438fb1 :: false

deleteSubnodes 1.029s
2022-05-19 22:41:09 |

2022-05-19 22:41:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:09 | ------------------------------------

2022-05-19 22:41:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148"
}

2022-05-19 22:41:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-19 22:41:10 | [Mutex] waiting for: [received:nodes:0a185929-9e32-447f-bd73-4e3c6939a4c5:localhost]

2022-05-19 22:41:10 | [Mutex] received everything.

2022-05-19 22:41:10 | [Mutex] isItemNotified: received:node:0a185929-9e32-447f-bd73-4e3c6939a4c5:localhost:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:Node 2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148 :: false

2022-05-19 22:41:10 | [Mutex] waiting for: [received:nodes:02d3cfb6-85aa-4dfb-bbfc-f0d6a334aaf3:localhost]

2022-05-19 22:41:10 | [Mutex] received everything.

2022-05-19 22:41:10 | [Mutex] isItemNotified: received:node:02d3cfb6-85aa-4dfb-bbfc-f0d6a334aaf3:localhost:node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148:Node 2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148 :: false

publishItemsToNodes 0.094s
2022-05-19 22:41:08 |

2022-05-19 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:08 | ------------------------------------

2022-05-19 22:41:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "entry": "<test>item-a9e4cbce-a619-45e6-a17b-79bec9f99968</test>",
    "item-id": "item-a9e4cbce-a619-45e6-a17b-79bec9f99968"
}

2022-05-19 22:41:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a9e4cbce-a619-45e6-a17b-79bec9f99968"
}

2022-05-19 22:41:08 | [Mutex] waiting for: [published:item:notifieditem-a9e4cbce-a619-45e6-a17b-79bec9f99968:admin@test-domain.com]

2022-05-19 22:41:08 | [Mutex] received everything.

2022-05-19 22:41:08 | [Mutex] isItemNotified: published:item:notifieditem-a9e4cbce-a619-45e6-a17b-79bec9f99968:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-05-19 22:41:08 |

2022-05-19 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:08 | ------------------------------------

2022-05-19 22:41:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "item-id": "item-a9e4cbce-a619-45e6-a17b-79bec9f99968"
}

2022-05-19 22:41:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a9e4cbce-a619-45e6-a17b-79bec9f99968"
}

2022-05-19 22:41:08 | [Mutex] received everything.

2022-05-19 22:41:08 | [Mutex] isItemNotified: retracted:item:notifieditem-a9e4cbce-a619-45e6-a17b-79bec9f99968:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-05-19 22:41:08 |

2022-05-19 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:08 | ------------------------------------

2022-05-19 22:41:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "item-id": "item-a9e4cbce-a619-45e6-a17b-79bec9f99968"
}

2022-05-19 22:41:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "item-id": "item-a9e4cbce-a619-45e6-a17b-79bec9f99968",
    "item": [
        "<item id=\"item-a9e4cbce-a619-45e6-a17b-79bec9f99968\"><test>item-a9e4cbce-a619-45e6-a17b-79bec9f99968</test></item>"
    ]
}

2022-05-19 22:41:08 | [Mutex] notify: [retrieved:item:item-a9e4cbce-a619-45e6-a17b-79bec9f99968:payload-matches:true:localhost]

2022-05-19 22:41:08 | [Mutex] received everything.

2022-05-19 22:41:08 | [Mutex] isItemNotified: retrieved:item:item-a9e4cbce-a619-45e6-a17b-79bec9f99968:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-19 22:41:08 |

2022-05-19 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:08 | ------------------------------------

2022-05-19 22:41:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-19 22:41:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
        "test",
        "node-9051437e-9894-4b30-b672-f39a47438fb1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-19 22:41:08 |

2022-05-19 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:08 | ------------------------------------

2022-05-19 22:41:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148)"
}

2022-05-19 22:41:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-05-19 22:41:07 |

2022-05-19 22:41:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:07 | ------------------------------------

2022-05-19 22:41:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-19 22:41:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2022-05-19 22:41:08 |

2022-05-19 22:41:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-19 22:41:08 | ------------------------------------

2022-05-19 22:41:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2c0f04ab-e4b3-4596-9c3e-ebf4c3d4f148",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-19 22:41:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}