Generated by TestNG with ReportNG at 22:49 PDT on Tuesday 20 September 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.699s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-09-20 23:03:45 |

2022-09-20 23:03:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:45 | ------------------------------------

2022-09-20 23:03:45 | [Mutex] waiting for: [configured:node:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de]

2022-09-20 23:03:45 | [Mutex] received everything.

2022-09-20 23:03:45 | [Mutex] isItemNotified: configured:node:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de :: true

2022-09-20 23:03:46 | [Mutex] waiting for: [received:nodes:731d9a47-e800-487f-91a9-de403bf23967:localhost]

2022-09-20 23:03:46 | [Mutex] received everything.

2022-09-20 23:03:46 | [Mutex] isItemNotified: received:node:731d9a47-e800-487f-91a9-de403bf23967:localhost:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:Node 0af0383f-ac2e-4ca8-ab29-25cef7351fd1 :: true

2022-09-20 23:03:46 | [Mutex] waiting for: [received:nodes:e4d54345-4ce7-4fd8-af7b-e3b24d8bd38a:localhost]

2022-09-20 23:03:46 | [Mutex] waiting for: [received:nodes:e4d54345-4ce7-4fd8-af7b-e3b24d8bd38a:localhost]

2022-09-20 23:03:46 | [Mutex] received everything.

2022-09-20 23:03:46 | [Mutex] isItemNotified: received:node:e4d54345-4ce7-4fd8-af7b-e3b24d8bd38a:localhost:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:Node 0af0383f-ac2e-4ca8-ab29-25cef7351fd1 :: false

createNodes 1.574s
2022-09-20 23:03:43 |

2022-09-20 23:03:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:43 | ------------------------------------

2022-09-20 23:03:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "pubsub#title": "Node 0af0383f-ac2e-4ca8-ab29-25cef7351fd1"
}

2022-09-20 23:03:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-20 23:03:44 | [Mutex] waiting for: [received:nodes:1362435c-9a6f-40ff-a6a9-00dc7c9e7e30:localhost]

2022-09-20 23:03:44 | [Mutex] received everything.

2022-09-20 23:03:44 | [Mutex] isItemNotified: received:node:1362435c-9a6f-40ff-a6a9-00dc7c9e7e30:localhost:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:Node 0af0383f-ac2e-4ca8-ab29-25cef7351fd1 :: true

createSubnodes 1.027s
2022-09-20 23:03:44 |

2022-09-20 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:44 | ------------------------------------

2022-09-20 23:03:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de",
    "pubsub#title": "Node 46eea1cb-812b-4775-b1ec-e1a62ca0b0de"
}

2022-09-20 23:03:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-20 23:03:45 | [Mutex] waiting for: [received:nodes:39b806cf-aec8-4f68-aa6c-9f473a00cca3:localhost]

2022-09-20 23:03:45 | [Mutex] waiting for: [received:nodes:39b806cf-aec8-4f68-aa6c-9f473a00cca3:localhost]

2022-09-20 23:03:45 | [Mutex] received everything.

2022-09-20 23:03:45 | [Mutex] isItemNotified: received:node:39b806cf-aec8-4f68-aa6c-9f473a00cca3:localhost:node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de:Node 46eea1cb-812b-4775-b1ec-e1a62ca0b0de :: true

deleteNodes 1.026s
2022-09-20 23:03:50 |

2022-09-20 23:03:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:50 | ------------------------------------

2022-09-20 23:03:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de"
}

2022-09-20 23:03:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-20 23:03:51 | [Mutex] waiting for: [received:nodes:de1eb6eb-906e-42a1-90d2-7376e08b714d:localhost]

2022-09-20 23:03:51 | [Mutex] received everything.

2022-09-20 23:03:51 | [Mutex] isItemNotified: received:node:de1eb6eb-906e-42a1-90d2-7376e08b714d:localhost:node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de:Node 46eea1cb-812b-4775-b1ec-e1a62ca0b0de :: false

deleteSubnodes 1.031s
2022-09-20 23:03:49 |

2022-09-20 23:03:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:49 | ------------------------------------

2022-09-20 23:03:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1"
}

2022-09-20 23:03:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-20 23:03:50 | [Mutex] waiting for: [received:nodes:213003a9-b5eb-4d93-a959-1dfa90182286:localhost]

2022-09-20 23:03:50 | [Mutex] received everything.

2022-09-20 23:03:50 | [Mutex] isItemNotified: received:node:213003a9-b5eb-4d93-a959-1dfa90182286:localhost:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:Node 0af0383f-ac2e-4ca8-ab29-25cef7351fd1 :: false

2022-09-20 23:03:50 | [Mutex] waiting for: [received:nodes:028a3334-91ed-4d6f-9380-988af7693d08:localhost]

2022-09-20 23:03:50 | [Mutex] received everything.

2022-09-20 23:03:50 | [Mutex] isItemNotified: received:node:028a3334-91ed-4d6f-9380-988af7693d08:localhost:node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1:Node 0af0383f-ac2e-4ca8-ab29-25cef7351fd1 :: false

publishItemsToNodes 0.051s
2022-09-20 23:03:47 |

2022-09-20 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:47 | ------------------------------------

2022-09-20 23:03:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "entry": "<test>item-da439969-6c00-4cc7-9950-b56c84c487c6</test>",
    "item-id": "item-da439969-6c00-4cc7-9950-b56c84c487c6"
}

2022-09-20 23:03:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da439969-6c00-4cc7-9950-b56c84c487c6"
}

2022-09-20 23:03:47 | [Mutex] waiting for: [published:item:notifieditem-da439969-6c00-4cc7-9950-b56c84c487c6:admin@test-domain.com]

2022-09-20 23:03:47 | [Mutex] received everything.

2022-09-20 23:03:47 | [Mutex] isItemNotified: published:item:notifieditem-da439969-6c00-4cc7-9950-b56c84c487c6:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2022-09-20 23:03:47 |

2022-09-20 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:47 | ------------------------------------

2022-09-20 23:03:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "item-id": "item-da439969-6c00-4cc7-9950-b56c84c487c6"
}

2022-09-20 23:03:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da439969-6c00-4cc7-9950-b56c84c487c6"
}

2022-09-20 23:03:47 | [Mutex] waiting for: [retracted:item:notifieditem-da439969-6c00-4cc7-9950-b56c84c487c6:admin@test-domain.com]

2022-09-20 23:03:47 | [Mutex] received everything.

2022-09-20 23:03:47 | [Mutex] isItemNotified: retracted:item:notifieditem-da439969-6c00-4cc7-9950-b56c84c487c6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-09-20 23:03:47 |

2022-09-20 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:47 | ------------------------------------

2022-09-20 23:03:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "item-id": "item-da439969-6c00-4cc7-9950-b56c84c487c6"
}

2022-09-20 23:03:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "item-id": "item-da439969-6c00-4cc7-9950-b56c84c487c6",
    "item": [
        "<item id=\"item-da439969-6c00-4cc7-9950-b56c84c487c6\"><test>item-da439969-6c00-4cc7-9950-b56c84c487c6</test></item>"
    ]
}

2022-09-20 23:03:47 | [Mutex] notify: [retrieved:item:item-da439969-6c00-4cc7-9950-b56c84c487c6:payload-matches:true:localhost]

2022-09-20 23:03:47 | [Mutex] received everything.

2022-09-20 23:03:47 | [Mutex] isItemNotified: retrieved:item:item-da439969-6c00-4cc7-9950-b56c84c487c6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-20 23:03:47 |

2022-09-20 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:47 | ------------------------------------

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

2022-09-20 23:03:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-46eea1cb-812b-4775-b1ec-e1a62ca0b0de",
        "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-20 23:03:47 |

2022-09-20 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:47 | ------------------------------------

2022-09-20 23:03:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1)"
}

2022-09-20 23:03:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-09-20 23:03:46 |

2022-09-20 23:03:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:46 | ------------------------------------

2022-09-20 23:03:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-20 23:03:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.073s
2022-09-20 23:03:47 |

2022-09-20 23:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-20 23:03:47 | ------------------------------------

2022-09-20 23:03:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0af0383f-ac2e-4ca8-ab29-25cef7351fd1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-20 23:03:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}