Generated by TestNG with ReportNG at 09:27 PDT on Tuesday 24 May 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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 : 8.634s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.133s
2022-05-24 09:42:46 |

2022-05-24 09:42:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:46 | ------------------------------------

2022-05-24 09:42:46 | [Mutex] waiting for: [configured:node:node-4739f8b2-7284-446d-9185-a668e589e31b:node-dbe900c3-d682-48b5-8c7b-6c635313701a]

2022-05-24 09:42:46 | [Mutex] received everything.

2022-05-24 09:42:46 | [Mutex] isItemNotified: configured:node:node-4739f8b2-7284-446d-9185-a668e589e31b:node-dbe900c3-d682-48b5-8c7b-6c635313701a :: true

2022-05-24 09:42:47 | [Mutex] waiting for: [received:nodes:207a8a72-8c22-428c-957a-1f285a63ea49:localhost]

2022-05-24 09:42:47 | [Mutex] received everything.

2022-05-24 09:42:47 | [Mutex] isItemNotified: received:node:207a8a72-8c22-428c-957a-1f285a63ea49:localhost:node-4739f8b2-7284-446d-9185-a668e589e31b:Node 4739f8b2-7284-446d-9185-a668e589e31b :: true

2022-05-24 09:42:47 | [Mutex] waiting for: [received:nodes:5bd1b59e-3aa9-4ca7-b0a4-140bdb40c218:localhost]

2022-05-24 09:42:47 | [Mutex] received everything.

2022-05-24 09:42:47 | [Mutex] isItemNotified: received:node:5bd1b59e-3aa9-4ca7-b0a4-140bdb40c218:localhost:node-4739f8b2-7284-446d-9185-a668e589e31b:Node 4739f8b2-7284-446d-9185-a668e589e31b :: false

createNodes 1.595s
2022-05-24 09:42:43 |

2022-05-24 09:42:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:43 | ------------------------------------

2022-05-24 09:42:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "pubsub#title": "Node 4739f8b2-7284-446d-9185-a668e589e31b"
}

2022-05-24 09:42:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:42:45 | [Mutex] waiting for: [received:nodes:8fe64595-9e3d-49a8-9b02-b791d1d9c484:localhost]

2022-05-24 09:42:45 | [Mutex] waiting for: [received:nodes:8fe64595-9e3d-49a8-9b02-b791d1d9c484:localhost]

2022-05-24 09:42:45 | [Mutex] received everything.

2022-05-24 09:42:45 | [Mutex] isItemNotified: received:node:8fe64595-9e3d-49a8-9b02-b791d1d9c484:localhost:node-4739f8b2-7284-446d-9185-a668e589e31b:Node 4739f8b2-7284-446d-9185-a668e589e31b :: true

createSubnodes 1.022s
2022-05-24 09:42:45 |

2022-05-24 09:42:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:45 | ------------------------------------

2022-05-24 09:42:45 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-dbe900c3-d682-48b5-8c7b-6c635313701a",
    "pubsub#title": "Node dbe900c3-d682-48b5-8c7b-6c635313701a"
}

2022-05-24 09:42:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:42:46 | [Mutex] waiting for: [received:nodes:7932bd32-8dea-4937-a161-69685ff8bdd9:localhost]

2022-05-24 09:42:46 | [Mutex] received everything.

2022-05-24 09:42:46 | [Mutex] isItemNotified: received:node:7932bd32-8dea-4937-a161-69685ff8bdd9:localhost:node-dbe900c3-d682-48b5-8c7b-6c635313701a:Node dbe900c3-d682-48b5-8c7b-6c635313701a :: true

deleteNodes 1.022s
2022-05-24 09:42:50 |

2022-05-24 09:42:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:50 | ------------------------------------

2022-05-24 09:42:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dbe900c3-d682-48b5-8c7b-6c635313701a"
}

2022-05-24 09:42:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:42:52 | [Mutex] waiting for: [received:nodes:26f6286f-0ddf-42c8-9388-82f7b5460c43:localhost]

2022-05-24 09:42:52 | [Mutex] waiting for: [received:nodes:26f6286f-0ddf-42c8-9388-82f7b5460c43:localhost]

2022-05-24 09:42:52 | [Mutex] received everything.

2022-05-24 09:42:52 | [Mutex] isItemNotified: received:node:26f6286f-0ddf-42c8-9388-82f7b5460c43:localhost:node-dbe900c3-d682-48b5-8c7b-6c635313701a:Node dbe900c3-d682-48b5-8c7b-6c635313701a :: false

deleteSubnodes 1.024s
2022-05-24 09:42:49 |

2022-05-24 09:42:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:49 | ------------------------------------

2022-05-24 09:42:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b"
}

2022-05-24 09:42:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-24 09:42:50 | [Mutex] waiting for: [received:nodes:ce38ad07-4d55-41ca-b0b6-f66ab663828e:localhost]

2022-05-24 09:42:50 | [Mutex] waiting for: [received:nodes:ce38ad07-4d55-41ca-b0b6-f66ab663828e:localhost]

2022-05-24 09:42:50 | [Mutex] received everything.

2022-05-24 09:42:50 | [Mutex] isItemNotified: received:node:ce38ad07-4d55-41ca-b0b6-f66ab663828e:localhost:node-4739f8b2-7284-446d-9185-a668e589e31b:Node 4739f8b2-7284-446d-9185-a668e589e31b :: false

2022-05-24 09:42:50 | [Mutex] waiting for: [received:nodes:5f7f268e-f3e3-4f4a-9d3d-d67ee1c5ac9a:localhost]

2022-05-24 09:42:50 | [Mutex] received everything.

2022-05-24 09:42:50 | [Mutex] isItemNotified: received:node:5f7f268e-f3e3-4f4a-9d3d-d67ee1c5ac9a:localhost:node-4739f8b2-7284-446d-9185-a668e589e31b:Node 4739f8b2-7284-446d-9185-a668e589e31b :: false

publishItemsToNodes 0.070s
2022-05-24 09:42:48 |

2022-05-24 09:42:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:48 | ------------------------------------

2022-05-24 09:42:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "entry": "<test>item-242d494d-99c3-48ee-8bee-6494237e1bd8</test>",
    "item-id": "item-242d494d-99c3-48ee-8bee-6494237e1bd8"
}

2022-05-24 09:42:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-242d494d-99c3-48ee-8bee-6494237e1bd8"
}

2022-05-24 09:42:48 | [Mutex] waiting for: [published:item:notifieditem-242d494d-99c3-48ee-8bee-6494237e1bd8:admin@test-domain.com]

2022-05-24 09:42:48 | [Mutex] received everything.

2022-05-24 09:42:48 | [Mutex] isItemNotified: published:item:notifieditem-242d494d-99c3-48ee-8bee-6494237e1bd8:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-05-24 09:42:48 |

2022-05-24 09:42:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:48 | ------------------------------------

2022-05-24 09:42:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "item-id": "item-242d494d-99c3-48ee-8bee-6494237e1bd8"
}

2022-05-24 09:42:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-242d494d-99c3-48ee-8bee-6494237e1bd8"
}

2022-05-24 09:42:48 | [Mutex] received everything.

2022-05-24 09:42:48 | [Mutex] isItemNotified: retracted:item:notifieditem-242d494d-99c3-48ee-8bee-6494237e1bd8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.026s
2022-05-24 09:42:48 |

2022-05-24 09:42:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:48 | ------------------------------------

2022-05-24 09:42:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "item-id": "item-242d494d-99c3-48ee-8bee-6494237e1bd8"
}

2022-05-24 09:42:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "item-id": "item-242d494d-99c3-48ee-8bee-6494237e1bd8",
    "item": [
        "<item id=\"item-242d494d-99c3-48ee-8bee-6494237e1bd8\"><test>item-242d494d-99c3-48ee-8bee-6494237e1bd8</test></item>"
    ]
}

2022-05-24 09:42:48 | [Mutex] notify: [retrieved:item:item-242d494d-99c3-48ee-8bee-6494237e1bd8:payload-matches:true:localhost]

2022-05-24 09:42:48 | [Mutex] received everything.

2022-05-24 09:42:48 | [Mutex] isItemNotified: retrieved:item:item-242d494d-99c3-48ee-8bee-6494237e1bd8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-05-24 09:42:48 |

2022-05-24 09:42:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:48 | ------------------------------------

2022-05-24 09:42:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-24 09:42:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4739f8b2-7284-446d-9185-a668e589e31b",
        "node-dbe900c3-d682-48b5-8c7b-6c635313701a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-05-24 09:42:48 |

2022-05-24 09:42:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:48 | ------------------------------------

2022-05-24 09:42:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4739f8b2-7284-446d-9185-a668e589e31b)"
}

2022-05-24 09:42:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-05-24 09:42:47 |

2022-05-24 09:42:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:47 | ------------------------------------

2022-05-24 09:42:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 09:42:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-05-24 09:42:48 |

2022-05-24 09:42:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-24 09:42:48 | ------------------------------------

2022-05-24 09:42:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4739f8b2-7284-446d-9185-a668e589e31b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-24 09:42:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}