Generated by TestNG with ReportNG at 22:26 PDT on Friday 11 September 2020
root@4e397671a0f0 / 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 : 9.038s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2020-09-11 22:42:59 |

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

2020-09-11 22:42:59 | ------------------------------------

2020-09-11 22:42:59 | [Mutex] waiting for: [configured:node:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3]

2020-09-11 22:42:59 | [Mutex] received everything.

2020-09-11 22:42:59 | [Mutex] isItemNotified: configured:node:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3 :: true

2020-09-11 22:43:00 | [Mutex] waiting for: [received:nodes:641f93ef-b574-4d9b-98b3-6fef3e431976:localhost]

2020-09-11 22:43:00 | [Mutex] waiting for: [received:nodes:641f93ef-b574-4d9b-98b3-6fef3e431976:localhost]

2020-09-11 22:43:00 | [Mutex] received everything.

2020-09-11 22:43:00 | [Mutex] isItemNotified: received:node:641f93ef-b574-4d9b-98b3-6fef3e431976:localhost:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:Node 19f23f62-8fc5-4036-b922-f2e7ec8d1a2f :: true

2020-09-11 22:43:00 | [Mutex] waiting for: [received:nodes:e4c4da25-e8c0-4885-b1d5-043452633be9:localhost]

2020-09-11 22:43:00 | [Mutex] received everything.

2020-09-11 22:43:00 | [Mutex] isItemNotified: received:node:e4c4da25-e8c0-4885-b1d5-043452633be9:localhost:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:Node 19f23f62-8fc5-4036-b922-f2e7ec8d1a2f :: false

createNodes 1.835s
2020-09-11 22:42:56 |

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

2020-09-11 22:42:56 | ------------------------------------

2020-09-11 22:42:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "pubsub#title": "Node 19f23f62-8fc5-4036-b922-f2e7ec8d1a2f"
}

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

2020-09-11 22:42:58 | [Mutex] waiting for: [received:nodes:a6faf0a5-60b6-4da8-a806-a94ce5221a5d:localhost]

2020-09-11 22:42:58 | [Mutex] waiting for: [received:nodes:a6faf0a5-60b6-4da8-a806-a94ce5221a5d:localhost]

2020-09-11 22:42:58 | [Mutex] received everything.

2020-09-11 22:42:58 | [Mutex] isItemNotified: received:node:a6faf0a5-60b6-4da8-a806-a94ce5221a5d:localhost:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:Node 19f23f62-8fc5-4036-b922-f2e7ec8d1a2f :: true

createSubnodes 1.022s
2020-09-11 22:42:58 |

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

2020-09-11 22:42:58 | ------------------------------------

2020-09-11 22:42:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3",
    "pubsub#title": "Node d062c16d-16f1-43e6-8bcf-0770e9ac4ea3"
}

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

2020-09-11 22:42:59 | [Mutex] waiting for: [received:nodes:3ad7b4e0-f80d-4425-80f6-a558a1017e15:localhost]

2020-09-11 22:42:59 | [Mutex] received everything.

2020-09-11 22:42:59 | [Mutex] isItemNotified: received:node:3ad7b4e0-f80d-4425-80f6-a558a1017e15:localhost:node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3:Node d062c16d-16f1-43e6-8bcf-0770e9ac4ea3 :: true

deleteNodes 1.023s
2020-09-11 22:43:04 |

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

2020-09-11 22:43:04 | ------------------------------------

2020-09-11 22:43:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3"
}

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

2020-09-11 22:43:05 | [Mutex] waiting for: [received:nodes:c3d0ea3f-f66f-4889-b6f8-1baa9b5b3e38:localhost]

2020-09-11 22:43:05 | [Mutex] received everything.

2020-09-11 22:43:05 | [Mutex] isItemNotified: received:node:c3d0ea3f-f66f-4889-b6f8-1baa9b5b3e38:localhost:node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3:Node d062c16d-16f1-43e6-8bcf-0770e9ac4ea3 :: false

deleteSubnodes 1.022s
2020-09-11 22:43:03 |

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

2020-09-11 22:43:03 | ------------------------------------

2020-09-11 22:43:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f"
}

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

2020-09-11 22:43:04 | [Mutex] waiting for: [received:nodes:884ce23b-fc19-481e-946d-af7ff2c10a70:localhost]

2020-09-11 22:43:04 | [Mutex] received everything.

2020-09-11 22:43:04 | [Mutex] isItemNotified: received:node:884ce23b-fc19-481e-946d-af7ff2c10a70:localhost:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:Node 19f23f62-8fc5-4036-b922-f2e7ec8d1a2f :: false

2020-09-11 22:43:04 | [Mutex] waiting for: [received:nodes:66ea79db-61ea-4624-80f5-5802c7e25d92:localhost]

2020-09-11 22:43:04 | [Mutex] received everything.

2020-09-11 22:43:04 | [Mutex] isItemNotified: received:node:66ea79db-61ea-4624-80f5-5802c7e25d92:localhost:node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f:Node 19f23f62-8fc5-4036-b922-f2e7ec8d1a2f :: false

publishItemsToNodes 0.031s
2020-09-11 22:43:01 |

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

2020-09-11 22:43:01 | ------------------------------------

2020-09-11 22:43:01 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "entry": "<test>item-329894d4-fd6c-447e-9b96-0fafe4069749</test>",
    "item-id": "item-329894d4-fd6c-447e-9b96-0fafe4069749"
}

2020-09-11 22:43:01 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-329894d4-fd6c-447e-9b96-0fafe4069749"
}

2020-09-11 22:43:01 | [Mutex] waiting for: [published:item:notifieditem-329894d4-fd6c-447e-9b96-0fafe4069749:admin@test-domain.com]

2020-09-11 22:43:01 | [Mutex] received everything.

2020-09-11 22:43:01 | [Mutex] isItemNotified: published:item:notifieditem-329894d4-fd6c-447e-9b96-0fafe4069749:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2020-09-11 22:43:01 |

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

2020-09-11 22:43:01 | ------------------------------------

2020-09-11 22:43:01 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "item-id": "item-329894d4-fd6c-447e-9b96-0fafe4069749"
}

2020-09-11 22:43:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-329894d4-fd6c-447e-9b96-0fafe4069749"
}

2020-09-11 22:43:02 | [Mutex] received everything.

2020-09-11 22:43:02 | [Mutex] isItemNotified: retracted:item:notifieditem-329894d4-fd6c-447e-9b96-0fafe4069749:admin@test-domain.com :: true

retrieveItemsFromNodes 0.071s
2020-09-11 22:43:01 |

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

2020-09-11 22:43:01 | ------------------------------------

2020-09-11 22:43:01 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "item-id": "item-329894d4-fd6c-447e-9b96-0fafe4069749"
}

2020-09-11 22:43:01 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "item-id": "item-329894d4-fd6c-447e-9b96-0fafe4069749",
    "item": [
        "<item id=\"item-329894d4-fd6c-447e-9b96-0fafe4069749\"><test>item-329894d4-fd6c-447e-9b96-0fafe4069749</test></item>"
    ]
}

2020-09-11 22:43:01 | [Mutex] notify: [retrieved:item:item-329894d4-fd6c-447e-9b96-0fafe4069749:payload-matches:true:localhost]

2020-09-11 22:43:01 | [Mutex] received everything.

2020-09-11 22:43:01 | [Mutex] isItemNotified: retrieved:item:item-329894d4-fd6c-447e-9b96-0fafe4069749:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-11 22:43:01 |

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

2020-09-11 22:43:01 | ------------------------------------

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

2020-09-11 22:43:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
        "test",
        "node-d062c16d-16f1-43e6-8bcf-0770e9ac4ea3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-11 22:43:01 |

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

2020-09-11 22:43:01 | ------------------------------------

2020-09-11 22:43:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f)"
}

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

subscribeNodes 1.011s
2020-09-11 22:43:00 |

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

2020-09-11 22:43:00 | ------------------------------------

2020-09-11 22:43:00 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2020-09-11 22:43:02 |

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

2020-09-11 22:43:02 | ------------------------------------

2020-09-11 22:43:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-19f23f62-8fc5-4036-b922-f2e7ec8d1a2f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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