Generated by TestNG with ReportNG at 23:01 PDT on Thursday 26 May 2022
root@61c39d2ed70d / 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.599s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.028s
2022-05-26 23:15:31 |

2022-05-26 23:15:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:31 | ------------------------------------

2022-05-26 23:15:31 | [Mutex] waiting for: [configured:node:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:node-b7433625-c317-4127-859b-98237a60d22d]

2022-05-26 23:15:31 | [Mutex] received everything.

2022-05-26 23:15:31 | [Mutex] isItemNotified: configured:node:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:node-b7433625-c317-4127-859b-98237a60d22d :: true

2022-05-26 23:15:32 | [Mutex] waiting for: [received:nodes:2993540d-9376-485b-8d15-9ce6d1c2c517:localhost]

2022-05-26 23:15:32 | [Mutex] received everything.

2022-05-26 23:15:32 | [Mutex] isItemNotified: received:node:2993540d-9376-485b-8d15-9ce6d1c2c517:localhost:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:Node 57357c19-0c3b-4f37-96f6-6ec13502b8f8 :: true

2022-05-26 23:15:32 | [Mutex] waiting for: [received:nodes:3501c285-86d1-4081-8a32-ad6c60cc2fd5:localhost]

2022-05-26 23:15:32 | [Mutex] received everything.

2022-05-26 23:15:32 | [Mutex] isItemNotified: received:node:3501c285-86d1-4081-8a32-ad6c60cc2fd5:localhost:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:Node 57357c19-0c3b-4f37-96f6-6ec13502b8f8 :: false

createNodes 1.574s
2022-05-26 23:15:28 |

2022-05-26 23:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:28 | ------------------------------------

2022-05-26 23:15:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "pubsub#title": "Node 57357c19-0c3b-4f37-96f6-6ec13502b8f8"
}

2022-05-26 23:15:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 23:15:30 | [Mutex] waiting for: [received:nodes:460ce9f4-ef85-4dae-91e5-13cb45308eb4:localhost]

2022-05-26 23:15:30 | [Mutex] received everything.

2022-05-26 23:15:30 | [Mutex] isItemNotified: received:node:460ce9f4-ef85-4dae-91e5-13cb45308eb4:localhost:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:Node 57357c19-0c3b-4f37-96f6-6ec13502b8f8 :: true

createSubnodes 1.024s
2022-05-26 23:15:30 |

2022-05-26 23:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:30 | ------------------------------------

2022-05-26 23:15:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b7433625-c317-4127-859b-98237a60d22d",
    "pubsub#title": "Node b7433625-c317-4127-859b-98237a60d22d"
}

2022-05-26 23:15:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 23:15:31 | [Mutex] waiting for: [received:nodes:a6ed7062-9f06-4953-83cd-ae6402cdef6a:localhost]

2022-05-26 23:15:31 | [Mutex] waiting for: [received:nodes:a6ed7062-9f06-4953-83cd-ae6402cdef6a:localhost]

2022-05-26 23:15:31 | [Mutex] received everything.

2022-05-26 23:15:31 | [Mutex] isItemNotified: received:node:a6ed7062-9f06-4953-83cd-ae6402cdef6a:localhost:node-b7433625-c317-4127-859b-98237a60d22d:Node b7433625-c317-4127-859b-98237a60d22d :: true

deleteNodes 1.022s
2022-05-26 23:15:35 |

2022-05-26 23:15:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:35 | ------------------------------------

2022-05-26 23:15:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b7433625-c317-4127-859b-98237a60d22d"
}

2022-05-26 23:15:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 23:15:36 | [Mutex] waiting for: [received:nodes:d54b8b67-e3e9-473c-8a64-19030126485d:localhost]

2022-05-26 23:15:36 | [Mutex] waiting for: [received:nodes:d54b8b67-e3e9-473c-8a64-19030126485d:localhost]

2022-05-26 23:15:36 | [Mutex] waiting for: [received:nodes:d54b8b67-e3e9-473c-8a64-19030126485d:localhost]

2022-05-26 23:15:36 | [Mutex] received everything.

2022-05-26 23:15:36 | [Mutex] isItemNotified: received:node:d54b8b67-e3e9-473c-8a64-19030126485d:localhost:node-b7433625-c317-4127-859b-98237a60d22d:Node b7433625-c317-4127-859b-98237a60d22d :: false

deleteSubnodes 1.024s
2022-05-26 23:15:34 |

2022-05-26 23:15:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:34 | ------------------------------------

2022-05-26 23:15:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8"
}

2022-05-26 23:15:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-26 23:15:35 | [Mutex] waiting for: [received:nodes:ebc3aee4-14ad-48fb-8443-70ec5f5e244f:localhost]

2022-05-26 23:15:35 | [Mutex] received everything.

2022-05-26 23:15:35 | [Mutex] isItemNotified: received:node:ebc3aee4-14ad-48fb-8443-70ec5f5e244f:localhost:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:Node 57357c19-0c3b-4f37-96f6-6ec13502b8f8 :: false

2022-05-26 23:15:35 | [Mutex] waiting for: [received:nodes:dfa76d24-5c23-41e0-912e-fcc6ff3f6dc9:localhost]

2022-05-26 23:15:35 | [Mutex] received everything.

2022-05-26 23:15:35 | [Mutex] isItemNotified: received:node:dfa76d24-5c23-41e0-912e-fcc6ff3f6dc9:localhost:node-57357c19-0c3b-4f37-96f6-6ec13502b8f8:Node 57357c19-0c3b-4f37-96f6-6ec13502b8f8 :: false

publishItemsToNodes 0.054s
2022-05-26 23:15:33 |

2022-05-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:33 | ------------------------------------

2022-05-26 23:15:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "entry": "<test>item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc</test>",
    "item-id": "item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc"
}

2022-05-26 23:15:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc"
}

2022-05-26 23:15:33 | [Mutex] waiting for: [published:item:notifieditem-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc:admin@test-domain.com]

2022-05-26 23:15:33 | [Mutex] received everything.

2022-05-26 23:15:33 | [Mutex] isItemNotified: published:item:notifieditem-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2022-05-26 23:15:33 |

2022-05-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:33 | ------------------------------------

2022-05-26 23:15:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "item-id": "item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc"
}

2022-05-26 23:15:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc"
}

2022-05-26 23:15:33 | [Mutex] received everything.

2022-05-26 23:15:33 | [Mutex] isItemNotified: retracted:item:notifieditem-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-05-26 23:15:33 |

2022-05-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:33 | ------------------------------------

2022-05-26 23:15:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "item-id": "item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc"
}

2022-05-26 23:15:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "item-id": "item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc",
    "item": [
        "<item id=\"item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc\"><test>item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc</test></item>"
    ]
}

2022-05-26 23:15:33 | [Mutex] notify: [retrieved:item:item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc:payload-matches:true:localhost]

2022-05-26 23:15:33 | [Mutex] received everything.

2022-05-26 23:15:33 | [Mutex] isItemNotified: retrieved:item:item-4e2cdbd8-8af0-4d10-95fe-03bfff4621cc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-05-26 23:15:33 |

2022-05-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:33 | ------------------------------------

2022-05-26 23:15:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-26 23:15:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
        "test",
        "node-b7433625-c317-4127-859b-98237a60d22d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-26 23:15:33 |

2022-05-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:33 | ------------------------------------

2022-05-26 23:15:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-57357c19-0c3b-4f37-96f6-6ec13502b8f8)"
}

2022-05-26 23:15:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-05-26 23:15:32 |

2022-05-26 23:15:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:32 | ------------------------------------

2022-05-26 23:15:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-26 23:15:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.085s
2022-05-26 23:15:33 |

2022-05-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-26 23:15:33 | ------------------------------------

2022-05-26 23:15:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-57357c19-0c3b-4f37-96f6-6ec13502b8f8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-26 23:15:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}