Generated by TestNG with ReportNG at 07:52 PST on Tuesday 24 November 2020
root@43fec6d4badf / 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.096s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2020-11-24 08:08:47 |

2020-11-24 08:08:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:47 | ------------------------------------

2020-11-24 08:08:47 | [Mutex] waiting for: [configured:node:node-1e234ab7-f656-471d-8acc-86f04e870703:node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098]

2020-11-24 08:08:47 | [Mutex] received everything.

2020-11-24 08:08:47 | [Mutex] isItemNotified: configured:node:node-1e234ab7-f656-471d-8acc-86f04e870703:node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098 :: true

2020-11-24 08:08:48 | [Mutex] waiting for: [received:nodes:dd9a880b-d9d1-439c-ae34-88934ff87136:localhost]

2020-11-24 08:08:48 | [Mutex] received everything.

2020-11-24 08:08:48 | [Mutex] isItemNotified: received:node:dd9a880b-d9d1-439c-ae34-88934ff87136:localhost:node-1e234ab7-f656-471d-8acc-86f04e870703:Node 1e234ab7-f656-471d-8acc-86f04e870703 :: true

2020-11-24 08:08:48 | [Mutex] waiting for: [received:nodes:af800abf-e2a6-4e68-933e-c02351df2218:localhost]

2020-11-24 08:08:48 | [Mutex] waiting for: [received:nodes:af800abf-e2a6-4e68-933e-c02351df2218:localhost]

2020-11-24 08:08:48 | [Mutex] received everything.

2020-11-24 08:08:48 | [Mutex] isItemNotified: received:node:af800abf-e2a6-4e68-933e-c02351df2218:localhost:node-1e234ab7-f656-471d-8acc-86f04e870703:Node 1e234ab7-f656-471d-8acc-86f04e870703 :: false

createNodes 1.747s
2020-11-24 08:08:44 |

2020-11-24 08:08:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:44 | ------------------------------------

2020-11-24 08:08:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "pubsub#title": "Node 1e234ab7-f656-471d-8acc-86f04e870703"
}

2020-11-24 08:08:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:08:46 | [Mutex] waiting for: [received:nodes:cbc8979a-ec91-489a-9189-2febfca155b0:localhost]

2020-11-24 08:08:46 | [Mutex] received everything.

2020-11-24 08:08:46 | [Mutex] isItemNotified: received:node:cbc8979a-ec91-489a-9189-2febfca155b0:localhost:node-1e234ab7-f656-471d-8acc-86f04e870703:Node 1e234ab7-f656-471d-8acc-86f04e870703 :: true

createSubnodes 1.025s
2020-11-24 08:08:46 |

2020-11-24 08:08:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:46 | ------------------------------------

2020-11-24 08:08:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098",
    "pubsub#title": "Node 6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098"
}

2020-11-24 08:08:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:08:47 | [Mutex] waiting for: [received:nodes:842019c7-d4f8-42a9-a597-23e69f958099:localhost]

2020-11-24 08:08:47 | [Mutex] received everything.

2020-11-24 08:08:47 | [Mutex] isItemNotified: received:node:842019c7-d4f8-42a9-a597-23e69f958099:localhost:node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098:Node 6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098 :: true

deleteNodes 1.022s
2020-11-24 08:08:51 |

2020-11-24 08:08:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:51 | ------------------------------------

2020-11-24 08:08:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098"
}

2020-11-24 08:08:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:08:53 | [Mutex] waiting for: [received:nodes:ced5aa65-df54-4799-b680-88ac5e296c62:localhost]

2020-11-24 08:08:53 | [Mutex] received everything.

2020-11-24 08:08:53 | [Mutex] isItemNotified: received:node:ced5aa65-df54-4799-b680-88ac5e296c62:localhost:node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098:Node 6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098 :: false

deleteSubnodes 1.029s
2020-11-24 08:08:50 |

2020-11-24 08:08:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:50 | ------------------------------------

2020-11-24 08:08:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703"
}

2020-11-24 08:08:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-24 08:08:51 | [Mutex] waiting for: [received:nodes:61c01c70-0ade-4166-ba50-5f0d59318e2e:localhost]

2020-11-24 08:08:51 | [Mutex] waiting for: [received:nodes:61c01c70-0ade-4166-ba50-5f0d59318e2e:localhost]

2020-11-24 08:08:51 | [Mutex] received everything.

2020-11-24 08:08:51 | [Mutex] isItemNotified: received:node:61c01c70-0ade-4166-ba50-5f0d59318e2e:localhost:node-1e234ab7-f656-471d-8acc-86f04e870703:Node 1e234ab7-f656-471d-8acc-86f04e870703 :: false

2020-11-24 08:08:51 | [Mutex] waiting for: [received:nodes:d5d780f3-4b15-436e-a691-58c2f9185bb9:localhost]

2020-11-24 08:08:51 | [Mutex] received everything.

2020-11-24 08:08:51 | [Mutex] isItemNotified: received:node:d5d780f3-4b15-436e-a691-58c2f9185bb9:localhost:node-1e234ab7-f656-471d-8acc-86f04e870703:Node 1e234ab7-f656-471d-8acc-86f04e870703 :: false

publishItemsToNodes 0.043s
2020-11-24 08:08:49 |

2020-11-24 08:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:49 | ------------------------------------

2020-11-24 08:08:49 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "entry": "<test>item-7206d339-aa6f-43cf-ab96-b059aa8d8c57</test>",
    "item-id": "item-7206d339-aa6f-43cf-ab96-b059aa8d8c57"
}

2020-11-24 08:08:49 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7206d339-aa6f-43cf-ab96-b059aa8d8c57"
}

2020-11-24 08:08:49 | [Mutex] waiting for: [published:item:notifieditem-7206d339-aa6f-43cf-ab96-b059aa8d8c57:admin@test-domain.com]

2020-11-24 08:08:49 | [Mutex] received everything.

2020-11-24 08:08:49 | [Mutex] isItemNotified: published:item:notifieditem-7206d339-aa6f-43cf-ab96-b059aa8d8c57:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-11-24 08:08:49 |

2020-11-24 08:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:49 | ------------------------------------

2020-11-24 08:08:49 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "item-id": "item-7206d339-aa6f-43cf-ab96-b059aa8d8c57"
}

2020-11-24 08:08:49 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7206d339-aa6f-43cf-ab96-b059aa8d8c57"
}

2020-11-24 08:08:49 | [Mutex] received everything.

2020-11-24 08:08:49 | [Mutex] isItemNotified: retracted:item:notifieditem-7206d339-aa6f-43cf-ab96-b059aa8d8c57:admin@test-domain.com :: true

retrieveItemsFromNodes 0.049s
2020-11-24 08:08:49 |

2020-11-24 08:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:49 | ------------------------------------

2020-11-24 08:08:49 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "item-id": "item-7206d339-aa6f-43cf-ab96-b059aa8d8c57"
}

2020-11-24 08:08:49 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "item-id": "item-7206d339-aa6f-43cf-ab96-b059aa8d8c57",
    "item": [
        "<item id=\"item-7206d339-aa6f-43cf-ab96-b059aa8d8c57\"><test>item-7206d339-aa6f-43cf-ab96-b059aa8d8c57</test></item>"
    ]
}

2020-11-24 08:08:49 | [Mutex] notify: [retrieved:item:item-7206d339-aa6f-43cf-ab96-b059aa8d8c57:payload-matches:true:localhost]

2020-11-24 08:08:49 | [Mutex] received everything.

2020-11-24 08:08:49 | [Mutex] isItemNotified: retrieved:item:item-7206d339-aa6f-43cf-ab96-b059aa8d8c57:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.085s
2020-11-24 08:08:49 |

2020-11-24 08:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:49 | ------------------------------------

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

2020-11-24 08:08:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6af2e82f-a9fa-4a35-8bcd-6c3ee61ad098",
        "node-1e234ab7-f656-471d-8acc-86f04e870703"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-11-24 08:08:49 |

2020-11-24 08:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:49 | ------------------------------------

2020-11-24 08:08:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1e234ab7-f656-471d-8acc-86f04e870703)"
}

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

subscribeNodes 1.012s
2020-11-24 08:08:48 |

2020-11-24 08:08:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:48 | ------------------------------------

2020-11-24 08:08:48 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-24 08:08:48 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-11-24 08:08:49 |

2020-11-24 08:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-24 08:08:49 | ------------------------------------

2020-11-24 08:08:49 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1e234ab7-f656-471d-8acc-86f04e870703",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-24 08:08:49 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}