Generated by TestNG with ReportNG at 22:47 PDT on Sunday 24 July 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.800s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2022-07-24 23:02:23 |

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

2022-07-24 23:02:23 | ------------------------------------

2022-07-24 23:02:23 | [Mutex] waiting for: [configured:node:node-acd1f170-67b6-4329-a4c5-208de7749e73:node-e296f501-a612-40cb-880f-6673e963512b]

2022-07-24 23:02:23 | [Mutex] received everything.

2022-07-24 23:02:23 | [Mutex] isItemNotified: configured:node:node-acd1f170-67b6-4329-a4c5-208de7749e73:node-e296f501-a612-40cb-880f-6673e963512b :: true

2022-07-24 23:02:24 | [Mutex] waiting for: [received:nodes:68618a27-530c-494b-9482-35a3f6664093:localhost]

2022-07-24 23:02:24 | [Mutex] received everything.

2022-07-24 23:02:24 | [Mutex] isItemNotified: received:node:68618a27-530c-494b-9482-35a3f6664093:localhost:node-acd1f170-67b6-4329-a4c5-208de7749e73:Node acd1f170-67b6-4329-a4c5-208de7749e73 :: true

2022-07-24 23:02:24 | [Mutex] waiting for: [received:nodes:cafe0f00-7a35-4f7b-95c5-df796bce547d:localhost]

2022-07-24 23:02:24 | [Mutex] received everything.

2022-07-24 23:02:24 | [Mutex] isItemNotified: received:node:cafe0f00-7a35-4f7b-95c5-df796bce547d:localhost:node-acd1f170-67b6-4329-a4c5-208de7749e73:Node acd1f170-67b6-4329-a4c5-208de7749e73 :: false

createNodes 1.650s
2022-07-24 23:02:20 |

2022-07-24 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:20 | ------------------------------------

2022-07-24 23:02:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "pubsub#title": "Node acd1f170-67b6-4329-a4c5-208de7749e73"
}

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

2022-07-24 23:02:22 | [Mutex] waiting for: [received:nodes:b848a29c-f975-4d7f-a4c8-106f37bb3975:localhost]

2022-07-24 23:02:22 | [Mutex] waiting for: [received:nodes:b848a29c-f975-4d7f-a4c8-106f37bb3975:localhost]

2022-07-24 23:02:22 | [Mutex] received everything.

2022-07-24 23:02:22 | [Mutex] isItemNotified: received:node:b848a29c-f975-4d7f-a4c8-106f37bb3975:localhost:node-acd1f170-67b6-4329-a4c5-208de7749e73:Node acd1f170-67b6-4329-a4c5-208de7749e73 :: true

createSubnodes 1.026s
2022-07-24 23:02:22 |

2022-07-24 23:02:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:22 | ------------------------------------

2022-07-24 23:02:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e296f501-a612-40cb-880f-6673e963512b",
    "pubsub#title": "Node e296f501-a612-40cb-880f-6673e963512b"
}

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

2022-07-24 23:02:23 | [Mutex] waiting for: [received:nodes:86695e73-7336-480a-aa95-3c76655f4dba:localhost]

2022-07-24 23:02:23 | [Mutex] received everything.

2022-07-24 23:02:23 | [Mutex] isItemNotified: received:node:86695e73-7336-480a-aa95-3c76655f4dba:localhost:node-e296f501-a612-40cb-880f-6673e963512b:Node e296f501-a612-40cb-880f-6673e963512b :: true

deleteNodes 1.017s
2022-07-24 23:02:27 |

2022-07-24 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:27 | ------------------------------------

2022-07-24 23:02:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e296f501-a612-40cb-880f-6673e963512b"
}

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

2022-07-24 23:02:28 | [Mutex] waiting for: [received:nodes:10a1bbfb-4dec-486e-996f-097f7813970f:localhost]

2022-07-24 23:02:28 | [Mutex] waiting for: [received:nodes:10a1bbfb-4dec-486e-996f-097f7813970f:localhost]

2022-07-24 23:02:28 | [Mutex] received everything.

2022-07-24 23:02:28 | [Mutex] isItemNotified: received:node:10a1bbfb-4dec-486e-996f-097f7813970f:localhost:node-e296f501-a612-40cb-880f-6673e963512b:Node e296f501-a612-40cb-880f-6673e963512b :: false

deleteSubnodes 1.027s
2022-07-24 23:02:26 |

2022-07-24 23:02:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:26 | ------------------------------------

2022-07-24 23:02:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73"
}

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

2022-07-24 23:02:27 | [Mutex] waiting for: [received:nodes:88d0525f-056c-4a0a-8a3d-ee90232d3982:localhost]

2022-07-24 23:02:27 | [Mutex] waiting for: [received:nodes:88d0525f-056c-4a0a-8a3d-ee90232d3982:localhost]

2022-07-24 23:02:27 | [Mutex] received everything.

2022-07-24 23:02:27 | [Mutex] isItemNotified: received:node:88d0525f-056c-4a0a-8a3d-ee90232d3982:localhost:node-acd1f170-67b6-4329-a4c5-208de7749e73:Node acd1f170-67b6-4329-a4c5-208de7749e73 :: false

2022-07-24 23:02:27 | [Mutex] waiting for: [received:nodes:ae31fe4c-c008-434a-8f1c-a4fa847f178b:localhost]

2022-07-24 23:02:27 | [Mutex] received everything.

2022-07-24 23:02:27 | [Mutex] isItemNotified: received:node:ae31fe4c-c008-434a-8f1c-a4fa847f178b:localhost:node-acd1f170-67b6-4329-a4c5-208de7749e73:Node acd1f170-67b6-4329-a4c5-208de7749e73 :: false

publishItemsToNodes 0.046s
2022-07-24 23:02:25 |

2022-07-24 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:25 | ------------------------------------

2022-07-24 23:02:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "entry": "<test>item-9a4c7937-2a97-494e-91e0-d70b5ece8762</test>",
    "item-id": "item-9a4c7937-2a97-494e-91e0-d70b5ece8762"
}

2022-07-24 23:02:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a4c7937-2a97-494e-91e0-d70b5ece8762"
}

2022-07-24 23:02:25 | [Mutex] waiting for: [published:item:notifieditem-9a4c7937-2a97-494e-91e0-d70b5ece8762:admin@test-domain.com]

2022-07-24 23:02:25 | [Mutex] received everything.

2022-07-24 23:02:25 | [Mutex] isItemNotified: published:item:notifieditem-9a4c7937-2a97-494e-91e0-d70b5ece8762:admin@test-domain.com :: true

retractItemsFromNodes 0.124s
2022-07-24 23:02:25 |

2022-07-24 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:25 | ------------------------------------

2022-07-24 23:02:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "item-id": "item-9a4c7937-2a97-494e-91e0-d70b5ece8762"
}

2022-07-24 23:02:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9a4c7937-2a97-494e-91e0-d70b5ece8762"
}

2022-07-24 23:02:25 | [Mutex] received everything.

2022-07-24 23:02:25 | [Mutex] isItemNotified: retracted:item:notifieditem-9a4c7937-2a97-494e-91e0-d70b5ece8762:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-07-24 23:02:25 |

2022-07-24 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:25 | ------------------------------------

2022-07-24 23:02:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "item-id": "item-9a4c7937-2a97-494e-91e0-d70b5ece8762"
}

2022-07-24 23:02:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "item-id": "item-9a4c7937-2a97-494e-91e0-d70b5ece8762",
    "item": [
        "<item id=\"item-9a4c7937-2a97-494e-91e0-d70b5ece8762\"><test>item-9a4c7937-2a97-494e-91e0-d70b5ece8762</test></item>"
    ]
}

2022-07-24 23:02:25 | [Mutex] notify: [retrieved:item:item-9a4c7937-2a97-494e-91e0-d70b5ece8762:payload-matches:true:localhost]

2022-07-24 23:02:25 | [Mutex] received everything.

2022-07-24 23:02:25 | [Mutex] isItemNotified: retrieved:item:item-9a4c7937-2a97-494e-91e0-d70b5ece8762:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-24 23:02:25 |

2022-07-24 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:25 | ------------------------------------

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

2022-07-24 23:02:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-acd1f170-67b6-4329-a4c5-208de7749e73",
        "node-e296f501-a612-40cb-880f-6673e963512b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-07-24 23:02:25 |

2022-07-24 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:25 | ------------------------------------

2022-07-24 23:02:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-acd1f170-67b6-4329-a4c5-208de7749e73)"
}

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

subscribeNodes 1.010s
2022-07-24 23:02:24 |

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

2022-07-24 23:02:24 | ------------------------------------

2022-07-24 23:02:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.052s
2022-07-24 23:02:25 |

2022-07-24 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-24 23:02:25 | ------------------------------------

2022-07-24 23:02:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-acd1f170-67b6-4329-a4c5-208de7749e73",
    "jids": [
        "admin@test-domain.com"
    ]
}

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