Generated by TestNG with ReportNG at 22:16 PDT on Monday 21 June 2021
root@b2c2a8eba6e6 / 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.897s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.096s
2021-06-21 22:35:14 |

2021-06-21 22:35:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:14 | ------------------------------------

2021-06-21 22:35:14 | [Mutex] waiting for: [configured:node:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:node-6d82d035-34bb-4b66-937c-955322520104]

2021-06-21 22:35:14 | [Mutex] received everything.

2021-06-21 22:35:14 | [Mutex] isItemNotified: configured:node:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:node-6d82d035-34bb-4b66-937c-955322520104 :: true

2021-06-21 22:35:15 | [Mutex] waiting for: [received:nodes:6a38e180-3dc9-410b-badb-26f5bac15351:localhost]

2021-06-21 22:35:15 | [Mutex] received everything.

2021-06-21 22:35:15 | [Mutex] isItemNotified: received:node:6a38e180-3dc9-410b-badb-26f5bac15351:localhost:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:Node 0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7 :: true

2021-06-21 22:35:15 | [Mutex] waiting for: [received:nodes:52eecdae-6a55-4562-a72f-04b4b09b1b13:localhost]

2021-06-21 22:35:15 | [Mutex] received everything.

2021-06-21 22:35:15 | [Mutex] isItemNotified: received:node:52eecdae-6a55-4562-a72f-04b4b09b1b13:localhost:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:Node 0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7 :: false

createNodes 1.610s
2021-06-21 22:35:11 |

2021-06-21 22:35:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:11 | ------------------------------------

2021-06-21 22:35:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "pubsub#title": "Node 0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7"
}

2021-06-21 22:35:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:35:13 | [Mutex] waiting for: [received:nodes:d4f7003e-8af4-4f94-bcea-9460421f72c0:localhost]

2021-06-21 22:35:13 | [Mutex] received everything.

2021-06-21 22:35:13 | [Mutex] isItemNotified: received:node:d4f7003e-8af4-4f94-bcea-9460421f72c0:localhost:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:Node 0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7 :: true

createSubnodes 1.024s
2021-06-21 22:35:13 |

2021-06-21 22:35:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:13 | ------------------------------------

2021-06-21 22:35:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6d82d035-34bb-4b66-937c-955322520104",
    "pubsub#title": "Node 6d82d035-34bb-4b66-937c-955322520104"
}

2021-06-21 22:35:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:35:14 | [Mutex] waiting for: [received:nodes:037e0d19-be6a-41da-9d20-5fe06cf20707:localhost]

2021-06-21 22:35:14 | [Mutex] waiting for: [received:nodes:037e0d19-be6a-41da-9d20-5fe06cf20707:localhost]

2021-06-21 22:35:14 | [Mutex] received everything.

2021-06-21 22:35:14 | [Mutex] isItemNotified: received:node:037e0d19-be6a-41da-9d20-5fe06cf20707:localhost:node-6d82d035-34bb-4b66-937c-955322520104:Node 6d82d035-34bb-4b66-937c-955322520104 :: true

deleteNodes 1.021s
2021-06-21 22:35:18 |

2021-06-21 22:35:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:18 | ------------------------------------

2021-06-21 22:35:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6d82d035-34bb-4b66-937c-955322520104"
}

2021-06-21 22:35:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:35:20 | [Mutex] waiting for: [received:nodes:1803ffe6-f5ce-422b-bfc3-e5a4e6a36adc:localhost]

2021-06-21 22:35:20 | [Mutex] received everything.

2021-06-21 22:35:20 | [Mutex] isItemNotified: received:node:1803ffe6-f5ce-422b-bfc3-e5a4e6a36adc:localhost:node-6d82d035-34bb-4b66-937c-955322520104:Node 6d82d035-34bb-4b66-937c-955322520104 :: false

deleteSubnodes 1.027s
2021-06-21 22:35:17 |

2021-06-21 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:17 | ------------------------------------

2021-06-21 22:35:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7"
}

2021-06-21 22:35:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-06-21 22:35:18 | [Mutex] waiting for: [received:nodes:8aa15075-b002-424e-b381-31478bc03ca5:localhost]

2021-06-21 22:35:18 | [Mutex] received everything.

2021-06-21 22:35:18 | [Mutex] isItemNotified: received:node:8aa15075-b002-424e-b381-31478bc03ca5:localhost:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:Node 0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7 :: false

2021-06-21 22:35:18 | [Mutex] waiting for: [received:nodes:d4bb4851-e986-4792-ae55-51b17056dce6:localhost]

2021-06-21 22:35:18 | [Mutex] received everything.

2021-06-21 22:35:18 | [Mutex] isItemNotified: received:node:d4bb4851-e986-4792-ae55-51b17056dce6:localhost:node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7:Node 0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7 :: false

publishItemsToNodes 0.071s
2021-06-21 22:35:16 |

2021-06-21 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:16 | ------------------------------------

2021-06-21 22:35:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "entry": "<test>item-55fd6e5f-4507-4b7c-80e9-b2609e88446e</test>",
    "item-id": "item-55fd6e5f-4507-4b7c-80e9-b2609e88446e"
}

2021-06-21 22:35:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55fd6e5f-4507-4b7c-80e9-b2609e88446e"
}

2021-06-21 22:35:16 | [Mutex] waiting for: [published:item:notifieditem-55fd6e5f-4507-4b7c-80e9-b2609e88446e:admin@test-domain.com]

2021-06-21 22:35:16 | [Mutex] received everything.

2021-06-21 22:35:16 | [Mutex] isItemNotified: published:item:notifieditem-55fd6e5f-4507-4b7c-80e9-b2609e88446e:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-06-21 22:35:16 |

2021-06-21 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:16 | ------------------------------------

2021-06-21 22:35:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "item-id": "item-55fd6e5f-4507-4b7c-80e9-b2609e88446e"
}

2021-06-21 22:35:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-55fd6e5f-4507-4b7c-80e9-b2609e88446e"
}

2021-06-21 22:35:16 | [Mutex] received everything.

2021-06-21 22:35:16 | [Mutex] isItemNotified: retracted:item:notifieditem-55fd6e5f-4507-4b7c-80e9-b2609e88446e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2021-06-21 22:35:16 |

2021-06-21 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:16 | ------------------------------------

2021-06-21 22:35:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "item-id": "item-55fd6e5f-4507-4b7c-80e9-b2609e88446e"
}

2021-06-21 22:35:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "item-id": "item-55fd6e5f-4507-4b7c-80e9-b2609e88446e",
    "item": [
        "<item id=\"item-55fd6e5f-4507-4b7c-80e9-b2609e88446e\"><test>item-55fd6e5f-4507-4b7c-80e9-b2609e88446e</test></item>"
    ]
}

2021-06-21 22:35:16 | [Mutex] notify: [retrieved:item:item-55fd6e5f-4507-4b7c-80e9-b2609e88446e:payload-matches:true:localhost]

2021-06-21 22:35:16 | [Mutex] received everything.

2021-06-21 22:35:16 | [Mutex] isItemNotified: retrieved:item:item-55fd6e5f-4507-4b7c-80e9-b2609e88446e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2021-06-21 22:35:16 |

2021-06-21 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:16 | ------------------------------------

2021-06-21 22:35:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-06-21 22:35:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
        "node-6d82d035-34bb-4b66-937c-955322520104"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-06-21 22:35:16 |

2021-06-21 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:16 | ------------------------------------

2021-06-21 22:35:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7)"
}

2021-06-21 22:35:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2021-06-21 22:35:15 |

2021-06-21 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:15 | ------------------------------------

2021-06-21 22:35:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 22:35:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-06-21 22:35:16 |

2021-06-21 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-21 22:35:16 | ------------------------------------

2021-06-21 22:35:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0e8f8a62-8ec6-4834-8a1c-f626e84f5dd7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-06-21 22:35:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}