Generated by TestNG with ReportNG at 21:45 PST on Sunday 29 November 2020
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.023s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2020-11-29 22:01:27 |

2020-11-29 22:01:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:27 | ------------------------------------

2020-11-29 22:01:27 | [Mutex] waiting for: [configured:node:node-f457b462-52a8-4462-8882-3597a547ebe7:node-282d43c2-affc-4ed6-9038-e59a49b9859f]

2020-11-29 22:01:27 | [Mutex] received everything.

2020-11-29 22:01:27 | [Mutex] isItemNotified: configured:node:node-f457b462-52a8-4462-8882-3597a547ebe7:node-282d43c2-affc-4ed6-9038-e59a49b9859f :: true

2020-11-29 22:01:28 | [Mutex] waiting for: [received:nodes:43f05c3a-0277-4126-b7d6-0010e7a2fa98:localhost]

2020-11-29 22:01:28 | [Mutex] received everything.

2020-11-29 22:01:28 | [Mutex] isItemNotified: received:node:43f05c3a-0277-4126-b7d6-0010e7a2fa98:localhost:node-f457b462-52a8-4462-8882-3597a547ebe7:Node f457b462-52a8-4462-8882-3597a547ebe7 :: true

2020-11-29 22:01:28 | [Mutex] waiting for: [received:nodes:579de136-e11e-4046-817e-3d071170afdf:localhost]

2020-11-29 22:01:28 | [Mutex] received everything.

2020-11-29 22:01:28 | [Mutex] isItemNotified: received:node:579de136-e11e-4046-817e-3d071170afdf:localhost:node-f457b462-52a8-4462-8882-3597a547ebe7:Node f457b462-52a8-4462-8882-3597a547ebe7 :: false

createNodes 1.565s
2020-11-29 22:01:24 |

2020-11-29 22:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:24 | ------------------------------------

2020-11-29 22:01:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "pubsub#title": "Node f457b462-52a8-4462-8882-3597a547ebe7"
}

2020-11-29 22:01:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:01:26 | [Mutex] waiting for: [received:nodes:09b63100-571b-4caa-a4aa-abd7e4159b2d:localhost]

2020-11-29 22:01:26 | [Mutex] waiting for: [received:nodes:09b63100-571b-4caa-a4aa-abd7e4159b2d:localhost]

2020-11-29 22:01:26 | [Mutex] received everything.

2020-11-29 22:01:26 | [Mutex] isItemNotified: received:node:09b63100-571b-4caa-a4aa-abd7e4159b2d:localhost:node-f457b462-52a8-4462-8882-3597a547ebe7:Node f457b462-52a8-4462-8882-3597a547ebe7 :: true

createSubnodes 1.030s
2020-11-29 22:01:26 |

2020-11-29 22:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:26 | ------------------------------------

2020-11-29 22:01:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-282d43c2-affc-4ed6-9038-e59a49b9859f",
    "pubsub#title": "Node 282d43c2-affc-4ed6-9038-e59a49b9859f"
}

2020-11-29 22:01:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:01:27 | [Mutex] waiting for: [received:nodes:2615c19f-e8bd-4dec-b071-29d5dc67e883:localhost]

2020-11-29 22:01:27 | [Mutex] received everything.

2020-11-29 22:01:27 | [Mutex] isItemNotified: received:node:2615c19f-e8bd-4dec-b071-29d5dc67e883:localhost:node-282d43c2-affc-4ed6-9038-e59a49b9859f:Node 282d43c2-affc-4ed6-9038-e59a49b9859f :: true

deleteNodes 1.025s
2020-11-29 22:01:31 |

2020-11-29 22:01:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:31 | ------------------------------------

2020-11-29 22:01:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-282d43c2-affc-4ed6-9038-e59a49b9859f"
}

2020-11-29 22:01:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:01:32 | [Mutex] waiting for: [received:nodes:7f1f29ef-82d1-4ede-a915-8329b70e9b54:localhost]

2020-11-29 22:01:32 | [Mutex] received everything.

2020-11-29 22:01:32 | [Mutex] isItemNotified: received:node:7f1f29ef-82d1-4ede-a915-8329b70e9b54:localhost:node-282d43c2-affc-4ed6-9038-e59a49b9859f:Node 282d43c2-affc-4ed6-9038-e59a49b9859f :: false

deleteSubnodes 1.029s
2020-11-29 22:01:30 |

2020-11-29 22:01:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:30 | ------------------------------------

2020-11-29 22:01:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7"
}

2020-11-29 22:01:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 22:01:31 | [Mutex] waiting for: [received:nodes:0d36ab58-0930-4391-ac5c-305190f7e95c:localhost]

2020-11-29 22:01:31 | [Mutex] received everything.

2020-11-29 22:01:31 | [Mutex] isItemNotified: received:node:0d36ab58-0930-4391-ac5c-305190f7e95c:localhost:node-f457b462-52a8-4462-8882-3597a547ebe7:Node f457b462-52a8-4462-8882-3597a547ebe7 :: false

2020-11-29 22:01:31 | [Mutex] waiting for: [received:nodes:b0a46132-df94-45e0-9071-df12b186ad9c:localhost]

2020-11-29 22:01:31 | [Mutex] received everything.

2020-11-29 22:01:31 | [Mutex] isItemNotified: received:node:b0a46132-df94-45e0-9071-df12b186ad9c:localhost:node-f457b462-52a8-4462-8882-3597a547ebe7:Node f457b462-52a8-4462-8882-3597a547ebe7 :: false

publishItemsToNodes 0.085s
2020-11-29 22:01:29 |

2020-11-29 22:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:29 | ------------------------------------

2020-11-29 22:01:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "entry": "<test>item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9</test>",
    "item-id": "item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9"
}

2020-11-29 22:01:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9"
}

2020-11-29 22:01:29 | [Mutex] waiting for: [published:item:notifieditem-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9:admin@test-domain.com]

2020-11-29 22:01:29 | [Mutex] received everything.

2020-11-29 22:01:29 | [Mutex] isItemNotified: published:item:notifieditem-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2020-11-29 22:01:29 |

2020-11-29 22:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:29 | ------------------------------------

2020-11-29 22:01:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "item-id": "item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9"
}

2020-11-29 22:01:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9"
}

2020-11-29 22:01:29 | [Mutex] received everything.

2020-11-29 22:01:29 | [Mutex] isItemNotified: retracted:item:notifieditem-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2020-11-29 22:01:29 |

2020-11-29 22:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:29 | ------------------------------------

2020-11-29 22:01:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "item-id": "item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9"
}

2020-11-29 22:01:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "item-id": "item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9",
    "item": [
        "<item id=\"item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9\"><test>item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9</test></item>"
    ]
}

2020-11-29 22:01:29 | [Mutex] notify: [retrieved:item:item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9:payload-matches:true:localhost]

2020-11-29 22:01:29 | [Mutex] received everything.

2020-11-29 22:01:29 | [Mutex] isItemNotified: retrieved:item:item-e9ab40f9-7fec-4fd6-bcee-8f7f0ab1f2b9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2020-11-29 22:01:29 |

2020-11-29 22:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:29 | ------------------------------------

2020-11-29 22:01:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-29 22:01:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-282d43c2-affc-4ed6-9038-e59a49b9859f",
        "node-f457b462-52a8-4462-8882-3597a547ebe7"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-29 22:01:29 |

2020-11-29 22:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:29 | ------------------------------------

2020-11-29 22:01:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f457b462-52a8-4462-8882-3597a547ebe7)"
}

2020-11-29 22:01:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-11-29 22:01:28 |

2020-11-29 22:01:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:28 | ------------------------------------

2020-11-29 22:01:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 22:01:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-11-29 22:01:29 |

2020-11-29 22:01:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 22:01:29 | ------------------------------------

2020-11-29 22:01:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f457b462-52a8-4462-8882-3597a547ebe7",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 22:01:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}