Generated by TestNG with ReportNG at 03:41 PST on Thursday 24 November 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.593s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.149s
2022-11-24 03:56:42 |

2022-11-24 03:56:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:42 | ------------------------------------

2022-11-24 03:56:42 | [Mutex] waiting for: [configured:node:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b]

2022-11-24 03:56:42 | [Mutex] received everything.

2022-11-24 03:56:42 | [Mutex] isItemNotified: configured:node:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b :: true

2022-11-24 03:56:43 | [Mutex] waiting for: [received:nodes:bb112e24-0bbf-4a98-a4e3-8aaa8bd328f4:localhost]

2022-11-24 03:56:43 | [Mutex] received everything.

2022-11-24 03:56:43 | [Mutex] isItemNotified: received:node:bb112e24-0bbf-4a98-a4e3-8aaa8bd328f4:localhost:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:Node bf3adbd6-e714-4c4f-821a-2074bc72230d :: true

2022-11-24 03:56:43 | [Mutex] waiting for: [received:nodes:9c7aca0f-3e30-4669-8af7-dd04aeba0777:localhost]

2022-11-24 03:56:43 | [Mutex] received everything.

2022-11-24 03:56:43 | [Mutex] isItemNotified: received:node:9c7aca0f-3e30-4669-8af7-dd04aeba0777:localhost:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:Node bf3adbd6-e714-4c4f-821a-2074bc72230d :: false

createNodes 1.519s
2022-11-24 03:56:40 |

2022-11-24 03:56:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:40 | ------------------------------------

2022-11-24 03:56:40 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "pubsub#title": "Node bf3adbd6-e714-4c4f-821a-2074bc72230d"
}

2022-11-24 03:56:40 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:56:41 | [Mutex] waiting for: [received:nodes:bac3406c-cbbb-47ff-bf5e-49e611c363d6:localhost]

2022-11-24 03:56:41 | [Mutex] waiting for: [received:nodes:bac3406c-cbbb-47ff-bf5e-49e611c363d6:localhost]

2022-11-24 03:56:41 | [Mutex] waiting for: [received:nodes:bac3406c-cbbb-47ff-bf5e-49e611c363d6:localhost]

2022-11-24 03:56:41 | [Mutex] received everything.

2022-11-24 03:56:41 | [Mutex] isItemNotified: received:node:bac3406c-cbbb-47ff-bf5e-49e611c363d6:localhost:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:Node bf3adbd6-e714-4c4f-821a-2074bc72230d :: true

createSubnodes 1.022s
2022-11-24 03:56:41 |

2022-11-24 03:56:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:41 | ------------------------------------

2022-11-24 03:56:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b",
    "pubsub#title": "Node 3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b"
}

2022-11-24 03:56:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:56:42 | [Mutex] waiting for: [received:nodes:84bbc03f-f287-4cf6-a916-79aa2544caca:localhost]

2022-11-24 03:56:42 | [Mutex] waiting for: [received:nodes:84bbc03f-f287-4cf6-a916-79aa2544caca:localhost]

2022-11-24 03:56:42 | [Mutex] waiting for: [received:nodes:84bbc03f-f287-4cf6-a916-79aa2544caca:localhost]

2022-11-24 03:56:42 | [Mutex] received everything.

2022-11-24 03:56:42 | [Mutex] isItemNotified: received:node:84bbc03f-f287-4cf6-a916-79aa2544caca:localhost:node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b:Node 3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b :: true

deleteNodes 1.018s
2022-11-24 03:56:47 |

2022-11-24 03:56:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:47 | ------------------------------------

2022-11-24 03:56:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b"
}

2022-11-24 03:56:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:56:48 | [Mutex] waiting for: [received:nodes:9cca16ab-7de8-49e0-b65e-191b1cf614fe:localhost]

2022-11-24 03:56:48 | [Mutex] received everything.

2022-11-24 03:56:48 | [Mutex] isItemNotified: received:node:9cca16ab-7de8-49e0-b65e-191b1cf614fe:localhost:node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b:Node 3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b :: false

deleteSubnodes 1.028s
2022-11-24 03:56:46 |

2022-11-24 03:56:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:46 | ------------------------------------

2022-11-24 03:56:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d"
}

2022-11-24 03:56:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-24 03:56:47 | [Mutex] waiting for: [received:nodes:cb8e627e-cb0c-46e1-8f47-f794373e38e7:localhost]

2022-11-24 03:56:47 | [Mutex] waiting for: [received:nodes:cb8e627e-cb0c-46e1-8f47-f794373e38e7:localhost]

2022-11-24 03:56:47 | [Mutex] received everything.

2022-11-24 03:56:47 | [Mutex] isItemNotified: received:node:cb8e627e-cb0c-46e1-8f47-f794373e38e7:localhost:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:Node bf3adbd6-e714-4c4f-821a-2074bc72230d :: false

2022-11-24 03:56:47 | [Mutex] waiting for: [received:nodes:e3e69308-5e87-4655-80e7-a950f37c4f08:localhost]

2022-11-24 03:56:47 | [Mutex] received everything.

2022-11-24 03:56:47 | [Mutex] isItemNotified: received:node:e3e69308-5e87-4655-80e7-a950f37c4f08:localhost:node-bf3adbd6-e714-4c4f-821a-2074bc72230d:Node bf3adbd6-e714-4c4f-821a-2074bc72230d :: false

publishItemsToNodes 0.061s
2022-11-24 03:56:44 |

2022-11-24 03:56:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:44 | ------------------------------------

2022-11-24 03:56:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "entry": "<test>item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb</test>",
    "item-id": "item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb"
}

2022-11-24 03:56:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb"
}

2022-11-24 03:56:44 | [Mutex] received everything.

2022-11-24 03:56:44 | [Mutex] isItemNotified: published:item:notifieditem-28677ef2-b6d9-4901-923d-dedfb1fcc6eb:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-11-24 03:56:45 |

2022-11-24 03:56:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:45 | ------------------------------------

2022-11-24 03:56:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "item-id": "item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb"
}

2022-11-24 03:56:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb"
}

2022-11-24 03:56:45 | [Mutex] received everything.

2022-11-24 03:56:45 | [Mutex] isItemNotified: retracted:item:notifieditem-28677ef2-b6d9-4901-923d-dedfb1fcc6eb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2022-11-24 03:56:44 |

2022-11-24 03:56:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:44 | ------------------------------------

2022-11-24 03:56:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "item-id": "item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb"
}

2022-11-24 03:56:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "item-id": "item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb",
    "item": [
        "<item id=\"item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb\"><test>item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb</test></item>"
    ]
}

2022-11-24 03:56:45 | [Mutex] notify: [retrieved:item:item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb:payload-matches:true:localhost]

2022-11-24 03:56:45 | [Mutex] received everything.

2022-11-24 03:56:45 | [Mutex] isItemNotified: retrieved:item:item-28677ef2-b6d9-4901-923d-dedfb1fcc6eb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-11-24 03:56:45 |

2022-11-24 03:56:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:45 | ------------------------------------

2022-11-24 03:56:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-24 03:56:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3f7d80b2-88a0-4110-b3a6-f9fbce0d6d9b",
        "test",
        "node-bf3adbd6-e714-4c4f-821a-2074bc72230d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-11-24 03:56:45 |

2022-11-24 03:56:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:45 | ------------------------------------

2022-11-24 03:56:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bf3adbd6-e714-4c4f-821a-2074bc72230d)"
}

2022-11-24 03:56:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-11-24 03:56:43 |

2022-11-24 03:56:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:43 | ------------------------------------

2022-11-24 03:56:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 03:56:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.088s
2022-11-24 03:56:45 |

2022-11-24 03:56:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-24 03:56:45 | ------------------------------------

2022-11-24 03:56:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bf3adbd6-e714-4c4f-821a-2074bc72230d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-24 03:56:45 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}