Generated by TestNG with ReportNG at 11:32 PDT on Wednesday 07 April 2021
root@87f6aca6b6f2 / 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.227s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2021-04-07 11:51:00 |

2021-04-07 11:51:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:00 | ------------------------------------

2021-04-07 11:51:00 | [Mutex] waiting for: [configured:node:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:node-639b037e-59a6-4ae3-9c46-43c380996bca]

2021-04-07 11:51:00 | [Mutex] received everything.

2021-04-07 11:51:00 | [Mutex] isItemNotified: configured:node:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:node-639b037e-59a6-4ae3-9c46-43c380996bca :: true

2021-04-07 11:51:01 | [Mutex] waiting for: [received:nodes:1f67e54f-e751-4a6e-b7e4-07ff7c02d517:localhost]

2021-04-07 11:51:01 | [Mutex] received everything.

2021-04-07 11:51:01 | [Mutex] isItemNotified: received:node:1f67e54f-e751-4a6e-b7e4-07ff7c02d517:localhost:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:Node 85dd7c63-c142-494d-b04d-af1a1c43a7d8 :: true

2021-04-07 11:51:01 | [Mutex] waiting for: [received:nodes:4cc5532f-7df5-4643-9f9d-fbc59cb25cbb:localhost]

2021-04-07 11:51:01 | [Mutex] received everything.

2021-04-07 11:51:01 | [Mutex] isItemNotified: received:node:4cc5532f-7df5-4643-9f9d-fbc59cb25cbb:localhost:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:Node 85dd7c63-c142-494d-b04d-af1a1c43a7d8 :: false

createNodes 1.786s
2021-04-07 11:50:57 |

2021-04-07 11:50:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:50:57 | ------------------------------------

2021-04-07 11:50:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "pubsub#title": "Node 85dd7c63-c142-494d-b04d-af1a1c43a7d8"
}

2021-04-07 11:50:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:50:59 | [Mutex] waiting for: [received:nodes:ceb07d9b-0f02-4913-925c-f633ddcd00f1:localhost]

2021-04-07 11:50:59 | [Mutex] waiting for: [received:nodes:ceb07d9b-0f02-4913-925c-f633ddcd00f1:localhost]

2021-04-07 11:50:59 | [Mutex] received everything.

2021-04-07 11:50:59 | [Mutex] isItemNotified: received:node:ceb07d9b-0f02-4913-925c-f633ddcd00f1:localhost:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:Node 85dd7c63-c142-494d-b04d-af1a1c43a7d8 :: true

createSubnodes 1.029s
2021-04-07 11:50:59 |

2021-04-07 11:50:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:50:59 | ------------------------------------

2021-04-07 11:50:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-639b037e-59a6-4ae3-9c46-43c380996bca",
    "pubsub#title": "Node 639b037e-59a6-4ae3-9c46-43c380996bca"
}

2021-04-07 11:50:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:51:00 | [Mutex] waiting for: [received:nodes:c1342385-8c79-4b7a-a4f6-bf48108ae94e:localhost]

2021-04-07 11:51:00 | [Mutex] received everything.

2021-04-07 11:51:00 | [Mutex] isItemNotified: received:node:c1342385-8c79-4b7a-a4f6-bf48108ae94e:localhost:node-639b037e-59a6-4ae3-9c46-43c380996bca:Node 639b037e-59a6-4ae3-9c46-43c380996bca :: true

deleteNodes 1.022s
2021-04-07 11:51:05 |

2021-04-07 11:51:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:05 | ------------------------------------

2021-04-07 11:51:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-639b037e-59a6-4ae3-9c46-43c380996bca"
}

2021-04-07 11:51:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:51:06 | [Mutex] waiting for: [received:nodes:53b50770-2438-4517-a36e-356429389f4a:localhost]

2021-04-07 11:51:06 | [Mutex] received everything.

2021-04-07 11:51:06 | [Mutex] isItemNotified: received:node:53b50770-2438-4517-a36e-356429389f4a:localhost:node-639b037e-59a6-4ae3-9c46-43c380996bca:Node 639b037e-59a6-4ae3-9c46-43c380996bca :: false

deleteSubnodes 1.042s
2021-04-07 11:51:04 |

2021-04-07 11:51:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:04 | ------------------------------------

2021-04-07 11:51:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8"
}

2021-04-07 11:51:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-07 11:51:05 | [Mutex] waiting for: [received:nodes:8a1efc97-ab51-4338-8305-c344c7790695:localhost]

2021-04-07 11:51:05 | [Mutex] waiting for: [received:nodes:8a1efc97-ab51-4338-8305-c344c7790695:localhost]

2021-04-07 11:51:05 | [Mutex] received everything.

2021-04-07 11:51:05 | [Mutex] isItemNotified: received:node:8a1efc97-ab51-4338-8305-c344c7790695:localhost:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:Node 85dd7c63-c142-494d-b04d-af1a1c43a7d8 :: false

2021-04-07 11:51:05 | [Mutex] waiting for: [received:nodes:1669b12f-974d-4a41-8d97-b13d59cc3182:localhost]

2021-04-07 11:51:05 | [Mutex] received everything.

2021-04-07 11:51:05 | [Mutex] isItemNotified: received:node:1669b12f-974d-4a41-8d97-b13d59cc3182:localhost:node-85dd7c63-c142-494d-b04d-af1a1c43a7d8:Node 85dd7c63-c142-494d-b04d-af1a1c43a7d8 :: false

publishItemsToNodes 0.063s
2021-04-07 11:51:02 |

2021-04-07 11:51:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:02 | ------------------------------------

2021-04-07 11:51:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "entry": "<test>item-f2e2b025-9fd1-400e-8167-10d42ed5397d</test>",
    "item-id": "item-f2e2b025-9fd1-400e-8167-10d42ed5397d"
}

2021-04-07 11:51:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2e2b025-9fd1-400e-8167-10d42ed5397d"
}

2021-04-07 11:51:02 | [Mutex] waiting for: [published:item:notifieditem-f2e2b025-9fd1-400e-8167-10d42ed5397d:admin@test-domain.com]

2021-04-07 11:51:02 | [Mutex] received everything.

2021-04-07 11:51:02 | [Mutex] isItemNotified: published:item:notifieditem-f2e2b025-9fd1-400e-8167-10d42ed5397d:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-04-07 11:51:03 |

2021-04-07 11:51:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:03 | ------------------------------------

2021-04-07 11:51:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "item-id": "item-f2e2b025-9fd1-400e-8167-10d42ed5397d"
}

2021-04-07 11:51:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f2e2b025-9fd1-400e-8167-10d42ed5397d"
}

2021-04-07 11:51:03 | [Mutex] received everything.

2021-04-07 11:51:03 | [Mutex] isItemNotified: retracted:item:notifieditem-f2e2b025-9fd1-400e-8167-10d42ed5397d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.040s
2021-04-07 11:51:02 |

2021-04-07 11:51:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:02 | ------------------------------------

2021-04-07 11:51:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "item-id": "item-f2e2b025-9fd1-400e-8167-10d42ed5397d"
}

2021-04-07 11:51:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "item-id": "item-f2e2b025-9fd1-400e-8167-10d42ed5397d",
    "item": [
        "<item id=\"item-f2e2b025-9fd1-400e-8167-10d42ed5397d\"><test>item-f2e2b025-9fd1-400e-8167-10d42ed5397d</test></item>"
    ]
}

2021-04-07 11:51:02 | [Mutex] notify: [retrieved:item:item-f2e2b025-9fd1-400e-8167-10d42ed5397d:payload-matches:true:localhost]

2021-04-07 11:51:02 | [Mutex] received everything.

2021-04-07 11:51:02 | [Mutex] isItemNotified: retrieved:item:item-f2e2b025-9fd1-400e-8167-10d42ed5397d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.089s
2021-04-07 11:51:02 |

2021-04-07 11:51:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:02 | ------------------------------------

2021-04-07 11:51:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-07 11:51:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-639b037e-59a6-4ae3-9c46-43c380996bca",
        "test",
        "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-07 11:51:03 |

2021-04-07 11:51:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:03 | ------------------------------------

2021-04-07 11:51:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-85dd7c63-c142-494d-b04d-af1a1c43a7d8)"
}

2021-04-07 11:51:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-04-07 11:51:01 |

2021-04-07 11:51:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:01 | ------------------------------------

2021-04-07 11:51:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-07 11:51:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2021-04-07 11:51:03 |

2021-04-07 11:51:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-07 11:51:03 | ------------------------------------

2021-04-07 11:51:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-85dd7c63-c142-494d-b04d-af1a1c43a7d8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-07 11:51:03 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}