Generated by TestNG with ReportNG at 22:17 PDT on Sunday 19 June 2022
root@61c39d2ed70d / 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.780s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2022-06-19 22:32:04 |

2022-06-19 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:04 | ------------------------------------

2022-06-19 22:32:04 | [Mutex] waiting for: [configured:node:node-e9340279-59c0-4290-a209-b74f144c9b41:node-c9a1933b-93be-4b64-a137-ff5861748427]

2022-06-19 22:32:04 | [Mutex] received everything.

2022-06-19 22:32:04 | [Mutex] isItemNotified: configured:node:node-e9340279-59c0-4290-a209-b74f144c9b41:node-c9a1933b-93be-4b64-a137-ff5861748427 :: true

2022-06-19 22:32:05 | [Mutex] waiting for: [received:nodes:40a67a55-3387-4ffb-9078-fcd08c0debed:localhost]

2022-06-19 22:32:05 | [Mutex] received everything.

2022-06-19 22:32:05 | [Mutex] isItemNotified: received:node:40a67a55-3387-4ffb-9078-fcd08c0debed:localhost:node-e9340279-59c0-4290-a209-b74f144c9b41:Node e9340279-59c0-4290-a209-b74f144c9b41 :: true

2022-06-19 22:32:05 | [Mutex] waiting for: [received:nodes:1f1de949-d42c-4fc8-82b4-64e8d0300c31:localhost]

2022-06-19 22:32:05 | [Mutex] received everything.

2022-06-19 22:32:05 | [Mutex] isItemNotified: received:node:1f1de949-d42c-4fc8-82b4-64e8d0300c31:localhost:node-e9340279-59c0-4290-a209-b74f144c9b41:Node e9340279-59c0-4290-a209-b74f144c9b41 :: false

createNodes 1.653s
2022-06-19 22:32:02 |

2022-06-19 22:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:02 | ------------------------------------

2022-06-19 22:32:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "pubsub#title": "Node e9340279-59c0-4290-a209-b74f144c9b41"
}

2022-06-19 22:32:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 22:32:03 | [Mutex] waiting for: [received:nodes:0ff82ec4-41e0-4fc1-8d97-b9b4b4d85029:localhost]

2022-06-19 22:32:03 | [Mutex] waiting for: [received:nodes:0ff82ec4-41e0-4fc1-8d97-b9b4b4d85029:localhost]

2022-06-19 22:32:03 | [Mutex] received everything.

2022-06-19 22:32:03 | [Mutex] isItemNotified: received:node:0ff82ec4-41e0-4fc1-8d97-b9b4b4d85029:localhost:node-e9340279-59c0-4290-a209-b74f144c9b41:Node e9340279-59c0-4290-a209-b74f144c9b41 :: true

createSubnodes 1.032s
2022-06-19 22:32:03 |

2022-06-19 22:32:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:03 | ------------------------------------

2022-06-19 22:32:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c9a1933b-93be-4b64-a137-ff5861748427",
    "pubsub#title": "Node c9a1933b-93be-4b64-a137-ff5861748427"
}

2022-06-19 22:32:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 22:32:04 | [Mutex] waiting for: [received:nodes:cd680055-889c-441c-b8fb-3feb8b0a26a7:localhost]

2022-06-19 22:32:04 | [Mutex] received everything.

2022-06-19 22:32:04 | [Mutex] isItemNotified: received:node:cd680055-889c-441c-b8fb-3feb8b0a26a7:localhost:node-c9a1933b-93be-4b64-a137-ff5861748427:Node c9a1933b-93be-4b64-a137-ff5861748427 :: true

deleteNodes 1.026s
2022-06-19 22:32:09 |

2022-06-19 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:09 | ------------------------------------

2022-06-19 22:32:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c9a1933b-93be-4b64-a137-ff5861748427"
}

2022-06-19 22:32:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 22:32:10 | [Mutex] waiting for: [received:nodes:d7486a03-c868-4cfc-ab06-25ffb1ca1a82:localhost]

2022-06-19 22:32:10 | [Mutex] received everything.

2022-06-19 22:32:10 | [Mutex] isItemNotified: received:node:d7486a03-c868-4cfc-ab06-25ffb1ca1a82:localhost:node-c9a1933b-93be-4b64-a137-ff5861748427:Node c9a1933b-93be-4b64-a137-ff5861748427 :: false

deleteSubnodes 1.034s
2022-06-19 22:32:08 |

2022-06-19 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:08 | ------------------------------------

2022-06-19 22:32:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41"
}

2022-06-19 22:32:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 22:32:09 | [Mutex] waiting for: [received:nodes:d9056324-7059-42a3-8af2-6738137a5b7e:localhost]

2022-06-19 22:32:09 | [Mutex] waiting for: [received:nodes:d9056324-7059-42a3-8af2-6738137a5b7e:localhost]

2022-06-19 22:32:09 | [Mutex] received everything.

2022-06-19 22:32:09 | [Mutex] isItemNotified: received:node:d9056324-7059-42a3-8af2-6738137a5b7e:localhost:node-e9340279-59c0-4290-a209-b74f144c9b41:Node e9340279-59c0-4290-a209-b74f144c9b41 :: false

2022-06-19 22:32:09 | [Mutex] waiting for: [received:nodes:95c3b79c-1ce8-45f8-bcac-5b9222187e58:localhost]

2022-06-19 22:32:09 | [Mutex] received everything.

2022-06-19 22:32:09 | [Mutex] isItemNotified: received:node:95c3b79c-1ce8-45f8-bcac-5b9222187e58:localhost:node-e9340279-59c0-4290-a209-b74f144c9b41:Node e9340279-59c0-4290-a209-b74f144c9b41 :: false

publishItemsToNodes 0.073s
2022-06-19 22:32:07 |

2022-06-19 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:07 | ------------------------------------

2022-06-19 22:32:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "entry": "<test>item-be7a2efa-6a34-4d79-8b69-9bae21096c45</test>",
    "item-id": "item-be7a2efa-6a34-4d79-8b69-9bae21096c45"
}

2022-06-19 22:32:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be7a2efa-6a34-4d79-8b69-9bae21096c45"
}

2022-06-19 22:32:07 | [Mutex] waiting for: [published:item:notifieditem-be7a2efa-6a34-4d79-8b69-9bae21096c45:admin@test-domain.com]

2022-06-19 22:32:07 | [Mutex] received everything.

2022-06-19 22:32:07 | [Mutex] isItemNotified: published:item:notifieditem-be7a2efa-6a34-4d79-8b69-9bae21096c45:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-06-19 22:32:07 |

2022-06-19 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:07 | ------------------------------------

2022-06-19 22:32:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "item-id": "item-be7a2efa-6a34-4d79-8b69-9bae21096c45"
}

2022-06-19 22:32:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be7a2efa-6a34-4d79-8b69-9bae21096c45"
}

2022-06-19 22:32:07 | [Mutex] received everything.

2022-06-19 22:32:07 | [Mutex] isItemNotified: retracted:item:notifieditem-be7a2efa-6a34-4d79-8b69-9bae21096c45:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-06-19 22:32:07 |

2022-06-19 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:07 | ------------------------------------

2022-06-19 22:32:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "item-id": "item-be7a2efa-6a34-4d79-8b69-9bae21096c45"
}

2022-06-19 22:32:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "item-id": "item-be7a2efa-6a34-4d79-8b69-9bae21096c45",
    "item": [
        "<item id=\"item-be7a2efa-6a34-4d79-8b69-9bae21096c45\"><test>item-be7a2efa-6a34-4d79-8b69-9bae21096c45</test></item>"
    ]
}

2022-06-19 22:32:07 | [Mutex] notify: [retrieved:item:item-be7a2efa-6a34-4d79-8b69-9bae21096c45:payload-matches:true:localhost]

2022-06-19 22:32:07 | [Mutex] received everything.

2022-06-19 22:32:07 | [Mutex] isItemNotified: retrieved:item:item-be7a2efa-6a34-4d79-8b69-9bae21096c45:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-19 22:32:07 |

2022-06-19 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:07 | ------------------------------------

2022-06-19 22:32:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-19 22:32:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e9340279-59c0-4290-a209-b74f144c9b41",
        "node-c9a1933b-93be-4b64-a137-ff5861748427",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.107s
2022-06-19 22:32:07 |

2022-06-19 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:07 | ------------------------------------

2022-06-19 22:32:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e9340279-59c0-4290-a209-b74f144c9b41)"
}

2022-06-19 22:32:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-06-19 22:32:06 |

2022-06-19 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:06 | ------------------------------------

2022-06-19 22:32:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-19 22:32:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-06-19 22:32:07 |

2022-06-19 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 22:32:07 | ------------------------------------

2022-06-19 22:32:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e9340279-59c0-4290-a209-b74f144c9b41",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-19 22:32:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}