Generated by TestNG with ReportNG at 06:21 PDT on Wednesday 09 September 2020
root@ecc955643850 / 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.106s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.133s
2020-09-09 06:37:19 |

2020-09-09 06:37:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:19 | ------------------------------------

2020-09-09 06:37:19 | [Mutex] waiting for: [configured:node:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:node-acd9472b-b429-49bc-966f-95260bfe9b51]

2020-09-09 06:37:19 | [Mutex] received everything.

2020-09-09 06:37:19 | [Mutex] isItemNotified: configured:node:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:node-acd9472b-b429-49bc-966f-95260bfe9b51 :: true

2020-09-09 06:37:20 | [Mutex] waiting for: [received:nodes:c4ff00b5-4407-4579-a5a1-fc76b6e755bd:localhost]

2020-09-09 06:37:20 | [Mutex] waiting for: [received:nodes:c4ff00b5-4407-4579-a5a1-fc76b6e755bd:localhost]

2020-09-09 06:37:20 | [Mutex] received everything.

2020-09-09 06:37:20 | [Mutex] isItemNotified: received:node:c4ff00b5-4407-4579-a5a1-fc76b6e755bd:localhost:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:Node 5e8af3ef-1b09-49b9-b121-7fb3d3bee25b :: true

2020-09-09 06:37:20 | [Mutex] waiting for: [received:nodes:a407b657-cb05-4dfe-9694-638fd7762ebe:localhost]

2020-09-09 06:37:20 | [Mutex] received everything.

2020-09-09 06:37:20 | [Mutex] isItemNotified: received:node:a407b657-cb05-4dfe-9694-638fd7762ebe:localhost:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:Node 5e8af3ef-1b09-49b9-b121-7fb3d3bee25b :: false

createNodes 1.609s
2020-09-09 06:37:16 |

2020-09-09 06:37:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:16 | ------------------------------------

2020-09-09 06:37:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "pubsub#title": "Node 5e8af3ef-1b09-49b9-b121-7fb3d3bee25b"
}

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

2020-09-09 06:37:18 | [Mutex] waiting for: [received:nodes:5c25125d-185c-4657-824c-52007590ca03:localhost]

2020-09-09 06:37:18 | [Mutex] received everything.

2020-09-09 06:37:18 | [Mutex] isItemNotified: received:node:5c25125d-185c-4657-824c-52007590ca03:localhost:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:Node 5e8af3ef-1b09-49b9-b121-7fb3d3bee25b :: true

createSubnodes 1.023s
2020-09-09 06:37:18 |

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

2020-09-09 06:37:18 | ------------------------------------

2020-09-09 06:37:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-acd9472b-b429-49bc-966f-95260bfe9b51",
    "pubsub#title": "Node acd9472b-b429-49bc-966f-95260bfe9b51"
}

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

2020-09-09 06:37:19 | [Mutex] waiting for: [received:nodes:5fcf9081-4072-4936-8dcb-e5c8e19534fe:localhost]

2020-09-09 06:37:19 | [Mutex] received everything.

2020-09-09 06:37:19 | [Mutex] isItemNotified: received:node:5fcf9081-4072-4936-8dcb-e5c8e19534fe:localhost:node-acd9472b-b429-49bc-966f-95260bfe9b51:Node acd9472b-b429-49bc-966f-95260bfe9b51 :: true

deleteNodes 1.021s
2020-09-09 06:37:24 |

2020-09-09 06:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:24 | ------------------------------------

2020-09-09 06:37:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-acd9472b-b429-49bc-966f-95260bfe9b51"
}

2020-09-09 06:37:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-09 06:37:25 | [Mutex] waiting for: [received:nodes:921c10f9-dc17-436c-b1e4-ce18a408619b:localhost]

2020-09-09 06:37:25 | [Mutex] received everything.

2020-09-09 06:37:25 | [Mutex] isItemNotified: received:node:921c10f9-dc17-436c-b1e4-ce18a408619b:localhost:node-acd9472b-b429-49bc-966f-95260bfe9b51:Node acd9472b-b429-49bc-966f-95260bfe9b51 :: false

deleteSubnodes 1.030s
2020-09-09 06:37:23 |

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

2020-09-09 06:37:23 | ------------------------------------

2020-09-09 06:37:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b"
}

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

2020-09-09 06:37:24 | [Mutex] waiting for: [received:nodes:9cfa5085-acbb-44c6-88bb-96ee3971132a:localhost]

2020-09-09 06:37:24 | [Mutex] received everything.

2020-09-09 06:37:24 | [Mutex] isItemNotified: received:node:9cfa5085-acbb-44c6-88bb-96ee3971132a:localhost:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:Node 5e8af3ef-1b09-49b9-b121-7fb3d3bee25b :: false

2020-09-09 06:37:24 | [Mutex] waiting for: [received:nodes:464fb79a-1d20-4dd0-8e7d-6c0f9da523ae:localhost]

2020-09-09 06:37:24 | [Mutex] received everything.

2020-09-09 06:37:24 | [Mutex] isItemNotified: received:node:464fb79a-1d20-4dd0-8e7d-6c0f9da523ae:localhost:node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b:Node 5e8af3ef-1b09-49b9-b121-7fb3d3bee25b :: false

publishItemsToNodes 0.037s
2020-09-09 06:37:21 |

2020-09-09 06:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:21 | ------------------------------------

2020-09-09 06:37:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "entry": "<test>item-b36c86de-554d-4847-ba22-05746f3bea93</test>",
    "item-id": "item-b36c86de-554d-4847-ba22-05746f3bea93"
}

2020-09-09 06:37:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b36c86de-554d-4847-ba22-05746f3bea93"
}

2020-09-09 06:37:21 | [Mutex] waiting for: [published:item:notifieditem-b36c86de-554d-4847-ba22-05746f3bea93:admin@test-domain.com]

2020-09-09 06:37:21 | [Mutex] received everything.

2020-09-09 06:37:21 | [Mutex] isItemNotified: published:item:notifieditem-b36c86de-554d-4847-ba22-05746f3bea93:admin@test-domain.com :: true

retractItemsFromNodes 0.096s
2020-09-09 06:37:21 |

2020-09-09 06:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:21 | ------------------------------------

2020-09-09 06:37:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "item-id": "item-b36c86de-554d-4847-ba22-05746f3bea93"
}

2020-09-09 06:37:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b36c86de-554d-4847-ba22-05746f3bea93"
}

2020-09-09 06:37:21 | [Mutex] received everything.

2020-09-09 06:37:21 | [Mutex] isItemNotified: retracted:item:notifieditem-b36c86de-554d-4847-ba22-05746f3bea93:admin@test-domain.com :: true

retrieveItemsFromNodes 0.131s
2020-09-09 06:37:21 |

2020-09-09 06:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:21 | ------------------------------------

2020-09-09 06:37:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "item-id": "item-b36c86de-554d-4847-ba22-05746f3bea93"
}

2020-09-09 06:37:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "item-id": "item-b36c86de-554d-4847-ba22-05746f3bea93",
    "item": [
        "<item id=\"item-b36c86de-554d-4847-ba22-05746f3bea93\"><test>item-b36c86de-554d-4847-ba22-05746f3bea93</test></item>"
    ]
}

2020-09-09 06:37:21 | [Mutex] notify: [retrieved:item:item-b36c86de-554d-4847-ba22-05746f3bea93:payload-matches:true:localhost]

2020-09-09 06:37:21 | [Mutex] received everything.

2020-09-09 06:37:21 | [Mutex] isItemNotified: retrieved:item:item-b36c86de-554d-4847-ba22-05746f3bea93:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-09 06:37:21 |

2020-09-09 06:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:21 | ------------------------------------

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

2020-09-09 06:37:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
        "test",
        "node-acd9472b-b429-49bc-966f-95260bfe9b51"
    ]
}

retrieveUserSubscriptionsWithRegex 0.060s
2020-09-09 06:37:21 |

2020-09-09 06:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:21 | ------------------------------------

2020-09-09 06:37:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b)"
}

2020-09-09 06:37:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-09-09 06:37:20 |

2020-09-09 06:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:20 | ------------------------------------

2020-09-09 06:37:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-09 06:37:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-09 06:37:21 |

2020-09-09 06:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-09 06:37:21 | ------------------------------------

2020-09-09 06:37:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5e8af3ef-1b09-49b9-b121-7fb3d3bee25b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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