Generated by TestNG with ReportNG at 23:03 PDT on Thursday 17 September 2020
root@f53a97fae7d2 / 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.243s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2020-09-17 23:18:23 |

2020-09-17 23:18:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:23 | ------------------------------------

2020-09-17 23:18:23 | [Mutex] waiting for: [configured:node:node-a3e313a5-72ea-4167-b760-a4343f48de1a:node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e]

2020-09-17 23:18:23 | [Mutex] received everything.

2020-09-17 23:18:23 | [Mutex] isItemNotified: configured:node:node-a3e313a5-72ea-4167-b760-a4343f48de1a:node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e :: true

2020-09-17 23:18:24 | [Mutex] waiting for: [received:nodes:47ad0eb8-ff3f-434d-b187-47bfe7a6a41a:localhost]

2020-09-17 23:18:24 | [Mutex] received everything.

2020-09-17 23:18:24 | [Mutex] isItemNotified: received:node:47ad0eb8-ff3f-434d-b187-47bfe7a6a41a:localhost:node-a3e313a5-72ea-4167-b760-a4343f48de1a:Node a3e313a5-72ea-4167-b760-a4343f48de1a :: true

2020-09-17 23:18:24 | [Mutex] waiting for: [received:nodes:ef888043-9cda-42d9-a620-e01a5c91aca8:localhost]

2020-09-17 23:18:24 | [Mutex] received everything.

2020-09-17 23:18:24 | [Mutex] isItemNotified: received:node:ef888043-9cda-42d9-a620-e01a5c91aca8:localhost:node-a3e313a5-72ea-4167-b760-a4343f48de1a:Node a3e313a5-72ea-4167-b760-a4343f48de1a :: false

createNodes 1.855s
2020-09-17 23:18:20 |

2020-09-17 23:18:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:20 | ------------------------------------

2020-09-17 23:18:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "pubsub#title": "Node a3e313a5-72ea-4167-b760-a4343f48de1a"
}

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

2020-09-17 23:18:22 | [Mutex] waiting for: [received:nodes:7c689092-d7d4-4378-8811-cb3ade0ae8bf:localhost]

2020-09-17 23:18:22 | [Mutex] waiting for: [received:nodes:7c689092-d7d4-4378-8811-cb3ade0ae8bf:localhost]

2020-09-17 23:18:22 | [Mutex] received everything.

2020-09-17 23:18:22 | [Mutex] isItemNotified: received:node:7c689092-d7d4-4378-8811-cb3ade0ae8bf:localhost:node-a3e313a5-72ea-4167-b760-a4343f48de1a:Node a3e313a5-72ea-4167-b760-a4343f48de1a :: true

createSubnodes 1.032s
2020-09-17 23:18:22 |

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

2020-09-17 23:18:22 | ------------------------------------

2020-09-17 23:18:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e",
    "pubsub#title": "Node 4bba5be8-38e6-49c9-ab41-a48e794b1c4e"
}

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

2020-09-17 23:18:23 | [Mutex] waiting for: [received:nodes:2138c655-34d5-427c-8033-1fa4e80f136f:localhost]

2020-09-17 23:18:23 | [Mutex] received everything.

2020-09-17 23:18:23 | [Mutex] isItemNotified: received:node:2138c655-34d5-427c-8033-1fa4e80f136f:localhost:node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e:Node 4bba5be8-38e6-49c9-ab41-a48e794b1c4e :: true

deleteNodes 1.027s
2020-09-17 23:18:28 |

2020-09-17 23:18:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:28 | ------------------------------------

2020-09-17 23:18:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e"
}

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

2020-09-17 23:18:29 | [Mutex] waiting for: [received:nodes:151c6c8f-d8d0-4415-857b-e797205a29bf:localhost]

2020-09-17 23:18:29 | [Mutex] received everything.

2020-09-17 23:18:29 | [Mutex] isItemNotified: received:node:151c6c8f-d8d0-4415-857b-e797205a29bf:localhost:node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e:Node 4bba5be8-38e6-49c9-ab41-a48e794b1c4e :: false

deleteSubnodes 1.028s
2020-09-17 23:18:27 |

2020-09-17 23:18:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:27 | ------------------------------------

2020-09-17 23:18:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a"
}

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

2020-09-17 23:18:28 | [Mutex] waiting for: [received:nodes:05235dc0-010b-4c0d-98d0-7fcf32d4877d:localhost]

2020-09-17 23:18:28 | [Mutex] waiting for: [received:nodes:05235dc0-010b-4c0d-98d0-7fcf32d4877d:localhost]

2020-09-17 23:18:28 | [Mutex] received everything.

2020-09-17 23:18:28 | [Mutex] isItemNotified: received:node:05235dc0-010b-4c0d-98d0-7fcf32d4877d:localhost:node-a3e313a5-72ea-4167-b760-a4343f48de1a:Node a3e313a5-72ea-4167-b760-a4343f48de1a :: false

2020-09-17 23:18:28 | [Mutex] waiting for: [received:nodes:eea7ce60-ff0b-454d-836a-06a6f05699e0:localhost]

2020-09-17 23:18:28 | [Mutex] received everything.

2020-09-17 23:18:28 | [Mutex] isItemNotified: received:node:eea7ce60-ff0b-454d-836a-06a6f05699e0:localhost:node-a3e313a5-72ea-4167-b760-a4343f48de1a:Node a3e313a5-72ea-4167-b760-a4343f48de1a :: false

publishItemsToNodes 0.048s
2020-09-17 23:18:25 |

2020-09-17 23:18:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:25 | ------------------------------------

2020-09-17 23:18:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "entry": "<test>item-42cdec66-8c9d-4acf-b236-92accebf2b3b</test>",
    "item-id": "item-42cdec66-8c9d-4acf-b236-92accebf2b3b"
}

2020-09-17 23:18:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42cdec66-8c9d-4acf-b236-92accebf2b3b"
}

2020-09-17 23:18:25 | [Mutex] waiting for: [published:item:notifieditem-42cdec66-8c9d-4acf-b236-92accebf2b3b:admin@test-domain.com]

2020-09-17 23:18:25 | [Mutex] received everything.

2020-09-17 23:18:25 | [Mutex] isItemNotified: published:item:notifieditem-42cdec66-8c9d-4acf-b236-92accebf2b3b:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-17 23:18:26 |

2020-09-17 23:18:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:26 | ------------------------------------

2020-09-17 23:18:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "item-id": "item-42cdec66-8c9d-4acf-b236-92accebf2b3b"
}

2020-09-17 23:18:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-42cdec66-8c9d-4acf-b236-92accebf2b3b"
}

2020-09-17 23:18:26 | [Mutex] received everything.

2020-09-17 23:18:26 | [Mutex] isItemNotified: retracted:item:notifieditem-42cdec66-8c9d-4acf-b236-92accebf2b3b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2020-09-17 23:18:25 |

2020-09-17 23:18:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:25 | ------------------------------------

2020-09-17 23:18:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "item-id": "item-42cdec66-8c9d-4acf-b236-92accebf2b3b"
}

2020-09-17 23:18:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "item-id": "item-42cdec66-8c9d-4acf-b236-92accebf2b3b",
    "item": [
        "<item id=\"item-42cdec66-8c9d-4acf-b236-92accebf2b3b\"><test>item-42cdec66-8c9d-4acf-b236-92accebf2b3b</test></item>"
    ]
}

2020-09-17 23:18:26 | [Mutex] notify: [retrieved:item:item-42cdec66-8c9d-4acf-b236-92accebf2b3b:payload-matches:true:localhost]

2020-09-17 23:18:26 | [Mutex] received everything.

2020-09-17 23:18:26 | [Mutex] isItemNotified: retrieved:item:item-42cdec66-8c9d-4acf-b236-92accebf2b3b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2020-09-17 23:18:26 |

2020-09-17 23:18:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:26 | ------------------------------------

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

2020-09-17 23:18:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-4bba5be8-38e6-49c9-ab41-a48e794b1c4e",
        "test",
        "node-a3e313a5-72ea-4167-b760-a4343f48de1a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-17 23:18:26 |

2020-09-17 23:18:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:26 | ------------------------------------

2020-09-17 23:18:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a3e313a5-72ea-4167-b760-a4343f48de1a)"
}

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

subscribeNodes 1.014s
2020-09-17 23:18:24 |

2020-09-17 23:18:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:24 | ------------------------------------

2020-09-17 23:18:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-09-17 23:18:26 |

2020-09-17 23:18:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:18:26 | ------------------------------------

2020-09-17 23:18:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a3e313a5-72ea-4167-b760-a4343f48de1a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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