Generated by TestNG with ReportNG at 22:41 PDT on Wednesday 23 September 2020
root@d2a27fcc5bc3 / Java 11.0.8 (Ubuntu) / 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.989s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2020-09-23 22:57:41 |

2020-09-23 22:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:41 | ------------------------------------

2020-09-23 22:57:41 | [Mutex] waiting for: [configured:node:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:node-c8a5762f-0140-419d-af5b-323c207c5a58]

2020-09-23 22:57:41 | [Mutex] received everything.

2020-09-23 22:57:41 | [Mutex] isItemNotified: configured:node:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:node-c8a5762f-0140-419d-af5b-323c207c5a58 :: true

2020-09-23 22:57:42 | [Mutex] waiting for: [received:nodes:10e161ef-9520-4faa-a619-57f76655b18f:localhost]

2020-09-23 22:57:42 | [Mutex] received everything.

2020-09-23 22:57:42 | [Mutex] isItemNotified: received:node:10e161ef-9520-4faa-a619-57f76655b18f:localhost:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:Node 1d4c448c-8b71-4730-91d8-48d2c4a854a1 :: true

2020-09-23 22:57:42 | [Mutex] waiting for: [received:nodes:a7c01e75-3808-4677-94b2-0cb60b5d0caf:localhost]

2020-09-23 22:57:42 | [Mutex] received everything.

2020-09-23 22:57:42 | [Mutex] isItemNotified: received:node:a7c01e75-3808-4677-94b2-0cb60b5d0caf:localhost:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:Node 1d4c448c-8b71-4730-91d8-48d2c4a854a1 :: false

createNodes 1.670s
2020-09-23 22:57:38 |

2020-09-23 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:38 | ------------------------------------

2020-09-23 22:57:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "pubsub#title": "Node 1d4c448c-8b71-4730-91d8-48d2c4a854a1"
}

2020-09-23 22:57:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-23 22:57:39 | [Mutex] waiting for: [received:nodes:11308e8b-e3d0-46f6-98b4-fd30a0a57c8c:localhost]

2020-09-23 22:57:39 | [Mutex] waiting for: [received:nodes:11308e8b-e3d0-46f6-98b4-fd30a0a57c8c:localhost]

2020-09-23 22:57:39 | [Mutex] waiting for: [received:nodes:11308e8b-e3d0-46f6-98b4-fd30a0a57c8c:localhost]

2020-09-23 22:57:39 | [Mutex] received everything.

2020-09-23 22:57:39 | [Mutex] isItemNotified: received:node:11308e8b-e3d0-46f6-98b4-fd30a0a57c8c:localhost:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:Node 1d4c448c-8b71-4730-91d8-48d2c4a854a1 :: true

createSubnodes 1.064s
2020-09-23 22:57:39 |

2020-09-23 22:57:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:39 | ------------------------------------

2020-09-23 22:57:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c8a5762f-0140-419d-af5b-323c207c5a58",
    "pubsub#title": "Node c8a5762f-0140-419d-af5b-323c207c5a58"
}

2020-09-23 22:57:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-23 22:57:41 | [Mutex] waiting for: [received:nodes:655371b5-ecbe-49a6-8aeb-bde2f6450d7b:localhost]

2020-09-23 22:57:41 | [Mutex] received everything.

2020-09-23 22:57:41 | [Mutex] isItemNotified: received:node:655371b5-ecbe-49a6-8aeb-bde2f6450d7b:localhost:node-c8a5762f-0140-419d-af5b-323c207c5a58:Node c8a5762f-0140-419d-af5b-323c207c5a58 :: true

deleteNodes 1.027s
2020-09-23 22:57:45 |

2020-09-23 22:57:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:45 | ------------------------------------

2020-09-23 22:57:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c8a5762f-0140-419d-af5b-323c207c5a58"
}

2020-09-23 22:57:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-23 22:57:46 | [Mutex] waiting for: [received:nodes:47768495-3c5a-47e2-bd5c-9729d76171f8:localhost]

2020-09-23 22:57:46 | [Mutex] waiting for: [received:nodes:47768495-3c5a-47e2-bd5c-9729d76171f8:localhost]

2020-09-23 22:57:46 | [Mutex] received everything.

2020-09-23 22:57:46 | [Mutex] isItemNotified: received:node:47768495-3c5a-47e2-bd5c-9729d76171f8:localhost:node-c8a5762f-0140-419d-af5b-323c207c5a58:Node c8a5762f-0140-419d-af5b-323c207c5a58 :: false

deleteSubnodes 1.031s
2020-09-23 22:57:44 |

2020-09-23 22:57:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:44 | ------------------------------------

2020-09-23 22:57:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1"
}

2020-09-23 22:57:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-23 22:57:45 | [Mutex] waiting for: [received:nodes:5070e8ab-8ea8-45db-a1f7-0214c9a95ae7:localhost]

2020-09-23 22:57:45 | [Mutex] received everything.

2020-09-23 22:57:45 | [Mutex] isItemNotified: received:node:5070e8ab-8ea8-45db-a1f7-0214c9a95ae7:localhost:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:Node 1d4c448c-8b71-4730-91d8-48d2c4a854a1 :: false

2020-09-23 22:57:45 | [Mutex] waiting for: [received:nodes:bdb7aa26-5d67-45ee-bfc7-dd15b96e6d34:localhost]

2020-09-23 22:57:45 | [Mutex] received everything.

2020-09-23 22:57:45 | [Mutex] isItemNotified: received:node:bdb7aa26-5d67-45ee-bfc7-dd15b96e6d34:localhost:node-1d4c448c-8b71-4730-91d8-48d2c4a854a1:Node 1d4c448c-8b71-4730-91d8-48d2c4a854a1 :: false

publishItemsToNodes 0.058s
2020-09-23 22:57:43 |

2020-09-23 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:43 | ------------------------------------

2020-09-23 22:57:43 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "entry": "<test>item-9e270bbc-7b80-451e-8e16-b7408b327001</test>",
    "item-id": "item-9e270bbc-7b80-451e-8e16-b7408b327001"
}

2020-09-23 22:57:43 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e270bbc-7b80-451e-8e16-b7408b327001"
}

2020-09-23 22:57:43 | [Mutex] waiting for: [published:item:notifieditem-9e270bbc-7b80-451e-8e16-b7408b327001:admin@test-domain.com]

2020-09-23 22:57:43 | [Mutex] received everything.

2020-09-23 22:57:43 | [Mutex] isItemNotified: published:item:notifieditem-9e270bbc-7b80-451e-8e16-b7408b327001:admin@test-domain.com :: true

retractItemsFromNodes 0.076s
2020-09-23 22:57:43 |

2020-09-23 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:43 | ------------------------------------

2020-09-23 22:57:43 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "item-id": "item-9e270bbc-7b80-451e-8e16-b7408b327001"
}

2020-09-23 22:57:43 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9e270bbc-7b80-451e-8e16-b7408b327001"
}

2020-09-23 22:57:43 | [Mutex] received everything.

2020-09-23 22:57:43 | [Mutex] isItemNotified: retracted:item:notifieditem-9e270bbc-7b80-451e-8e16-b7408b327001:admin@test-domain.com :: true

retrieveItemsFromNodes 0.037s
2020-09-23 22:57:43 |

2020-09-23 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:43 | ------------------------------------

2020-09-23 22:57:43 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "item-id": "item-9e270bbc-7b80-451e-8e16-b7408b327001"
}

2020-09-23 22:57:43 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "item-id": "item-9e270bbc-7b80-451e-8e16-b7408b327001",
    "item": [
        "<item id=\"item-9e270bbc-7b80-451e-8e16-b7408b327001\"><test>item-9e270bbc-7b80-451e-8e16-b7408b327001</test></item>"
    ]
}

2020-09-23 22:57:43 | [Mutex] notify: [retrieved:item:item-9e270bbc-7b80-451e-8e16-b7408b327001:payload-matches:true:localhost]

2020-09-23 22:57:43 | [Mutex] received everything.

2020-09-23 22:57:43 | [Mutex] isItemNotified: retrieved:item:item-9e270bbc-7b80-451e-8e16-b7408b327001:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-23 22:57:43 |

2020-09-23 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:43 | ------------------------------------

2020-09-23 22:57:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-23 22:57:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
        "test",
        "node-c8a5762f-0140-419d-af5b-323c207c5a58"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-23 22:57:43 |

2020-09-23 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:43 | ------------------------------------

2020-09-23 22:57:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1d4c448c-8b71-4730-91d8-48d2c4a854a1)"
}

2020-09-23 22:57:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-09-23 22:57:42 |

2020-09-23 22:57:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:42 | ------------------------------------

2020-09-23 22:57:42 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-23 22:57:42 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2020-09-23 22:57:43 |

2020-09-23 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-23 22:57:43 | ------------------------------------

2020-09-23 22:57:43 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1d4c448c-8b71-4730-91d8-48d2c4a854a1",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-23 22:57:43 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}