Generated by TestNG with ReportNG at 04:36 PST on Thursday 17 February 2022
root@f29ef40080b5 / 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 : 8.986s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-02-17 04:49:50 |

2022-02-17 04:49:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:50 | ------------------------------------

2022-02-17 04:49:50 | [Mutex] waiting for: [configured:node:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb]

2022-02-17 04:49:50 | [Mutex] received everything.

2022-02-17 04:49:50 | [Mutex] isItemNotified: configured:node:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb :: true

2022-02-17 04:49:51 | [Mutex] waiting for: [received:nodes:8a8ff96e-5a93-46b3-9c8e-5d1a7d6b4efe:localhost]

2022-02-17 04:49:51 | [Mutex] received everything.

2022-02-17 04:49:51 | [Mutex] isItemNotified: received:node:8a8ff96e-5a93-46b3-9c8e-5d1a7d6b4efe:localhost:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:Node cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c :: true

2022-02-17 04:49:51 | [Mutex] waiting for: [received:nodes:8a339a6d-5cbb-4271-a23e-8696ba3d7590:localhost]

2022-02-17 04:49:51 | [Mutex] received everything.

2022-02-17 04:49:51 | [Mutex] isItemNotified: received:node:8a339a6d-5cbb-4271-a23e-8696ba3d7590:localhost:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:Node cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c :: false

createNodes 1.696s
2022-02-17 04:49:47 |

2022-02-17 04:49:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:47 | ------------------------------------

2022-02-17 04:49:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "pubsub#title": "Node cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c"
}

2022-02-17 04:49:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:49:49 | [Mutex] waiting for: [received:nodes:24ad6410-124b-4466-aacf-48be8236463f:localhost]

2022-02-17 04:49:49 | [Mutex] waiting for: [received:nodes:24ad6410-124b-4466-aacf-48be8236463f:localhost]

2022-02-17 04:49:49 | [Mutex] received everything.

2022-02-17 04:49:49 | [Mutex] isItemNotified: received:node:24ad6410-124b-4466-aacf-48be8236463f:localhost:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:Node cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c :: true

createSubnodes 1.022s
2022-02-17 04:49:49 |

2022-02-17 04:49:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:49 | ------------------------------------

2022-02-17 04:49:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb",
    "pubsub#title": "Node 93e2b51b-7dcc-4c2b-8851-cf88b9e391fb"
}

2022-02-17 04:49:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:49:50 | [Mutex] waiting for: [received:nodes:1ed30a90-d0df-47a1-8e76-3f0adfedb060:localhost]

2022-02-17 04:49:50 | [Mutex] waiting for: [received:nodes:1ed30a90-d0df-47a1-8e76-3f0adfedb060:localhost]

2022-02-17 04:49:50 | [Mutex] received everything.

2022-02-17 04:49:50 | [Mutex] isItemNotified: received:node:1ed30a90-d0df-47a1-8e76-3f0adfedb060:localhost:node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb:Node 93e2b51b-7dcc-4c2b-8851-cf88b9e391fb :: true

deleteNodes 1.026s
2022-02-17 04:49:54 |

2022-02-17 04:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:54 | ------------------------------------

2022-02-17 04:49:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb"
}

2022-02-17 04:49:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:49:55 | [Mutex] waiting for: [received:nodes:f568abd1-1178-4011-ab7e-6f1ce04e3389:localhost]

2022-02-17 04:49:55 | [Mutex] received everything.

2022-02-17 04:49:55 | [Mutex] isItemNotified: received:node:f568abd1-1178-4011-ab7e-6f1ce04e3389:localhost:node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb:Node 93e2b51b-7dcc-4c2b-8851-cf88b9e391fb :: false

deleteSubnodes 1.026s
2022-02-17 04:49:53 |

2022-02-17 04:49:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:53 | ------------------------------------

2022-02-17 04:49:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c"
}

2022-02-17 04:49:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 04:49:54 | [Mutex] waiting for: [received:nodes:d036a44f-abbe-4a01-a9f0-92fe2622efda:localhost]

2022-02-17 04:49:54 | [Mutex] waiting for: [received:nodes:d036a44f-abbe-4a01-a9f0-92fe2622efda:localhost]

2022-02-17 04:49:54 | [Mutex] received everything.

2022-02-17 04:49:54 | [Mutex] isItemNotified: received:node:d036a44f-abbe-4a01-a9f0-92fe2622efda:localhost:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:Node cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c :: false

2022-02-17 04:49:54 | [Mutex] waiting for: [received:nodes:b415cc53-abec-41d3-97d9-a9611288769b:localhost]

2022-02-17 04:49:54 | [Mutex] received everything.

2022-02-17 04:49:54 | [Mutex] isItemNotified: received:node:b415cc53-abec-41d3-97d9-a9611288769b:localhost:node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c:Node cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c :: false

publishItemsToNodes 0.108s
2022-02-17 04:49:52 |

2022-02-17 04:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:52 | ------------------------------------

2022-02-17 04:49:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "entry": "<test>item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f</test>",
    "item-id": "item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f"
}

2022-02-17 04:49:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f"
}

2022-02-17 04:49:52 | [Mutex] waiting for: [published:item:notifieditem-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f:admin@test-domain.com]

2022-02-17 04:49:52 | [Mutex] received everything.

2022-02-17 04:49:52 | [Mutex] isItemNotified: published:item:notifieditem-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f:admin@test-domain.com :: true

retractItemsFromNodes 0.065s
2022-02-17 04:49:52 |

2022-02-17 04:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:52 | ------------------------------------

2022-02-17 04:49:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "item-id": "item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f"
}

2022-02-17 04:49:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f"
}

2022-02-17 04:49:52 | [Mutex] waiting for: [retracted:item:notifieditem-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f:admin@test-domain.com]

2022-02-17 04:49:52 | [Mutex] received everything.

2022-02-17 04:49:52 | [Mutex] isItemNotified: retracted:item:notifieditem-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2022-02-17 04:49:52 |

2022-02-17 04:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:52 | ------------------------------------

2022-02-17 04:49:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "item-id": "item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f"
}

2022-02-17 04:49:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "item-id": "item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f",
    "item": [
        "<item id=\"item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f\"><test>item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f</test></item>"
    ]
}

2022-02-17 04:49:52 | [Mutex] notify: [retrieved:item:item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f:payload-matches:true:localhost]

2022-02-17 04:49:52 | [Mutex] received everything.

2022-02-17 04:49:52 | [Mutex] isItemNotified: retrieved:item:item-c4fd65c4-bef1-4509-a25e-7e5d4ad5764f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-17 04:49:52 |

2022-02-17 04:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:52 | ------------------------------------

2022-02-17 04:49:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-17 04:49:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-93e2b51b-7dcc-4c2b-8851-cf88b9e391fb",
        "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-17 04:49:52 |

2022-02-17 04:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:52 | ------------------------------------

2022-02-17 04:49:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c)"
}

2022-02-17 04:49:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-17 04:49:51 |

2022-02-17 04:49:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:51 | ------------------------------------

2022-02-17 04:49:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 04:49:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.069s
2022-02-17 04:49:52 |

2022-02-17 04:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 04:49:52 | ------------------------------------

2022-02-17 04:49:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cd7550ac-1b3e-4fe6-b3a9-6cb839d2cd9c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 04:49:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}