Generated by TestNG with ReportNG at 22:49 PDT on Thursday 06 May 2021
root@785cf647a4ab / 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.073s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2021-05-06 23:04:21 |

2021-05-06 23:04:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:21 | ------------------------------------

2021-05-06 23:04:21 | [Mutex] waiting for: [configured:node:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:node-4f173797-d891-4b15-b174-faa9a598c318]

2021-05-06 23:04:21 | [Mutex] received everything.

2021-05-06 23:04:21 | [Mutex] isItemNotified: configured:node:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:node-4f173797-d891-4b15-b174-faa9a598c318 :: true

2021-05-06 23:04:22 | [Mutex] waiting for: [received:nodes:084b1bfb-e577-43b9-8eaf-34c2cdd10996:localhost]

2021-05-06 23:04:22 | [Mutex] received everything.

2021-05-06 23:04:22 | [Mutex] isItemNotified: received:node:084b1bfb-e577-43b9-8eaf-34c2cdd10996:localhost:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:Node cf6e82ad-3526-43c1-8986-85d6b752bc9d :: true

2021-05-06 23:04:22 | [Mutex] waiting for: [received:nodes:446afd54-c138-42a7-ad8c-e700ca983fee:localhost]

2021-05-06 23:04:22 | [Mutex] waiting for: [received:nodes:446afd54-c138-42a7-ad8c-e700ca983fee:localhost]

2021-05-06 23:04:22 | [Mutex] received everything.

2021-05-06 23:04:22 | [Mutex] isItemNotified: received:node:446afd54-c138-42a7-ad8c-e700ca983fee:localhost:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:Node cf6e82ad-3526-43c1-8986-85d6b752bc9d :: false

createNodes 1.697s
2021-05-06 23:04:18 |

2021-05-06 23:04:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:18 | ------------------------------------

2021-05-06 23:04:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "pubsub#title": "Node cf6e82ad-3526-43c1-8986-85d6b752bc9d"
}

2021-05-06 23:04:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-06 23:04:20 | [Mutex] waiting for: [received:nodes:869f2259-db0a-4544-8685-47b7390665dd:localhost]

2021-05-06 23:04:20 | [Mutex] received everything.

2021-05-06 23:04:20 | [Mutex] isItemNotified: received:node:869f2259-db0a-4544-8685-47b7390665dd:localhost:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:Node cf6e82ad-3526-43c1-8986-85d6b752bc9d :: true

createSubnodes 1.036s
2021-05-06 23:04:20 |

2021-05-06 23:04:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:20 | ------------------------------------

2021-05-06 23:04:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4f173797-d891-4b15-b174-faa9a598c318",
    "pubsub#title": "Node 4f173797-d891-4b15-b174-faa9a598c318"
}

2021-05-06 23:04:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-06 23:04:21 | [Mutex] waiting for: [received:nodes:fc7748d8-d3ce-4785-bfd6-fc4058604f51:localhost]

2021-05-06 23:04:21 | [Mutex] received everything.

2021-05-06 23:04:21 | [Mutex] isItemNotified: received:node:fc7748d8-d3ce-4785-bfd6-fc4058604f51:localhost:node-4f173797-d891-4b15-b174-faa9a598c318:Node 4f173797-d891-4b15-b174-faa9a598c318 :: true

deleteNodes 1.033s
2021-05-06 23:04:26 |

2021-05-06 23:04:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:26 | ------------------------------------

2021-05-06 23:04:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4f173797-d891-4b15-b174-faa9a598c318"
}

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

2021-05-06 23:04:27 | [Mutex] waiting for: [received:nodes:f2a5908e-e6e9-473c-be54-3cb9fffd5ed7:localhost]

2021-05-06 23:04:27 | [Mutex] waiting for: [received:nodes:f2a5908e-e6e9-473c-be54-3cb9fffd5ed7:localhost]

2021-05-06 23:04:27 | [Mutex] waiting for: [received:nodes:f2a5908e-e6e9-473c-be54-3cb9fffd5ed7:localhost]

2021-05-06 23:04:27 | [Mutex] received everything.

2021-05-06 23:04:27 | [Mutex] isItemNotified: received:node:f2a5908e-e6e9-473c-be54-3cb9fffd5ed7:localhost:node-4f173797-d891-4b15-b174-faa9a598c318:Node 4f173797-d891-4b15-b174-faa9a598c318 :: false

deleteSubnodes 1.037s
2021-05-06 23:04:25 |

2021-05-06 23:04:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:25 | ------------------------------------

2021-05-06 23:04:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d"
}

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

2021-05-06 23:04:26 | [Mutex] waiting for: [received:nodes:fe4c10dd-38e8-414b-ba31-ceedfff5aa3f:localhost]

2021-05-06 23:04:26 | [Mutex] waiting for: [received:nodes:fe4c10dd-38e8-414b-ba31-ceedfff5aa3f:localhost]

2021-05-06 23:04:26 | [Mutex] received everything.

2021-05-06 23:04:26 | [Mutex] isItemNotified: received:node:fe4c10dd-38e8-414b-ba31-ceedfff5aa3f:localhost:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:Node cf6e82ad-3526-43c1-8986-85d6b752bc9d :: false

2021-05-06 23:04:26 | [Mutex] waiting for: [received:nodes:9571abe1-a7ca-4082-b2f8-78989bc6ed72:localhost]

2021-05-06 23:04:26 | [Mutex] received everything.

2021-05-06 23:04:26 | [Mutex] isItemNotified: received:node:9571abe1-a7ca-4082-b2f8-78989bc6ed72:localhost:node-cf6e82ad-3526-43c1-8986-85d6b752bc9d:Node cf6e82ad-3526-43c1-8986-85d6b752bc9d :: false

publishItemsToNodes 0.060s
2021-05-06 23:04:23 |

2021-05-06 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:23 | ------------------------------------

2021-05-06 23:04:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "entry": "<test>item-890b3f3c-9faa-436d-8946-6dad7a9912c8</test>",
    "item-id": "item-890b3f3c-9faa-436d-8946-6dad7a9912c8"
}

2021-05-06 23:04:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-890b3f3c-9faa-436d-8946-6dad7a9912c8"
}

2021-05-06 23:04:23 | [Mutex] waiting for: [published:item:notifieditem-890b3f3c-9faa-436d-8946-6dad7a9912c8:admin@test-domain.com]

2021-05-06 23:04:23 | [Mutex] received everything.

2021-05-06 23:04:23 | [Mutex] isItemNotified: published:item:notifieditem-890b3f3c-9faa-436d-8946-6dad7a9912c8:admin@test-domain.com :: true

retractItemsFromNodes 0.087s
2021-05-06 23:04:23 |

2021-05-06 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:23 | ------------------------------------

2021-05-06 23:04:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "item-id": "item-890b3f3c-9faa-436d-8946-6dad7a9912c8"
}

2021-05-06 23:04:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-890b3f3c-9faa-436d-8946-6dad7a9912c8"
}

2021-05-06 23:04:23 | [Mutex] received everything.

2021-05-06 23:04:23 | [Mutex] isItemNotified: retracted:item:notifieditem-890b3f3c-9faa-436d-8946-6dad7a9912c8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.046s
2021-05-06 23:04:23 |

2021-05-06 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:23 | ------------------------------------

2021-05-06 23:04:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "item-id": "item-890b3f3c-9faa-436d-8946-6dad7a9912c8"
}

2021-05-06 23:04:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "item-id": "item-890b3f3c-9faa-436d-8946-6dad7a9912c8",
    "item": [
        "<item id=\"item-890b3f3c-9faa-436d-8946-6dad7a9912c8\"><test>item-890b3f3c-9faa-436d-8946-6dad7a9912c8</test></item>"
    ]
}

2021-05-06 23:04:23 | [Mutex] notify: [retrieved:item:item-890b3f3c-9faa-436d-8946-6dad7a9912c8:payload-matches:true:localhost]

2021-05-06 23:04:23 | [Mutex] received everything.

2021-05-06 23:04:23 | [Mutex] isItemNotified: retrieved:item:item-890b3f3c-9faa-436d-8946-6dad7a9912c8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2021-05-06 23:04:23 |

2021-05-06 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:23 | ------------------------------------

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

2021-05-06 23:04:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4f173797-d891-4b15-b174-faa9a598c318",
        "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-05-06 23:04:23 |

2021-05-06 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:23 | ------------------------------------

2021-05-06 23:04:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cf6e82ad-3526-43c1-8986-85d6b752bc9d)"
}

2021-05-06 23:04:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-05-06 23:04:22 |

2021-05-06 23:04:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:22 | ------------------------------------

2021-05-06 23:04:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2021-05-06 23:04:23 |

2021-05-06 23:04:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-06 23:04:23 | ------------------------------------

2021-05-06 23:04:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cf6e82ad-3526-43c1-8986-85d6b752bc9d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-06 23:04:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}