Generated by TestNG with ReportNG at 21:15 PST on Sunday 05 March 2023
root@ed1b7dd8a1b3 / 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.550s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2023-03-05 21:29:34 |

2023-03-05 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:34 | ------------------------------------

2023-03-05 21:29:34 | [Mutex] waiting for: [configured:node:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb]

2023-03-05 21:29:34 | [Mutex] received everything.

2023-03-05 21:29:34 | [Mutex] isItemNotified: configured:node:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb :: true

2023-03-05 21:29:35 | [Mutex] waiting for: [received:nodes:0e336d33-3bfb-4bb2-b9a5-8ccbd5219774:localhost]

2023-03-05 21:29:35 | [Mutex] received everything.

2023-03-05 21:29:35 | [Mutex] isItemNotified: received:node:0e336d33-3bfb-4bb2-b9a5-8ccbd5219774:localhost:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:Node 7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a :: true

2023-03-05 21:29:35 | [Mutex] waiting for: [received:nodes:97d66f5e-9693-46b0-8d75-26149470e9f9:localhost]

2023-03-05 21:29:35 | [Mutex] received everything.

2023-03-05 21:29:35 | [Mutex] isItemNotified: received:node:97d66f5e-9693-46b0-8d75-26149470e9f9:localhost:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:Node 7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a :: false

createNodes 1.567s
2023-03-05 21:29:31 |

2023-03-05 21:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:31 | ------------------------------------

2023-03-05 21:29:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "pubsub#title": "Node 7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a"
}

2023-03-05 21:29:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:29:33 | [Mutex] waiting for: [received:nodes:14a86929-3c75-4d1b-9c8a-0a57d59bc6bb:localhost]

2023-03-05 21:29:33 | [Mutex] waiting for: [received:nodes:14a86929-3c75-4d1b-9c8a-0a57d59bc6bb:localhost]

2023-03-05 21:29:33 | [Mutex] waiting for: [received:nodes:14a86929-3c75-4d1b-9c8a-0a57d59bc6bb:localhost]

2023-03-05 21:29:33 | [Mutex] received everything.

2023-03-05 21:29:33 | [Mutex] isItemNotified: received:node:14a86929-3c75-4d1b-9c8a-0a57d59bc6bb:localhost:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:Node 7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a :: true

createSubnodes 1.024s
2023-03-05 21:29:33 |

2023-03-05 21:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:33 | ------------------------------------

2023-03-05 21:29:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb",
    "pubsub#title": "Node 0090fcf9-bf64-4eea-b50c-30f9d6a408cb"
}

2023-03-05 21:29:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:29:34 | [Mutex] waiting for: [received:nodes:99762491-4024-45c0-a7a1-3985dae988a9:localhost]

2023-03-05 21:29:34 | [Mutex] waiting for: [received:nodes:99762491-4024-45c0-a7a1-3985dae988a9:localhost]

2023-03-05 21:29:34 | [Mutex] waiting for: [received:nodes:99762491-4024-45c0-a7a1-3985dae988a9:localhost]

2023-03-05 21:29:34 | [Mutex] received everything.

2023-03-05 21:29:34 | [Mutex] isItemNotified: received:node:99762491-4024-45c0-a7a1-3985dae988a9:localhost:node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb:Node 0090fcf9-bf64-4eea-b50c-30f9d6a408cb :: true

deleteNodes 1.021s
2023-03-05 21:29:38 |

2023-03-05 21:29:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:38 | ------------------------------------

2023-03-05 21:29:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb"
}

2023-03-05 21:29:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:29:39 | [Mutex] waiting for: [received:nodes:a94cb6a3-4a1a-4ab6-9691-a8b259636cb6:localhost]

2023-03-05 21:29:39 | [Mutex] waiting for: [received:nodes:a94cb6a3-4a1a-4ab6-9691-a8b259636cb6:localhost]

2023-03-05 21:29:39 | [Mutex] waiting for: [received:nodes:a94cb6a3-4a1a-4ab6-9691-a8b259636cb6:localhost]

2023-03-05 21:29:39 | [Mutex] received everything.

2023-03-05 21:29:39 | [Mutex] isItemNotified: received:node:a94cb6a3-4a1a-4ab6-9691-a8b259636cb6:localhost:node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb:Node 0090fcf9-bf64-4eea-b50c-30f9d6a408cb :: false

deleteSubnodes 1.027s
2023-03-05 21:29:37 |

2023-03-05 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:37 | ------------------------------------

2023-03-05 21:29:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a"
}

2023-03-05 21:29:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-05 21:29:38 | [Mutex] waiting for: [received:nodes:df6bcfc0-c7a4-4305-908a-ffee25e4bc82:localhost]

2023-03-05 21:29:38 | [Mutex] waiting for: [received:nodes:df6bcfc0-c7a4-4305-908a-ffee25e4bc82:localhost]

2023-03-05 21:29:38 | [Mutex] received everything.

2023-03-05 21:29:38 | [Mutex] isItemNotified: received:node:df6bcfc0-c7a4-4305-908a-ffee25e4bc82:localhost:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:Node 7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a :: false

2023-03-05 21:29:38 | [Mutex] waiting for: [received:nodes:0c8635c3-4091-4f72-9c2c-77b32ae89fe0:localhost]

2023-03-05 21:29:38 | [Mutex] received everything.

2023-03-05 21:29:38 | [Mutex] isItemNotified: received:node:0c8635c3-4091-4f72-9c2c-77b32ae89fe0:localhost:node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a:Node 7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a :: false

publishItemsToNodes 0.035s
2023-03-05 21:29:36 |

2023-03-05 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:36 | ------------------------------------

2023-03-05 21:29:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "entry": "<test>item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e</test>",
    "item-id": "item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e"
}

2023-03-05 21:29:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e"
}

2023-03-05 21:29:36 | [Mutex] waiting for: [published:item:notifieditem-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e:admin@test-domain.com]

2023-03-05 21:29:36 | [Mutex] received everything.

2023-03-05 21:29:36 | [Mutex] isItemNotified: published:item:notifieditem-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-03-05 21:29:36 |

2023-03-05 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:36 | ------------------------------------

2023-03-05 21:29:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "item-id": "item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e"
}

2023-03-05 21:29:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e"
}

2023-03-05 21:29:36 | [Mutex] received everything.

2023-03-05 21:29:36 | [Mutex] isItemNotified: retracted:item:notifieditem-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-03-05 21:29:36 |

2023-03-05 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:36 | ------------------------------------

2023-03-05 21:29:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "item-id": "item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e"
}

2023-03-05 21:29:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "item-id": "item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e",
    "item": [
        "<item id=\"item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e\"><test>item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e</test></item>"
    ]
}

2023-03-05 21:29:36 | [Mutex] notify: [retrieved:item:item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e:payload-matches:true:localhost]

2023-03-05 21:29:36 | [Mutex] received everything.

2023-03-05 21:29:36 | [Mutex] isItemNotified: retrieved:item:item-3964cbe3-e064-4c3d-9d98-f0cffcdaec4e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-05 21:29:36 |

2023-03-05 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:36 | ------------------------------------

2023-03-05 21:29:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-05 21:29:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0090fcf9-bf64-4eea-b50c-30f9d6a408cb",
        "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-05 21:29:36 |

2023-03-05 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:36 | ------------------------------------

2023-03-05 21:29:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a)"
}

2023-03-05 21:29:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-03-05 21:29:35 |

2023-03-05 21:29:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:35 | ------------------------------------

2023-03-05 21:29:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-05 21:29:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2023-03-05 21:29:36 |

2023-03-05 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-05 21:29:36 | ------------------------------------

2023-03-05 21:29:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7f9e9fef-7f2f-4ffe-91b3-698b2a64a89a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-05 21:29:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}