Generated by TestNG with ReportNG at 22:46 PDT on Thursday 07 July 2022
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.603s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2022-07-07 23:00:46 |

2022-07-07 23:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:46 | ------------------------------------

2022-07-07 23:00:46 | [Mutex] waiting for: [configured:node:node-250a36f9-27a2-4967-9ada-376647db7a05:node-de727f8e-676f-4b84-be93-1a9e401f04a4]

2022-07-07 23:00:46 | [Mutex] received everything.

2022-07-07 23:00:46 | [Mutex] isItemNotified: configured:node:node-250a36f9-27a2-4967-9ada-376647db7a05:node-de727f8e-676f-4b84-be93-1a9e401f04a4 :: true

2022-07-07 23:00:47 | [Mutex] waiting for: [received:nodes:dabfc33e-58c0-45f8-928d-24d0521e023a:localhost]

2022-07-07 23:00:47 | [Mutex] received everything.

2022-07-07 23:00:47 | [Mutex] isItemNotified: received:node:dabfc33e-58c0-45f8-928d-24d0521e023a:localhost:node-250a36f9-27a2-4967-9ada-376647db7a05:Node 250a36f9-27a2-4967-9ada-376647db7a05 :: true

2022-07-07 23:00:47 | [Mutex] waiting for: [received:nodes:5a282de3-9f18-4377-9996-cfbbc6f33785:localhost]

2022-07-07 23:00:47 | [Mutex] waiting for: [received:nodes:5a282de3-9f18-4377-9996-cfbbc6f33785:localhost]

2022-07-07 23:00:47 | [Mutex] received everything.

2022-07-07 23:00:47 | [Mutex] isItemNotified: received:node:5a282de3-9f18-4377-9996-cfbbc6f33785:localhost:node-250a36f9-27a2-4967-9ada-376647db7a05:Node 250a36f9-27a2-4967-9ada-376647db7a05 :: false

createNodes 1.564s
2022-07-07 23:00:43 |

2022-07-07 23:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:43 | ------------------------------------

2022-07-07 23:00: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-250a36f9-27a2-4967-9ada-376647db7a05",
    "pubsub#title": "Node 250a36f9-27a2-4967-9ada-376647db7a05"
}

2022-07-07 23:00:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:00:45 | [Mutex] waiting for: [received:nodes:eb2e04ab-ecdc-473c-a405-2e17a68eac17:localhost]

2022-07-07 23:00:45 | [Mutex] received everything.

2022-07-07 23:00:45 | [Mutex] isItemNotified: received:node:eb2e04ab-ecdc-473c-a405-2e17a68eac17:localhost:node-250a36f9-27a2-4967-9ada-376647db7a05:Node 250a36f9-27a2-4967-9ada-376647db7a05 :: true

createSubnodes 1.023s
2022-07-07 23:00:45 |

2022-07-07 23:00:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:45 | ------------------------------------

2022-07-07 23:00: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-de727f8e-676f-4b84-be93-1a9e401f04a4",
    "pubsub#title": "Node de727f8e-676f-4b84-be93-1a9e401f04a4"
}

2022-07-07 23:00:45 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:00:46 | [Mutex] waiting for: [received:nodes:51f32e82-3e40-401d-a884-07cc39f9fd99:localhost]

2022-07-07 23:00:46 | [Mutex] waiting for: [received:nodes:51f32e82-3e40-401d-a884-07cc39f9fd99:localhost]

2022-07-07 23:00:46 | [Mutex] received everything.

2022-07-07 23:00:46 | [Mutex] isItemNotified: received:node:51f32e82-3e40-401d-a884-07cc39f9fd99:localhost:node-de727f8e-676f-4b84-be93-1a9e401f04a4:Node de727f8e-676f-4b84-be93-1a9e401f04a4 :: true

deleteNodes 1.027s
2022-07-07 23:00:50 |

2022-07-07 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:50 | ------------------------------------

2022-07-07 23:00:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de727f8e-676f-4b84-be93-1a9e401f04a4"
}

2022-07-07 23:00:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:00:51 | [Mutex] waiting for: [received:nodes:706b7849-2900-40ee-a6ca-d6a27cd4a504:localhost]

2022-07-07 23:00:51 | [Mutex] received everything.

2022-07-07 23:00:51 | [Mutex] isItemNotified: received:node:706b7849-2900-40ee-a6ca-d6a27cd4a504:localhost:node-de727f8e-676f-4b84-be93-1a9e401f04a4:Node de727f8e-676f-4b84-be93-1a9e401f04a4 :: false

deleteSubnodes 1.025s
2022-07-07 23:00:49 |

2022-07-07 23:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:49 | ------------------------------------

2022-07-07 23:00:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05"
}

2022-07-07 23:00:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:00:50 | [Mutex] waiting for: [received:nodes:15f21f4f-26e5-4fe9-b6f3-d0576b1dff9b:localhost]

2022-07-07 23:00:50 | [Mutex] received everything.

2022-07-07 23:00:50 | [Mutex] isItemNotified: received:node:15f21f4f-26e5-4fe9-b6f3-d0576b1dff9b:localhost:node-250a36f9-27a2-4967-9ada-376647db7a05:Node 250a36f9-27a2-4967-9ada-376647db7a05 :: false

2022-07-07 23:00:50 | [Mutex] waiting for: [received:nodes:2d5ec04b-c99d-484b-8d6c-2dcd8e9827c3:localhost]

2022-07-07 23:00:50 | [Mutex] received everything.

2022-07-07 23:00:50 | [Mutex] isItemNotified: received:node:2d5ec04b-c99d-484b-8d6c-2dcd8e9827c3:localhost:node-250a36f9-27a2-4967-9ada-376647db7a05:Node 250a36f9-27a2-4967-9ada-376647db7a05 :: false

publishItemsToNodes 0.051s
2022-07-07 23:00:48 |

2022-07-07 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:48 | ------------------------------------

2022-07-07 23:00:48 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05",
    "entry": "<test>item-dc07117c-24ac-43b2-99fd-29cc257b1884</test>",
    "item-id": "item-dc07117c-24ac-43b2-99fd-29cc257b1884"
}

2022-07-07 23:00:48 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dc07117c-24ac-43b2-99fd-29cc257b1884"
}

2022-07-07 23:00:48 | [Mutex] waiting for: [published:item:notifieditem-dc07117c-24ac-43b2-99fd-29cc257b1884:admin@test-domain.com]

2022-07-07 23:00:48 | [Mutex] received everything.

2022-07-07 23:00:48 | [Mutex] isItemNotified: published:item:notifieditem-dc07117c-24ac-43b2-99fd-29cc257b1884:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-07-07 23:00:48 |

2022-07-07 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:48 | ------------------------------------

2022-07-07 23:00:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05",
    "item-id": "item-dc07117c-24ac-43b2-99fd-29cc257b1884"
}

2022-07-07 23:00:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dc07117c-24ac-43b2-99fd-29cc257b1884"
}

2022-07-07 23:00:48 | [Mutex] received everything.

2022-07-07 23:00:48 | [Mutex] isItemNotified: retracted:item:notifieditem-dc07117c-24ac-43b2-99fd-29cc257b1884:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-07-07 23:00:48 |

2022-07-07 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:48 | ------------------------------------

2022-07-07 23:00:48 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05",
    "item-id": "item-dc07117c-24ac-43b2-99fd-29cc257b1884"
}

2022-07-07 23:00:48 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05",
    "item-id": "item-dc07117c-24ac-43b2-99fd-29cc257b1884",
    "item": [
        "<item id=\"item-dc07117c-24ac-43b2-99fd-29cc257b1884\"><test>item-dc07117c-24ac-43b2-99fd-29cc257b1884</test></item>"
    ]
}

2022-07-07 23:00:48 | [Mutex] notify: [retrieved:item:item-dc07117c-24ac-43b2-99fd-29cc257b1884:payload-matches:true:localhost]

2022-07-07 23:00:48 | [Mutex] received everything.

2022-07-07 23:00:48 | [Mutex] isItemNotified: retrieved:item:item-dc07117c-24ac-43b2-99fd-29cc257b1884:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-07 23:00:48 |

2022-07-07 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:48 | ------------------------------------

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

2022-07-07 23:00:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-250a36f9-27a2-4967-9ada-376647db7a05",
        "node-de727f8e-676f-4b84-be93-1a9e401f04a4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-07 23:00:48 |

2022-07-07 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:48 | ------------------------------------

2022-07-07 23:00:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-250a36f9-27a2-4967-9ada-376647db7a05)"
}

2022-07-07 23:00:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-07-07 23:00:47 |

2022-07-07 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:47 | ------------------------------------

2022-07-07 23:00:47 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-07 23:00:47 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-07-07 23:00:48 |

2022-07-07 23:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:00:48 | ------------------------------------

2022-07-07 23:00:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-250a36f9-27a2-4967-9ada-376647db7a05",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-07 23:00:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}