Generated by TestNG with ReportNG at 09:25 PST on Friday 30 December 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.682s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-12-30 09:40:55 |

2022-12-30 09:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:55 | ------------------------------------

2022-12-30 09:40:55 | [Mutex] waiting for: [configured:node:node-033067c3-0de9-418b-82cf-ebf22d7e2313:node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa]

2022-12-30 09:40:55 | [Mutex] received everything.

2022-12-30 09:40:55 | [Mutex] isItemNotified: configured:node:node-033067c3-0de9-418b-82cf-ebf22d7e2313:node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa :: true

2022-12-30 09:40:56 | [Mutex] waiting for: [received:nodes:59848170-b8ed-4340-a180-4bc6ba25d0fe:localhost]

2022-12-30 09:40:56 | [Mutex] received everything.

2022-12-30 09:40:56 | [Mutex] isItemNotified: received:node:59848170-b8ed-4340-a180-4bc6ba25d0fe:localhost:node-033067c3-0de9-418b-82cf-ebf22d7e2313:Node 033067c3-0de9-418b-82cf-ebf22d7e2313 :: true

2022-12-30 09:40:56 | [Mutex] waiting for: [received:nodes:354b1097-d02f-4e66-a1a7-39cbb229a03f:localhost]

2022-12-30 09:40:56 | [Mutex] waiting for: [received:nodes:354b1097-d02f-4e66-a1a7-39cbb229a03f:localhost]

2022-12-30 09:40:56 | [Mutex] waiting for: [received:nodes:354b1097-d02f-4e66-a1a7-39cbb229a03f:localhost]

2022-12-30 09:40:56 | [Mutex] waiting for: [received:nodes:354b1097-d02f-4e66-a1a7-39cbb229a03f:localhost]

2022-12-30 09:40:56 | [Mutex] received everything.

2022-12-30 09:40:56 | [Mutex] isItemNotified: received:node:354b1097-d02f-4e66-a1a7-39cbb229a03f:localhost:node-033067c3-0de9-418b-82cf-ebf22d7e2313:Node 033067c3-0de9-418b-82cf-ebf22d7e2313 :: false

createNodes 1.592s
2022-12-30 09:40:53 |

2022-12-30 09:40:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:53 | ------------------------------------

2022-12-30 09:40:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "pubsub#title": "Node 033067c3-0de9-418b-82cf-ebf22d7e2313"
}

2022-12-30 09:40:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:40:54 | [Mutex] waiting for: [received:nodes:a367d852-93c7-43db-a9d3-1b02b9eb8440:localhost]

2022-12-30 09:40:54 | [Mutex] waiting for: [received:nodes:a367d852-93c7-43db-a9d3-1b02b9eb8440:localhost]

2022-12-30 09:40:54 | [Mutex] received everything.

2022-12-30 09:40:54 | [Mutex] isItemNotified: received:node:a367d852-93c7-43db-a9d3-1b02b9eb8440:localhost:node-033067c3-0de9-418b-82cf-ebf22d7e2313:Node 033067c3-0de9-418b-82cf-ebf22d7e2313 :: true

createSubnodes 1.022s
2022-12-30 09:40:54 |

2022-12-30 09:40:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:54 | ------------------------------------

2022-12-30 09:40:54 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa",
    "pubsub#title": "Node 2e52cd54-5fdf-4c17-9ee8-ce778b01acfa"
}

2022-12-30 09:40:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:40:55 | [Mutex] waiting for: [received:nodes:e234d290-6a48-4b9f-85b4-3c07ee6ac67e:localhost]

2022-12-30 09:40:55 | [Mutex] waiting for: [received:nodes:e234d290-6a48-4b9f-85b4-3c07ee6ac67e:localhost]

2022-12-30 09:40:55 | [Mutex] waiting for: [received:nodes:e234d290-6a48-4b9f-85b4-3c07ee6ac67e:localhost]

2022-12-30 09:40:55 | [Mutex] waiting for: [received:nodes:e234d290-6a48-4b9f-85b4-3c07ee6ac67e:localhost]

2022-12-30 09:40:55 | [Mutex] waiting for: [received:nodes:e234d290-6a48-4b9f-85b4-3c07ee6ac67e:localhost]

2022-12-30 09:40:55 | [Mutex] received everything.

2022-12-30 09:40:55 | [Mutex] isItemNotified: received:node:e234d290-6a48-4b9f-85b4-3c07ee6ac67e:localhost:node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa:Node 2e52cd54-5fdf-4c17-9ee8-ce778b01acfa :: true

deleteNodes 1.018s
2022-12-30 09:41:00 |

2022-12-30 09:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:41:00 | ------------------------------------

2022-12-30 09:41:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa"
}

2022-12-30 09:41:00 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:41:01 | [Mutex] waiting for: [received:nodes:193ae050-1328-47d3-b50b-798f17852a49:localhost]

2022-12-30 09:41:01 | [Mutex] waiting for: [received:nodes:193ae050-1328-47d3-b50b-798f17852a49:localhost]

2022-12-30 09:41:01 | [Mutex] received everything.

2022-12-30 09:41:01 | [Mutex] isItemNotified: received:node:193ae050-1328-47d3-b50b-798f17852a49:localhost:node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa:Node 2e52cd54-5fdf-4c17-9ee8-ce778b01acfa :: false

deleteSubnodes 1.024s
2022-12-30 09:40:59 |

2022-12-30 09:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:59 | ------------------------------------

2022-12-30 09:40:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313"
}

2022-12-30 09:40:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 09:41:00 | [Mutex] waiting for: [received:nodes:164a0bb6-1d40-4d88-a0d2-b35d15945ac3:localhost]

2022-12-30 09:41:00 | [Mutex] waiting for: [received:nodes:164a0bb6-1d40-4d88-a0d2-b35d15945ac3:localhost]

2022-12-30 09:41:00 | [Mutex] waiting for: [received:nodes:164a0bb6-1d40-4d88-a0d2-b35d15945ac3:localhost]

2022-12-30 09:41:00 | [Mutex] waiting for: [received:nodes:164a0bb6-1d40-4d88-a0d2-b35d15945ac3:localhost]

2022-12-30 09:41:00 | [Mutex] received everything.

2022-12-30 09:41:00 | [Mutex] isItemNotified: received:node:164a0bb6-1d40-4d88-a0d2-b35d15945ac3:localhost:node-033067c3-0de9-418b-82cf-ebf22d7e2313:Node 033067c3-0de9-418b-82cf-ebf22d7e2313 :: false

2022-12-30 09:41:00 | [Mutex] waiting for: [received:nodes:eeeea859-c007-4979-b884-955d781f0025:localhost]

2022-12-30 09:41:00 | [Mutex] received everything.

2022-12-30 09:41:00 | [Mutex] isItemNotified: received:node:eeeea859-c007-4979-b884-955d781f0025:localhost:node-033067c3-0de9-418b-82cf-ebf22d7e2313:Node 033067c3-0de9-418b-82cf-ebf22d7e2313 :: false

publishItemsToNodes 0.043s
2022-12-30 09:40:58 |

2022-12-30 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:58 | ------------------------------------

2022-12-30 09:40:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "entry": "<test>item-6d7a13f3-42d8-4394-b34c-b56025fd0aee</test>",
    "item-id": "item-6d7a13f3-42d8-4394-b34c-b56025fd0aee"
}

2022-12-30 09:40:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d7a13f3-42d8-4394-b34c-b56025fd0aee"
}

2022-12-30 09:40:58 | [Mutex] waiting for: [published:item:notifieditem-6d7a13f3-42d8-4394-b34c-b56025fd0aee:admin@test-domain.com]

2022-12-30 09:40:58 | [Mutex] received everything.

2022-12-30 09:40:58 | [Mutex] isItemNotified: published:item:notifieditem-6d7a13f3-42d8-4394-b34c-b56025fd0aee:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2022-12-30 09:40:58 |

2022-12-30 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:58 | ------------------------------------

2022-12-30 09:40:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "item-id": "item-6d7a13f3-42d8-4394-b34c-b56025fd0aee"
}

2022-12-30 09:40:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6d7a13f3-42d8-4394-b34c-b56025fd0aee"
}

2022-12-30 09:40:58 | [Mutex] waiting for: [retracted:item:notifieditem-6d7a13f3-42d8-4394-b34c-b56025fd0aee:admin@test-domain.com]

2022-12-30 09:40:58 | [Mutex] received everything.

2022-12-30 09:40:58 | [Mutex] isItemNotified: retracted:item:notifieditem-6d7a13f3-42d8-4394-b34c-b56025fd0aee:admin@test-domain.com :: true

retrieveItemsFromNodes 0.080s
2022-12-30 09:40:58 |

2022-12-30 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:58 | ------------------------------------

2022-12-30 09:40:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "item-id": "item-6d7a13f3-42d8-4394-b34c-b56025fd0aee"
}

2022-12-30 09:40:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "item-id": "item-6d7a13f3-42d8-4394-b34c-b56025fd0aee",
    "item": [
        "<item id=\"item-6d7a13f3-42d8-4394-b34c-b56025fd0aee\"><test>item-6d7a13f3-42d8-4394-b34c-b56025fd0aee</test></item>"
    ]
}

2022-12-30 09:40:58 | [Mutex] notify: [retrieved:item:item-6d7a13f3-42d8-4394-b34c-b56025fd0aee:payload-matches:true:localhost]

2022-12-30 09:40:58 | [Mutex] received everything.

2022-12-30 09:40:58 | [Mutex] isItemNotified: retrieved:item:item-6d7a13f3-42d8-4394-b34c-b56025fd0aee:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-30 09:40:58 |

2022-12-30 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:58 | ------------------------------------

2022-12-30 09:40:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-30 09:40:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2e52cd54-5fdf-4c17-9ee8-ce778b01acfa",
        "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-12-30 09:40:58 |

2022-12-30 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:58 | ------------------------------------

2022-12-30 09:40:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-033067c3-0de9-418b-82cf-ebf22d7e2313)"
}

2022-12-30 09:40:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-12-30 09:40:56 |

2022-12-30 09:40:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:56 | ------------------------------------

2022-12-30 09:40:56 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 09:40:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-12-30 09:40:58 |

2022-12-30 09:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 09:40:58 | ------------------------------------

2022-12-30 09:40:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-033067c3-0de9-418b-82cf-ebf22d7e2313",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 09:40:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}